@impulselab/cli 0.1.1 → 0.1.2
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 +6 -1
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -932,9 +932,14 @@ Run \`impulse add <module>\` to install a module.`
|
|
|
932
932
|
p5.outro("Done.");
|
|
933
933
|
}
|
|
934
934
|
|
|
935
|
+
// src/cli-version.ts
|
|
936
|
+
import { createRequire } from "module";
|
|
937
|
+
var require2 = createRequire(import.meta.url);
|
|
938
|
+
var CLI_VERSION = require2("../package.json").version;
|
|
939
|
+
|
|
935
940
|
// src/index.ts
|
|
936
941
|
var program = new Command();
|
|
937
|
-
program.name("impulse").description("ImpulseLab CLI \u2014 install and manage modules for your projects").version(
|
|
942
|
+
program.name("impulse").description("ImpulseLab CLI \u2014 install and manage modules for your projects").version(CLI_VERSION);
|
|
938
943
|
program.command("init").description("Initialize impulse in the current project").option("--force", "Reinitialize even if .impulse.json already exists", false).action(async (options) => {
|
|
939
944
|
await runInit({ cwd: process.cwd(), force: options.force });
|
|
940
945
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulselab/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "ImpulseLab CLI — install and manage modules for your projects",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"directory": "cli"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
+
"bumpp": "^10.3.2",
|
|
23
24
|
"@types/fs-extra": "^11.0.4",
|
|
24
25
|
"@types/node": "^20.0.0",
|
|
25
26
|
"oxlint": "^0.13.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"build": "tsup src/index.ts --format esm --target es2022 --dts",
|
|
38
39
|
"dev": "tsup src/index.ts --format esm --target es2022 --watch",
|
|
39
40
|
"lint": "oxlint .",
|
|
40
|
-
"test": "vitest run"
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"release": "bumpp"
|
|
41
43
|
}
|
|
42
44
|
}
|