@xyd-js/cli 0.0.0-build-97dcdfe-20250813172954 → 0.0.0-build-9d786d9-20250814163057
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1511,7 +1511,7 @@ async function cli(argv = process.argv.slice(2)) {
|
|
|
1511
1511
|
if (!prerequisites()) {
|
|
1512
1512
|
process.exit(1);
|
|
1513
1513
|
}
|
|
1514
|
-
updateNotify();
|
|
1514
|
+
await updateNotify();
|
|
1515
1515
|
process.env.XYD_CLI = "true";
|
|
1516
1516
|
const { globalFlags, commands } = parseArgs(argv);
|
|
1517
1517
|
if (globalFlags.help) {
|
|
@@ -1549,8 +1549,12 @@ function prerequisites() {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
function updateNotify() {
|
|
1551
1551
|
const packageJson2 = getPackageJson();
|
|
1552
|
-
const notifier = updateNotifier({
|
|
1553
|
-
|
|
1552
|
+
const notifier = updateNotifier({
|
|
1553
|
+
pkg: packageJson2,
|
|
1554
|
+
updateCheckInterval: 1e3 * 60 * 60 * 1
|
|
1555
|
+
// 1 hour
|
|
1556
|
+
});
|
|
1557
|
+
notifier.notify({ defer: false });
|
|
1554
1558
|
}
|
|
1555
1559
|
|
|
1556
1560
|
// index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/cli",
|
|
3
|
-
"version": "0.0.0-build-
|
|
3
|
+
"version": "0.0.0-build-9d786d9-20250814163057",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "",
|
|
6
6
|
"description": "",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"semver": "^7.6.3",
|
|
27
27
|
"unist-util-visit": "^5.0.0",
|
|
28
28
|
"update-notifier": "^7.3.1",
|
|
29
|
-
"@xyd-js/documan": "0.0.0-build-
|
|
30
|
-
"@xyd-js/host": "0.0.0-build-
|
|
31
|
-
"@xyd-js/core": "0.0.0-build-
|
|
29
|
+
"@xyd-js/documan": "0.0.0-build-9d786d9-20250814163057",
|
|
30
|
+
"@xyd-js/host": "0.0.0-build-9d786d9-20250814163057",
|
|
31
|
+
"@xyd-js/core": "0.0.0-build-9d786d9-20250814163057"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/update-notifier": "^6.0.8",
|