@gjsify/tsc 0.4.35 → 0.4.37
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 +19 -1
- package/dist/tsc.gjs.mjs +3 -3
- package/package.json +13 -7
- package/src/index.gjs.spec.ts +111 -0
- package/src/test.mts +4 -0
package/README.md
CHANGED
|
@@ -49,11 +49,29 @@ gjsify workspace @gjsify/tsc clear
|
|
|
49
49
|
# bump devDependency typescript: in package.json (or workspace-wide)
|
|
50
50
|
gjsify install --immutable
|
|
51
51
|
gjsify workspace @gjsify/tsc build
|
|
52
|
-
#
|
|
52
|
+
# update TYPESCRIPT_VERSION in src/index.ts to match the new bundled version
|
|
53
|
+
# commit the new dist/tsc.gjs.mjs and src/index.ts
|
|
53
54
|
```
|
|
54
55
|
|
|
55
56
|
The bundled version is pinned in `src/index.ts` as `TYPESCRIPT_VERSION`.
|
|
56
57
|
|
|
58
|
+
CI (`.github/workflows/main.yml`) runs a staleness check after every install
|
|
59
|
+
that fails the build if `dist/tsc.gjs.mjs --version` does not match
|
|
60
|
+
`TYPESCRIPT_VERSION` — same shape as the existing check for
|
|
61
|
+
`packages/infra/cli/dist/cli.gjs.mjs`.
|
|
62
|
+
|
|
63
|
+
## Tests
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
gjsify workspace @gjsify/tsc test
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The GJS-only smoke spec (`src/index.gjs.spec.ts`) runs the committed bundle
|
|
70
|
+
under `gjs -m dist/tsc.gjs.mjs …` and validates `--version` plus `-p
|
|
71
|
+
<tsconfig>` exit codes on a clean and a buggy fixture (the latter must
|
|
72
|
+
produce a `TS2322` diagnostic). The aggregator is `src/test.mts`; the test
|
|
73
|
+
bundle is built to `dist/test.gjs.mjs` and is gitignored.
|
|
74
|
+
|
|
57
75
|
## Runtime triplet
|
|
58
76
|
|
|
59
77
|
```json
|