[Fix] CI/CD

This commit is contained in:
Patryk Rzucidlo (PTKDev)
2023-02-11 01:59:44 +01:00
parent d908466e21
commit 9368dd816f
8 changed files with 54 additions and 219 deletions

View File

@@ -18,7 +18,7 @@ jobs:
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)' - run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
- run: git config --global user.email 'support@ptkdev.io' - run: git config --global user.email 'support@ptkdev.io'
- run: npm ci - run: npm ci
- run: npm run github-workflow-next-version -- --cmd beta - run: npm run github-workflow-next-version --cmd beta
- run: npm run release - run: npm run release
- run: npm run pre-commit - run: npm run pre-commit
- id: pkgjson - id: pkgjson
@@ -28,7 +28,7 @@ jobs:
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git fetch --all && git checkout nightly - run: git fetch --all && git checkout nightly
- run: npm run github-workflow-next-version -- --cmd nightly-next - run: npm run github-workflow-next-version --cmd nightly-next
- run: npm run pre-commit - run: npm run pre-commit
- id: nextnightly - id: nextnightly
run: chmod +x ./scripts/version.sh && ./scripts/version.sh run: chmod +x ./scripts/version.sh && ./scripts/version.sh

View File

@@ -18,7 +18,7 @@ jobs:
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)' - run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
- run: git config --global user.email 'support@ptkdev.io' - run: git config --global user.email 'support@ptkdev.io'
- run: npm ci - run: npm ci
- run: npm run github-workflow-next-version -- --cmd main - run: npm run github-workflow-next-version --cmd main
- run: npm run release - run: npm run release
- run: npm run pre-commit - run: npm run pre-commit
- id: pkgjson - id: pkgjson

View File

@@ -18,7 +18,7 @@ jobs:
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)' - run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
- run: git config --global user.email 'support@ptkdev.io' - run: git config --global user.email 'support@ptkdev.io'
- run: npm ci - run: npm ci
- run: npm run github-workflow-next-version -- --cmd nightly - run: npm run github-workflow-next-version --cmd nightly
- run: npm run pkg-upgrade - run: npm run pkg-upgrade
- run: npm run release - run: npm run release
- run: npm run pre-commit - run: npm run pre-commit

245
package-lock.json generated
View File

