tsx 3.10.3 → 3.11.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 +8 -4
- package/dist/cli.cjs +8 -8
- package/dist/cli.js +8 -8
- package/dist/loader.cjs +2 -1
- package/dist/loader.js +2 -1
- package/dist/package-074d362d.cjs +1 -0
- package/dist/package-5a1af3fe.js +1 -0
- package/dist/{pkgroll_create-require-185fa300.cjs → pkgroll_create-require-0e64e1fd.cjs} +0 -0
- package/dist/{pkgroll_create-require-7d4da66c.js → pkgroll_create-require-1fb071f6.js} +0 -0
- package/dist/preflight.cjs +1 -2
- package/dist/preflight.js +1 -2
- package/dist/repl.cjs +1 -1
- package/dist/repl.js +1 -1
- package/package.json +1 -1
- package/dist/package-8c62d0ea.cjs +0 -1
- package/dist/package-ac0cf381.js +0 -1
package/README.md
CHANGED
|
@@ -171,18 +171,22 @@ argv: [ 'hello' ]
|
|
|
171
171
|
|
|
172
172
|
## Dependencies
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
#### [@esbuild-kit/esm-loader](https://github.com/esbuild-kit/esm-loader)
|
|
175
|
+
Node.js Loader to transform TypeScript to ESM.
|
|
175
176
|
|
|
176
|
-
|
|
177
|
+
#### [@esbuild-kit/cjs-loader](https://github.com/esbuild-kit/cjs-loader)
|
|
178
|
+
Node.js `require()` hook to transform TypeScript & ESM to CommonJS.
|
|
177
179
|
|
|
178
180
|
|
|
179
181
|
## FAQ
|
|
180
182
|
|
|
181
183
|
### Why is it named `tsx`?
|
|
182
184
|
|
|
183
|
-
`tsx` stands for "TypeScript execute"
|
|
185
|
+
`tsx` stands for "TypeScript execute". Mirroring [`npx`](https://docs.npmjs.com/cli/v8/commands/npx), which stands for "Node.js package execute".
|
|
184
186
|
|
|
185
|
-
|
|
187
|
+
The 3-character package name offers an elegant developer experience, allowing usage like: `npx tsx ...`.
|
|
188
|
+
|
|
189
|
+
Unfortunately, it overlaps with React's [TSX/JSX](https://www.typescriptlang.org/docs/handbook/jsx.html), which stands for "TypeScript XML".
|
|
186
190
|
|
|
187
191
|
### Does it do type-checking?
|
|
188
192
|
|