@silicajs/create 0.1.0 → 0.1.1

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/bin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/bin.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runCreateSilica
4
+ } from "./chunk-Y3BUBHPB.js";
5
+
6
+ // src/bin.ts
7
+ runCreateSilica().catch((error) => {
8
+ console.error(error instanceof Error ? error.message : error);
9
+ process.exitCode = 1;
10
+ });
11
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/bin.ts"],"sourcesContent":["import { runCreateSilica } from \"./index.js\";\n\nrunCreateSilica().catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : error);\n process.exitCode = 1;\n});\n"],"mappings":";;;;;;AAEA,gBAAgB,EAAE,MAAM,CAAC,UAAmB;AAC1C,UAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,KAAK;AAC5D,UAAQ,WAAW;AACrB,CAAC;","names":[]}
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/index.ts
4
+ import { createCommand } from "@silicajs/cli";
5
+ async function runCreateSilica(argv = process.argv) {
6
+ const [, , directory] = argv;
7
+ if (!directory) {
8
+ console.error("Usage: create-silica <directory>");
9
+ process.exitCode = 1;
10
+ return;
11
+ }
12
+ await createCommand(directory);
13
+ }
14
+
15
+ export {
16
+ runCreateSilica
17
+ };
18
+ //# sourceMappingURL=chunk-Y3BUBHPB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { createCommand } from \"@silicajs/cli\";\n\nexport async function runCreateSilica(argv = process.argv): Promise<void> {\n const [, , directory] = argv;\n\n if (!directory) {\n console.error(\"Usage: create-silica <directory>\");\n process.exitCode = 1;\n return;\n }\n\n await createCommand(directory);\n}\n"],"mappings":";;;AAAA,SAAS,qBAAqB;AAE9B,eAAsB,gBAAgB,OAAO,QAAQ,MAAqB;AACxE,QAAM,CAAC,EAAE,EAAE,SAAS,IAAI;AAExB,MAAI,CAAC,WAAW;AACd,YAAQ,MAAM,kCAAkC;AAChD,YAAQ,WAAW;AACnB;AAAA,EACF;AAEA,QAAM,cAAc,SAAS;AAC/B;","names":[]}
package/dist/index.js CHANGED
@@ -1,23 +1,7 @@
1
1
  #!/usr/bin/env node
2
-
3
- // src/index.ts
4
- import { fileURLToPath } from "url";
5
- import { createCommand } from "@silicajs/cli";
6
- async function runCreateSilica(argv = process.argv) {
7
- const [, , directory] = argv;
8
- if (!directory) {
9
- console.error("Usage: create-silica <directory>");
10
- process.exitCode = 1;
11
- return;
12
- }
13
- await createCommand(directory);
14
- }
15
- if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {
16
- runCreateSilica().catch((error) => {
17
- console.error(error instanceof Error ? error.message : error);
18
- process.exitCode = 1;
19
- });
20
- }
2
+ import {
3
+ runCreateSilica
4
+ } from "./chunk-Y3BUBHPB.js";
21
5
  export {
22
6
  runCreateSilica
23
7
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport { createCommand } from \"@silicajs/cli\";\n\nexport async function runCreateSilica(argv = process.argv): Promise<void> {\n const [, , directory] = argv;\n\n if (!directory) {\n console.error(\"Usage: create-silica <directory>\");\n process.exitCode = 1;\n return;\n }\n\n await createCommand(directory);\n}\n\nif (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {\n runCreateSilica().catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : error);\n process.exitCode = 1;\n });\n}\n"],"mappings":";;;AAAA,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAE9B,eAAsB,gBAAgB,OAAO,QAAQ,MAAqB;AACxE,QAAM,CAAC,EAAE,EAAE,SAAS,IAAI;AAExB,MAAI,CAAC,WAAW;AACd,YAAQ,MAAM,kCAAkC;AAChD,YAAQ,WAAW;AACnB;AAAA,EACF;AAEA,QAAM,cAAc,SAAS;AAC/B;AAEA,IAAI,QAAQ,KAAK,CAAC,KAAK,cAAc,YAAY,GAAG,MAAM,QAAQ,KAAK,CAAC,GAAG;AACzE,kBAAgB,EAAE,MAAM,CAAC,UAAmB;AAC1C,YAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,KAAK;AAC5D,YAAQ,WAAW;AAAA,EACrB,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silicajs/create",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Scaffold a new Silica vault.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "access": "public"
9
9
  },
10
10
  "bin": {
11
- "silicajs-create": "./dist/index.js"
11
+ "silicajs-create": "./dist/bin.js"
12
12
  },
13
13
  "exports": {
14
14
  ".": {
@@ -26,6 +26,6 @@
26
26
  "lint": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@silicajs/cli": "^0.1.0"
29
+ "@silicajs/cli": "^0.1.1"
30
30
  }
31
31
  }