@@ -18,7 +18,7 @@
"@types/jest": "^29.4.0", "@types/jest": "^29.4.0",
"@types/node": "^18.13.0", "@types/node": "^18.13.0",
"@types/shelljs": "^0.8.11", "@types/shelljs": "^0.8.11",
"@types/yargs": "^16.0.5", "@types/yargs": "^17.0.22",
"@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0", "@typescript-eslint/parser": "^5.51.0",
"all-contributors-cli": "^6.24.0", "all-contributors-cli": "^6.24.0",
@@ -40,7 +40,7 @@
"typescript-transform-paths": "^3.4.6", "typescript-transform-paths": "^3.4.6",
"uvu": "^0.5.6", "uvu": "^0.5.6",
"vite": "^4.1.1", "vite": "^4.1.1",
"yargs": "^16.2.0" "yargs": "^17.6.2"
}, },
"engines": { "engines": {
"node": ">=14.0.0" "node": ">=14.0.0"
@@ -1432,15 +1432,6 @@
"node": "^14.15.0 || ^16.10.0 || >=18.0.0" "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
} }
}, },
"node_modules/@jest/types/node_modules/@types/yargs": {
"version": "17.0.22",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz",
"integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==",
"dev": true,
"dependencies": {
"@types/yargs-parser": "*"
}
},
"node_modules/@jridgewell/gen-mapping": { "node_modules/@jridgewell/gen-mapping": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",
@@ -1859,9 +1850,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/yargs": { "node_modules/@types/yargs": {
"version": "16.0.5", "version": "17.0.22",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz",
"integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", "integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/yargs-parser": "*" "@types/yargs-parser": "*"
@@ -3105,14 +3096,16 @@
} }
}, },
"node_modules/cliui": { "node_modules/cliui": {
"version": "7.0.4", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"dev": true,
"dependencies": { "dependencies": {
"string-width": "^4.2.0", "string-width": "^4.2.0",
"strip-ansi": "^6.0.0", "strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0" "wrap-ansi": "^7.0.0"
},
"engines": {
"node": ">=12"
} }
}, },
"node_modules/clone-response": { "node_modules/clone-response": {
@@ -5428,47 +5421,6 @@
} }
} }
}, },
"node_modules/jest-cli/node_modules/cliui": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"dev": true,
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0"
},
"engines": {
"node": ">=12"
}
},
"node_modules/jest-cli/node_modules/yargs": {
"version": "17.6.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz",
"integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==",
"dev": true,
"dependencies": {
"cliui": "^8.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.3",
"y18n": "^5.0.5",
"yargs-parser": "^21.1.1"
},
"engines": {
"node": ">=12"
}
},
"node_modules/jest-cli/node_modules/yargs-parser": {
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
"dev": true,
"engines": {
"node": ">=12"
}
},
"node_modules/jest-config": { "node_modules/jest-config": {
"version": "29.4.2", "version": "29.4.2",
"resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.4.2.tgz", "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.4.2.tgz",
@@ -8330,44 +8282,6 @@
"node": ">=10" "node": ">=10"
} }
}, },
"node_modules/replace-in-file/node_modules/cliui": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0"
},
"engines": {
"node": ">=12"
}
},
"node_modules/replace-in-file/node_modules/yargs": {
"version": "17.6.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz",
"integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==",
"dependencies": {
"cliui": "^8.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.3",
"y18n": "^5.0.5",
"yargs-parser": "^21.1.1"
},
"engines": {
"node": ">=12"
}
},
"node_modules/replace-in-file/node_modules/yargs-parser": {
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
"engines": {
"node": ">=12"
}
},
"node_modules/require-directory": { "node_modules/require-directory": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
@@ -10328,21 +10242,20 @@
} }
}, },
"node_modules/yargs": { "node_modules/yargs": {
"version": "16.2.0", "version": "17.6.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==",
"dev": true,
"dependencies": { "dependencies": {
"cliui": "^7.0.2", "cliui": "^8.0.1",
"escalade": "^3.1.1", "escalade": "^3.1.1",
"get-caller-file": "^2.0.5", "get-caller-file": "^2.0.5",
"require-directory": "^2.1.1", "require-directory": "^2.1.1",
"string-width": "^4.2.0", "string-width": "^4.2.3",
"y18n": "^5.0.5", "y18n": "^5.0.5",
"yargs-parser": "^20.2.2" "yargs-parser": "^21.1.1"
}, },
"engines": { "engines": {
"node": ">=10" "node": ">=12"
} }
}, },
"node_modules/yargs-parser": { "node_modules/yargs-parser": {
@@ -10359,12 +10272,11 @@
} }
}, },
"node_modules/yargs/node_modules/yargs-parser": { "node_modules/yargs/node_modules/yargs-parser": {
"version": "20.2.9", "version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
"dev": true,
"engines": { "engines": {
"node": ">=10" "node": ">=12"
} }
}, },
"node_modules/yn": { "node_modules/yn": {
@@ -11343,17 +11255,6 @@
"@types/node": "*", "@types/node": "*",
"@types/yargs": "^17.0.8", "@types/yargs": "^17.0.8",
"chalk": "^4.0.0" "chalk": "^4.0.0"
},
"dependencies": {
"@types/yargs": {
"version": "17.0.22",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz",
"integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==",
"dev": true,
"requires": {
"@types/yargs-parser": "*"
}
}
} }
}, },
"@jridgewell/gen-mapping": { "@jridgewell/gen-mapping": {
@@ -11718,9 +11619,9 @@
"dev": true "dev": true
}, },
"@types/yargs": { "@types/yargs": {
"version": "16.0.5", "version": "17.0.22",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz",
"integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", "integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/yargs-parser": "*" "@types/yargs-parser": "*"
@@ -12610,13 +12511,12 @@
"dev": true "dev": true
}, },
"cliui": { "cliui": {
"version": "7.0.4", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"dev": true,
"requires": { "requires": {
"string-width": "^4.2.0", "string-width": "^4.2.0",
"strip-ansi": "^6.0.0", "strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0" "wrap-ansi": "^7.0.0"
} }
}, },
@@ -14383,40 +14283,6 @@
"jest-validate": "^29.4.2", "jest-validate": "^29.4.2",
"prompts": "^2.0.1", "prompts": "^2.0.1",
"yargs": "^17.3.1" "yargs": "^17.3.1"
},
"dependencies": {
"cliui": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"dev": true,
"requires": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0"
}
},
"yargs": {
"version": "17.6.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz",
"integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==",
"dev": true,
"requires": {
"cliui": "^8.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.3",
"y18n": "^5.0.5",
"yargs-parser": "^21.1.1"
}
},
"yargs-parser": {
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
"dev": true
}
} }
}, },
"jest-config": { "jest-config": {
@@ -16622,37 +16488,6 @@
"chalk": "^4.1.2", "chalk": "^4.1.2",
"glob": "^7.2.0", "glob": "^7.2.0",
"yargs": "^17.2.1" "yargs": "^17.2.1"
},
"dependencies": {
"cliui": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"requires": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0"
}
},
"yargs": {
"version": "17.6.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz",
"integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==",
"requires": {
"cliui": "^8.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.3",
"y18n": "^5.0.5",
"yargs-parser": "^21.1.1"
}
},
"yargs-parser": {
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="
}
} }
}, },
"require-directory": { "require-directory": {
@@ -18101,25 +17936,23 @@
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="
}, },
"yargs": { "yargs": {
"version": "16.2.0", "version": "17.6.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==",
"dev": true,
"requires": { "requires": {
"cliui": "^7.0.2", "cliui": "^8.0.1",
"escalade": "^3.1.1", "escalade": "^3.1.1",
"get-caller-file": "^2.0.5", "get-caller-file": "^2.0.5",
"require-directory": "^2.1.1", "require-directory": "^2.1.1",
"string-width": "^4.2.0", "string-width": "^4.2.3",
"y18n": "^5.0.5", "y18n": "^5.0.5",
"yargs-parser": "^20.2.2" "yargs-parser": "^21.1.1"
}, },
"dependencies": { "dependencies": {
"yargs-parser": { "yargs-parser": {
"version": "20.2.9", "version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="
"dev": true
} }
} }
}, },

