@gjsify/tsc 0.4.43 → 0.5.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 CHANGED
@@ -1,13 +1,27 @@
1
1
  # @gjsify/tsc
2
2
 
3
3
  [TypeScript][typescript] for [GJS][gjs] — the upstream `typescript` compiler
4
- bundled to a single GJS module and shipped with a `tsc` bin that runs
4
+ bundled to a single GJS module and shipped with a `gjsify-tsc` bin that runs
5
5
  **directly under [SpiderMonkey][spidermonkey] via GJS**, without Node.js in
6
6
  the loop.
7
7
 
8
+ Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ gjsify install @gjsify/tsc
14
+
15
+ # npm or yarn also work (e.g. adding it to an existing project):
16
+ npm install @gjsify/tsc
17
+ yarn add @gjsify/tsc
18
+ ```
19
+
20
+ ## Usage
21
+
8
22
  ```bash
9
23
  # Node-free TypeScript checking on any GJS-equipped system:
10
- gjsify-tsc --version # → Version 5.9.3
24
+ gjsify-tsc --version # → Version 6.0.3
11
25
  gjsify-tsc -p tsconfig.json # type-check (--noEmit-style usage)
12
26
  gjsify-tsc --diagnostics foo.ts # tsc perf info works the same as on Node
13
27
  ```
@@ -20,11 +34,11 @@ that's it. With `@gjsify/cli`'s `--app gjs` target, the same compiler runs
20
34
  unchanged under GJS, polyfilled by the rest of the gjsify family
21
35
  (`@gjsify/fs`, `@gjsify/path`, `@gjsify/process`, `@gjsify/perf_hooks`, …).
22
36
 
23
- This package is the first proof-of-concept that **the gjsify build chain can
24
- be Node-free** the long-standing goal tracked in the project's
25
- `STATUS.md`. The `gjsify` CLI itself already ships as a GJS bundle; pairing
26
- that with `gjsify-tsc` removes Node from the type-check step of any
27
- gjsify-built app.
37
+ gjsify **self-hosts** its type-checking on this package: every workspace
38
+ `check` and `.d.ts` emit runs `gjsify-tsc`, not Node's `tsc`. Together with
39
+ the `gjsify` CLI (also a GJS bundle) and the native Rolldown bundler engine,
40
+ the gjsify build chain now runs Node-free under GJS — the long-standing goal
41
+ tracked in the project's `STATUS.md`.
28
42
 
29
43
  ## Layout
30
44
 
@@ -88,6 +102,10 @@ case.
88
102
  - Originally implemented for Node.js / SpiderMonkey; this package bundles
89
103
  upstream's pre-built `_tsc.js` CLI entry, not a reimplementation.
90
104
 
105
+ ## License
106
+
107
+ MIT
108
+
91
109
  [typescript]: https://github.com/microsoft/TypeScript
92
110
  [gjs]: https://gitlab.gnome.org/GNOME/gjs
93
111
  [spidermonkey]: https://spidermonkey.dev/