@voyantjs/cli 0.1.0 → 0.2.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AA+BhE,wBAAgB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,aAAa,CAG9D"}
|
package/dist/commands/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../src/commands/new.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAiChE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../src/commands/new.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAiChE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAgG5E"}
|
package/dist/commands/new.js
CHANGED
|
@@ -232,7 +232,9 @@ function ensureVoyantDependencyVersions(pkg, voyantVersion, schemaImports) {
|
|
|
232
232
|
}
|
|
233
233
|
function normalizeWorkspaceRanges(deps, voyantVersion) {
|
|
234
234
|
for (const [name, value] of Object.entries(deps)) {
|
|
235
|
-
if (name.startsWith("@voyantjs/") &&
|
|
235
|
+
if (name.startsWith("@voyantjs/") &&
|
|
236
|
+
typeof value === "string" &&
|
|
237
|
+
value.startsWith("workspace:")) {
|
|
236
238
|
deps[name] = `^${voyantVersion}`;
|
|
237
239
|
}
|
|
238
240
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/D,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/D,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC;AAED;;;;;;GAMG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,IAAI,GAAE,WAAgB,GACrB,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/D,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/D,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC;AAED;;;;;;GAMG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,IAAI,GAAE,WAAgB,GACrB,OAAO,CAAC,aAAa,CAAC,CA+CxB"}
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export async function main(argv, opts = {}) {
|
|
|
31
31
|
return generateModuleCommand(subCtx);
|
|
32
32
|
if (sub === "link")
|
|
33
33
|
return generateLinkCommand(subCtx);
|
|
34
|
-
ctx.stderr(`Unknown generate subcommand: ${sub ?? "(none)"}.
|
|
34
|
+
ctx.stderr(`Unknown generate subcommand: ${sub ?? "(none)"}. Expected "module" or "link".\n`);
|
|
35
35
|
return 1;
|
|
36
36
|
}
|
|
37
37
|
case "config": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"tar": "^7.4.3",
|
|
57
|
-
"@voyantjs/core": "0.
|
|
57
|
+
"@voyantjs/core": "0.2.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^22.10.1",
|
|
@@ -65,6 +65,11 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "https://github.com/voyantjs/voyant.git",
|
|
71
|
+
"directory": "packages/cli"
|
|
72
|
+
},
|
|
68
73
|
"scripts": {
|
|
69
74
|
"build": "tsc -p tsconfig.build.json",
|
|
70
75
|
"typecheck": "tsc --noEmit",
|