View File

@@ -53,9 +53,9 @@
"contributors-generate": "all-contributors generate", "contributors-generate": "all-contributors generate",
"all-shields-generate": "all-shields-generate", "all-shields-generate": "all-shields-generate",
"pre-commit": "npm run contributors-generate && npm run all-shields-generate && npm run lint-fix", "pre-commit": "npm run contributors-generate && npm run all-shields-generate && npm run lint-fix",
"pkg-clean": "rm -rf node_modules package-lock.json && npm install && npm install eslint@7 @types/yargs@16 yargs@16 --save-dev && husky install", "pkg-clean": "rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install",
"pkg-update": "npm update", "pkg-update": "npm update",
"pkg-upgrade": "npx --yes npm-check-updates -u && npm install && npm install eslint@7 @types/yargs@16 yargs@16 --save-dev && husky install" "pkg-upgrade": "npx --yes npm-check-updates -u && npm install && npm install eslint@7 --save-dev && husky install"
}, },
"dependencies": { "dependencies": {
"replace-in-file": "^6.3.5", "replace-in-file": "^6.3.5",
@@ -67,7 +67,7 @@
"@types/jest": "^29.4.0", "@types/jest": "^29.4.0",
"@types/node": "^18.13.0", "@types/node": "^18.13.0",
"@types/shelljs": "^0.8.11", "@types/shelljs": "^0.8.11",
"@types/yargs": "^16.0.5", "@types/yargs": "^17.0.22",
"@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0", "@typescript-eslint/parser": "^5.51.0",
"all-contributors-cli": "^6.24.0", "all-contributors-cli": "^6.24.0",
@@ -89,7 +89,7 @@
"typescript-transform-paths": "^3.4.6", "typescript-transform-paths": "^3.4.6",
"uvu": "^0.5.6", "uvu": "^0.5.6",
"vite": "^4.1.1", "vite": "^4.1.1",
"yargs": "^16.2.0" "yargs": "^17.6.2"
}, },
"peerDependencies": { "peerDependencies": {
"@sveltejs/kit": "^1.0.0" "@sveltejs/kit": "^1.0.0"

View File

@@ -10,9 +10,9 @@
*/ */
import * as fs from "fs"; import * as fs from "fs";
import * as shell from "shelljs"; import * as shell from "shelljs";
import { argv } from "yargs"; import yargs from "yargs";
import { dirname } from "path"; import { dirname } from "path";
const argv: any = yargs(process.argv.slice(2)).argv;
const __dirname = dirname; const __dirname = dirname;
const path = `${__dirname}/../app/configs/config.js`; const path = `${__dirname}/../app/configs/config.js`;

View File

@@ -11,10 +11,10 @@
*/ */
import * as fs from "fs"; import * as fs from "fs";
import * as shell from "shelljs"; import * as shell from "shelljs";
import { argv } from "yargs"; import yargs from "yargs";
import { dirname } from "path"; import { dirname } from "path";
const argv: any = yargs(process.argv.slice(2)).argv;
const __dirname = dirname; const __dirname = dirname;
console.log(argv, argv._[0]); console.log(argv, argv._[0]);
const path = `${__dirname}/../app/configs/config.js`; const path = `${__dirname}/../app/configs/config.js`;

View File

@@ -10,7 +10,7 @@
*/ */
import * as fs from "fs"; import * as fs from "fs";
import Logger from "@ptkdev/logger"; import Logger from "@ptkdev/logger";
import { argv } from "yargs"; import yargs from "yargs";
import pkg from "../package.json" assert { type: "json" }; import pkg from "../package.json" assert { type: "json" };
const logger = new Logger(); const logger = new Logger();
@@ -18,6 +18,8 @@ const logger = new Logger();
const version = pkg.version.split("."); const version = pkg.version.split(".");
let next_version, patch; let next_version, patch;
const argv: any = yargs(process.argv.slice(2)).argv;
switch (argv.cmd) { switch (argv.cmd) {
case "nightly": case "nightly":
next_version = `${version[0]}.${version[1]}.${version[2]}.${Number(version[3]) + 1}`; next_version = `${version[0]}.${version[1]}.${version[2]}.${Number(version[3]) + 1}`;