@vertesia/create-plugin 1.2.0 → 1.4.0-dev.20260614.160504Z

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.
Files changed (41) hide show
  1. package/lib/configuration.d.ts.map +1 -1
  2. package/lib/configuration.js +2 -19
  3. package/lib/configuration.js.map +1 -1
  4. package/lib/download-template.d.ts +3 -0
  5. package/lib/download-template.d.ts.map +1 -1
  6. package/lib/download-template.js +10 -9
  7. package/lib/download-template.js.map +1 -1
  8. package/lib/index.js +46 -16
  9. package/lib/index.js.map +1 -1
  10. package/lib/package-manager.d.ts +4 -0
  11. package/lib/package-manager.d.ts.map +1 -1
  12. package/lib/package-manager.js +16 -10
  13. package/lib/package-manager.js.map +1 -1
  14. package/lib/post-install.d.ts +4 -1
  15. package/lib/post-install.d.ts.map +1 -1
  16. package/lib/post-install.js +19 -19
  17. package/lib/post-install.js.map +1 -1
  18. package/lib/process-template.d.ts +7 -4
  19. package/lib/process-template.d.ts.map +1 -1
  20. package/lib/process-template.js +52 -27
  21. package/lib/process-template.js.map +1 -1
  22. package/lib/prompts.d.ts +5 -2
  23. package/lib/prompts.d.ts.map +1 -1
  24. package/lib/prompts.js +21 -8
  25. package/lib/prompts.js.map +1 -1
  26. package/lib/template-config.d.ts +3 -1
  27. package/lib/template-config.d.ts.map +1 -1
  28. package/lib/template-config.js +2 -2
  29. package/lib/template-config.js.map +1 -1
  30. package/lib/template-selector.d.ts +1 -1
  31. package/lib/template-selector.d.ts.map +1 -1
  32. package/lib/template-selector.js +7 -7
  33. package/lib/template-selector.js.map +1 -1
  34. package/lib/transforms.d.ts +5 -0
  35. package/lib/transforms.d.ts.map +1 -1
  36. package/lib/transforms.js +12 -1
  37. package/lib/transforms.js.map +1 -1
  38. package/lib/version.d.ts.map +1 -1
  39. package/lib/version.js +5 -4
  40. package/lib/version.js.map +1 -1
  41. package/package.json +10 -9
package/lib/version.js CHANGED
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Reads the CLI's own package.json to get version and templateVersions map.
5
5
  */
6
- import fs from 'fs';
7
- import path from 'path';
8
- import { fileURLToPath } from 'url';
6
+ import fs from 'node:fs';
7
+ import path from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
9
9
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
10
10
  let _cached;
11
11
  function readCliPackageJson() {
@@ -13,6 +13,7 @@ function readCliPackageJson() {
13
13
  return _cached;
14
14
  const pkgPath = path.resolve(__dirname, '..', 'package.json');
15
15
  _cached = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
16
+ // biome-ignore lint/style/noNonNullAssertion: intentional non-null assertion; TS can't prove narrowing here
16
17
  return _cached;
17
18
  }
18
19
  /**
@@ -31,7 +32,7 @@ export function getTemplateVersions() {
31
32
  if (!pkg.templateVersions)
32
33
  return undefined;
33
34
  // Only return if versions are actually populated (not the placeholder 0.0.0)
34
- const hasReal = Object.values(pkg.templateVersions).some(v => v !== '0.0.0');
35
+ const hasReal = Object.values(pkg.templateVersions).some((v) => v !== '0.0.0');
35
36
  return hasReal ? pkg.templateVersions : undefined;
36
37
  }
37
38
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAO/D,IAAI,OAAmC,CAAC;AAExC,SAAS,kBAAkB;IACzB,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D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ACvD,4GAA4G;IAC5G,OAAO,OAAQ,CAAC;AACpB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa;IACzB,OAAO,kBAAkB,EAAE,CAAC,OAAO,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB;IAC/B,MAAM,GAAG,GAAG,kBAAkB,EAAE,CAAC;IACjC,IAAI,CAAC,GAAG,CAAC,gBAAgB;QAAE,OAAO,SAAS,CAAC;IAE5C,6EAA6E;IAC7E,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC;IAC/E,OAAO,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/create-plugin",
3
- "version": "1.2.0",
3
+ "version": "1.4.0-dev.20260614.160504Z",
4
4
  "description": "CLI to create Vertesia plugins: UI plugins or tool servers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,8 +21,8 @@
21
21
  "author": "Vertesia",
22
22
  "license": "Apache-2.0",
23
23
  "templateVersions": {
24
- "@vertesia": "1.2.0",
25
- "@llumiverse": "1.1.1-dev.20260505.151157Z"
24
+ "@vertesia": "1.4.0-dev.20260614.160504Z",
25
+ "@llumiverse": "1.3.0"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
@@ -30,20 +30,21 @@
30
30
  "directory": "packages/create-plugin"
31
31
  },
32
32
  "dependencies": {
33
- "chalk": "^5.3.0",
34
- "commander": "^14.0.2",
35
- "degit": "^2.8.4",
33
+ "chalk": "^5.6.2",
34
+ "commander": "^15.0.0",
35
+ "degit": "^3.3.2",
36
36
  "prompts": "^2.4.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/degit": "^2.8.6",
40
- "@types/node": "^24.1.0",
40
+ "@types/node": "^24.12.4",
41
41
  "@types/prompts": "^2.4.9",
42
- "typescript": "^6.0.2"
42
+ "typescript": "^6.0.3"
43
43
  },
44
44
  "scripts": {
45
+ "lint": "biome lint src",
45
46
  "build": "tsc",
46
47
  "dev": "tsc --watch",
47
- "test": "node lib/index.js test-project"
48
+ "test": "node ./scripts/run-smoke-test.mjs"
48
49
  }
49
50
  }