@nexical/cli 0.1.4 → 0.1.5

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 CHANGED
@@ -2,12 +2,48 @@
2
2
  import { createRequire } from "module"; const require = createRequire(import.meta.url);
3
3
 
4
4
  // index.ts
5
- import { CLI, logger } from "@nexical/cli-core";
6
- import path from "path";
5
+ import { CLI } from "@nexical/cli-core";
7
6
  import { fileURLToPath } from "url";
7
+
8
+ // package.json
9
+ var package_default = {
10
+ name: "@nexical/cli",
11
+ version: "0.1.5",
12
+ type: "module",
13
+ bin: {
14
+ nexical: "./dist/index.js"
15
+ },
16
+ scripts: {
17
+ build: "tsup",
18
+ dev: "tsup --watch",
19
+ start: "node dist/index.js",
20
+ test: "npm run test:unit && npm run test:integration && npm run test:e2e",
21
+ "test:unit": "vitest run --config vitest.config.ts --coverage",
22
+ "test:integration": "vitest run --config vitest.integration.config.ts",
23
+ "test:e2e": "npm run build && vitest run --config vitest.e2e.config.ts",
24
+ "test:watch": "vitest"
25
+ },
26
+ dependencies: {
27
+ "@nexical/cli-core": "^0.1.8",
28
+ "@nexical/sdk": "^0.4.2"
29
+ },
30
+ devDependencies: {
31
+ "@types/fs-extra": "^11.0.4",
32
+ "@types/node": "^20.10.0",
33
+ "@vitest/coverage-v8": "^4.0.15",
34
+ execa: "^9.6.1",
35
+ "fs-extra": "^11.3.2",
36
+ tsup: "^8.0.1",
37
+ typescript: "^5.3.3",
38
+ vitest: "^4.0.15"
39
+ }
40
+ };
41
+
42
+ // index.ts
43
+ import path from "path";
8
44
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
9
- logger.debug("CLI ENTRY POINT HIT", process.argv);
10
45
  var app = new CLI({
46
+ version: package_default.version,
11
47
  commandName: "nexical",
12
48
  searchDirectories: [path.resolve(__dirname, "./src/commands")]
13
49
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { CLI, logger } from \"@nexical/cli-core\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\n\nlogger.debug(\"CLI ENTRY POINT HIT\", process.argv);\n\nconst app = new CLI({\n commandName: \"nexical\",\n searchDirectories: [path.resolve(__dirname, \"./src/commands\")],\n});\napp.start();\n"],"mappings":";;;;AACA,SAAS,KAAK,cAAc;AAC5B,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAE9B,IAAM,YAAY,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;AAE7D,OAAO,MAAM,uBAAuB,QAAQ,IAAI;AAEhD,IAAM,MAAM,IAAI,IAAI;AAAA,EAClB,aAAa;AAAA,EACb,mBAAmB,CAAC,KAAK,QAAQ,WAAW,gBAAgB,CAAC;AAC/D,CAAC;AACD,IAAI,MAAM;","names":[]}
1
+ {"version":3,"sources":["../index.ts","../package.json"],"sourcesContent":["#!/usr/bin/env node\nimport { CLI } from \"@nexical/cli-core\";\nimport { fileURLToPath } from \"node:url\";\nimport pkg from './package.json';\nimport path from 'node:path';\n\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\n\nconst app = new CLI({\n version: pkg.version,\n commandName: \"nexical\",\n searchDirectories: [path.resolve(__dirname, \"./src/commands\")],\n});\napp.start();\n","{\n \"name\": \"@nexical/cli\",\n \"version\": \"0.1.5\",\n \"type\": \"module\",\n \"bin\": {\n \"nexical\": \"./dist/index.js\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"start\": \"node dist/index.js\",\n \"test\": \"npm run test:unit && npm run test:integration && npm run test:e2e\",\n \"test:unit\": \"vitest run --config vitest.config.ts --coverage\",\n \"test:integration\": \"vitest run --config vitest.integration.config.ts\",\n \"test:e2e\": \"npm run build && vitest run --config vitest.e2e.config.ts\",\n \"test:watch\": \"vitest\"\n },\n \"dependencies\": {\n \"@nexical/cli-core\": \"^0.1.8\",\n \"@nexical/sdk\": \"^0.4.2\"\n },\n \"devDependencies\": {\n \"@types/fs-extra\": \"^11.0.4\",\n \"@types/node\": \"^20.10.0\",\n \"@vitest/coverage-v8\": \"^4.0.15\",\n \"execa\": \"^9.6.1\",\n \"fs-extra\": \"^11.3.2\",\n \"tsup\": \"^8.0.1\",\n \"typescript\": \"^5.3.3\",\n \"vitest\": \"^4.0.15\"\n }\n}\n"],"mappings":";;;;AACA,SAAS,WAAW;AACpB,SAAS,qBAAqB;;;ACF9B;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,MAAQ;AAAA,EACR,KAAO;AAAA,IACL,SAAW;AAAA,EACb;AAAA,EACA,SAAW;AAAA,IACT,OAAS;AAAA,IACT,KAAO;AAAA,IACP,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,aAAa;AAAA,IACb,oBAAoB;AAAA,IACpB,YAAY;AAAA,IACZ,cAAc;AAAA,EAChB;AAAA,EACA,cAAgB;AAAA,IACd,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,EAClB;AAAA,EACA,iBAAmB;AAAA,IACjB,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,OAAS;AAAA,IACT,YAAY;AAAA,IACZ,MAAQ;AAAA,IACR,YAAc;AAAA,IACd,QAAU;AAAA,EACZ;AACF;;;AD3BA,OAAO,UAAU;AAEjB,IAAM,YAAY,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;AAE7D,IAAM,MAAM,IAAI,IAAI;AAAA,EAClB,SAAS,gBAAI;AAAA,EACb,aAAa;AAAA,EACb,mBAAmB,CAAC,KAAK,QAAQ,WAAW,gBAAgB,CAAC;AAC/D,CAAC;AACD,IAAI,MAAM;","names":[]}
package/index.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
- import { CLI, logger } from "@nexical/cli-core";
3
- import path from "node:path";
2
+ import { CLI } from "@nexical/cli-core";
4
3
  import { fileURLToPath } from "node:url";
4
+ import pkg from './package.json';
5
+ import path from 'node:path';
5
6
 
6
7
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
8
 
8
- logger.debug("CLI ENTRY POINT HIT", process.argv);
9
-
10
9
  const app = new CLI({
10
+ version: pkg.version,
11
11
  commandName: "nexical",
12
12
  searchDirectories: [path.resolve(__dirname, "./src/commands")],
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexical/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "nexical": "./dist/index.js"
@@ -16,7 +16,7 @@
16
16
  "test:watch": "vitest"
17
17
  },
18
18
  "dependencies": {
19
- "@nexical/cli-core": "^0.1.7",
19
+ "@nexical/cli-core": "^0.1.8",
20
20
  "@nexical/sdk": "^0.4.2"
21
21
  },
22
22
  "devDependencies": {