@silicajs/create 0.1.0 → 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/bin.d.ts +2 -0
- package/dist/bin.js +11 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-Y3BUBHPB.js +18 -0
- package/dist/chunk-Y3BUBHPB.js.map +1 -0
- package/dist/index.js +3 -19
- package/dist/index.js.map +1 -1
- package/package.json +12 -3
package/dist/bin.d.ts
ADDED
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
|
package/dist/bin.js.map
ADDED
|
@@ -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
|
-
|
|
4
|
-
|
|
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":[
|
|
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.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "
|
|
11
|
+
"silicajs-create": "dist/bin.js"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -26,6 +26,15 @@
|
|
|
26
26
|
"lint": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@silicajs/cli": "^0.
|
|
29
|
+
"@silicajs/cli": "^0.2.0"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/agdevhq/silica/tree/main/packages/create#readme",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/agdevhq/silica.git",
|
|
35
|
+
"directory": "packages/create"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/agdevhq/silica/issues"
|
|
30
39
|
}
|
|
31
40
|
}
|