create-sting 1.0.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.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # create-sting
2
+
3
+ Entry package for:
4
+
5
+ ```bash
6
+ npm create sting@latest
7
+ ```
8
+
9
+ This package delegates scaffolding to `create-sting-app`, including JavaScript/TypeScript template selection.
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import process from "node:process"
3
+
4
+ const run = await resolveRun()
5
+
6
+ run(process.argv.slice(2), { cliName: "create-sting" })
7
+ .catch((err) => {
8
+ console.error(`\n[create-sting] ${err?.message || err}`)
9
+ process.exit(1)
10
+ })
11
+
12
+ async function resolveRun() {
13
+ try {
14
+ const loaded = await import("create-sting-app/cli")
15
+ return loaded.run
16
+ } catch {
17
+ const loaded = await import("../../create-sting-app/lib/run.js")
18
+ return loaded.run
19
+ }
20
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "create-sting",
3
+ "version": "1.0.0",
4
+ "description": "Create a StingJS app via npm create sting",
5
+ "type": "module",
6
+ "bin": {
7
+ "create-sting": "./bin/create-sting.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "README.md"
12
+ ],
13
+ "keywords": [
14
+ "stingjs",
15
+ "create-sting",
16
+ "scaffold"
17
+ ],
18
+ "license": "MIT",
19
+ "engines": {
20
+ "node": ">=18.0.0"
21
+ },
22
+ "dependencies": {
23
+ "create-sting-app": "^1.0.0"
24
+ }
25
+ }