mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-17 07:18:24 +08:00
feat: sync
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --noEmit && tsx ./scripts/build.ts",
|
||||
"check": "tsc --noEmit && tsx ./scripts/check.ts"
|
||||
"check": "tsc --noEmit && tsx ./scripts/check.ts",
|
||||
"sync": "tsx ./scripts/sync.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gkd-kit/selector": "0.0.11",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
git add '.'
|
||||
git commit -m 'chore: sync'
|
||||
git push
|
||||
npm publish
|
||||
sleep 1s
|
||||
curl -X PUT 'https://registry-direct.npmmirror.com/@gkd-kit/subscription/sync'
|
||||
8
scripts/sync.ts
Normal file
8
scripts/sync.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
await fetch(
|
||||
`https://registry-direct.npmmirror.com/@gkd-kit/subscription/sync`,
|
||||
{
|
||||
method: 'PUT',
|
||||
},
|
||||
);
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user