create-solidrt 0.0.65 → 0.0.67
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 +2 -2
- package/package.json +1 -1
- package/src/main.ts +3 -3
package/README.md
CHANGED
|
@@ -8,10 +8,10 @@ cd my-app
|
|
|
8
8
|
bun run dev
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
This forwards to `
|
|
11
|
+
This forwards to `sol init` from `@solidrt/cli`, which writes a starter project
|
|
12
12
|
(package.json, tsconfig.json, AGENTS.md, src/index.tsx) into a new, empty folder
|
|
13
13
|
and installs the dependencies.
|
|
14
14
|
|
|
15
|
-
Bun is only used for development: it runs the scaffolder, the `
|
|
15
|
+
Bun is only used for development: it runs the scaffolder, the `sol` CLI and the
|
|
16
16
|
dev server. A SolidRT app itself runs on the SolidRT runtime, which embeds its
|
|
17
17
|
own JavaScript engine, so Bun is not needed to run or ship the app.
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// `bun create solidrt <dir>` entry point. A thin wrapper that forwards to
|
|
2
|
-
// `
|
|
2
|
+
// `sol init` in @solidrt/cli, so there is one source of truth for what a new
|
|
3
3
|
// SolidRT project looks like. We shell out via `bun x` rather than depend on
|
|
4
4
|
// @solidrt/cli directly, to avoid pulling its native-binary tree into the
|
|
5
|
-
// scaffolder. The empty/existing-folder guard lives in `
|
|
5
|
+
// scaffolder. The empty/existing-folder guard lives in `sol init`.
|
|
6
6
|
import pkg from "../package.json" with { type: "json" }
|
|
7
7
|
|
|
8
8
|
let dir = process.argv[2]
|
|
@@ -18,7 +18,7 @@ if (!dir || dir.startsWith("-")) {
|
|
|
18
18
|
// unpublished 0.0.0 workspace version, which has no npm release to pin to.
|
|
19
19
|
let cli = pkg.version === "0.0.0" ? "@solidrt/cli@latest" : `@solidrt/cli@${pkg.version}`
|
|
20
20
|
|
|
21
|
-
// Forward any trailing flags to `
|
|
21
|
+
// Forward any trailing flags to `sol init` untouched.
|
|
22
22
|
let extra = process.argv.slice(3)
|
|
23
23
|
let proc = Bun.spawnSync(["bun", "x", cli, "init", dir, ...extra], {
|
|
24
24
|
stdin: "inherit",
|