@gjsify/cli 0.23.0 → 0.24.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/README.md +9 -5
- package/dist/cli.gjs.mjs +93 -85
- package/lib/actions/build.d.ts +12 -0
- package/lib/actions/build.js +26 -0
- package/lib/bundler-pick.js +54 -13
- package/lib/commands/affected.js +62 -4
- package/lib/commands/foreach.js +71 -1
- package/lib/commands/install.js +20 -4
- package/lib/commands/showcase.js +17 -13
- package/lib/commands/storybook.js +5 -2
- package/lib/utils/detect-native-packages.d.ts +26 -21
- package/lib/utils/detect-native-packages.js +53 -41
- package/lib/utils/gjs-bundle-guard.d.ts +32 -0
- package/lib/utils/gjs-bundle-guard.js +103 -0
- package/lib/utils/oxc-resolve.js +7 -2
- package/lib/utils/run-node.d.ts +16 -0
- package/lib/utils/run-node.js +28 -7
- package/lib/utils/runtimes.d.ts +21 -0
- package/lib/utils/runtimes.js +23 -0
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -30,12 +30,16 @@ npx @gjsify/cli info dist/index.js
|
|
|
30
30
|
## Native prebuilds
|
|
31
31
|
|
|
32
32
|
Packages that ship compiled artifacts declare them with
|
|
33
|
-
`"gjsify": { "prebuilds": "prebuilds", "platforms": ["linux-
|
|
33
|
+
`"gjsify": { "prebuilds": "prebuilds", "platforms": ["linux-x64", "darwin-arm64", …] }`
|
|
34
34
|
and stage them under `prebuilds/<os>-<arch>/`. `run`, `info`, `tsc` and the bin launchers
|
|
35
|
-
`install` writes all resolve that directory for the running host
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
`install` writes all resolve that directory for the running host.
|
|
36
|
+
|
|
37
|
+
There is ONE `<os>-<arch>` spelling: `${process.platform}-${process.arch}` — `linux-x64`,
|
|
38
|
+
`linux-arm64`, `darwin-arm64`, `win32-x64`. It is what a running process can compute about
|
|
39
|
+
itself, so resolution needs no translation. (`ppc64`, `s390x` and `riscv64` are spelled the
|
|
40
|
+
same in every vocabulary.) The resolver still probes a package's own `gjsify.platforms`
|
|
41
|
+
entry first, and falls back to the retired uname spelling (`linux-x86_64`), so a tarball
|
|
42
|
+
published before the rename keeps loading.
|
|
39
43
|
|
|
40
44
|
The environment they export is `GI_TYPELIB_PATH` plus the library-search variable the host's
|
|
41
45
|
dynamic loader actually reads:
|