tsx 3.12.6 → 3.12.8
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 +70 -1
- package/dist/cl.cjs +27 -27
- package/dist/cli.js +26 -26
- package/dist/loade.cjs +1 -1
- package/dist/loader.js +1 -1
- package/dist/package-7b577f91.cjs +1 -0
- package/dist/package-854bff9b.js +1 -0
- package/dist/preflight..js +1 -1
- package/dist/preflight.cjs +1 -1
- package/dist/rep.cjs +3 -3
- package/dist/repl.js +1 -1
- package/package.json +2 -2
- package/dist/package-69a34105.js +0 -1
- package/dist/package-e19dc321.cjs +0 -1
- /package/dist/{pkgroll_create-require-9d193399.cjs → pkgroll_create-require-0ec623eb.cjs} +0 -0
- /package/dist/{pkgroll_create-require-b9328ee2.js → pkgroll_create-require-3c0d19c6.js} +0 -0
package/README.md
CHANGED
|
@@ -12,7 +12,21 @@
|
|
|
12
12
|
- Resolves `tsconfig.json` [`paths`](https://www.typescriptlang.org/tsconfig#paths)
|
|
13
13
|
- Tested on Linux & Windows with Node.js v12~18
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> **💡 Protip: Looking to bundle your TypeScript project?**
|
|
16
|
+
>
|
|
17
|
+
> If you're looking for a dead simple way to bundle your TypeScript projects, take a look at [`pkgroll`](https://github.com/privatenumber/pkgroll). It's an esbuild-enhanced Rollup that's auto configured based on your `package.json`!
|
|
18
|
+
|
|
19
|
+
<br>
|
|
20
|
+
|
|
21
|
+
<p align="center">
|
|
22
|
+
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum">
|
|
23
|
+
<picture>
|
|
24
|
+
<source width="830" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image=dark">
|
|
25
|
+
<source width="830" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image">
|
|
26
|
+
<img width="830" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image" alt="Premium sponsor banner">
|
|
27
|
+
</picture>
|
|
28
|
+
</a>
|
|
29
|
+
</p>
|
|
16
30
|
|
|
17
31
|
## About
|
|
18
32
|
`tsx` is a CLI command (alternative to `node`) for seamlessly running TypeScript & ESM, in both `commonjs` & `module` package types.
|
|
@@ -183,6 +197,21 @@ Node.js Loader to transform TypeScript to ESM.
|
|
|
183
197
|
#### [@esbuild-kit/cjs-loader](https://github.com/esbuild-kit/cjs-loader)
|
|
184
198
|
Node.js `require()` hook to transform TypeScript & ESM to CommonJS.
|
|
185
199
|
|
|
200
|
+
<br>
|
|
201
|
+
|
|
202
|
+
<p align="center">
|
|
203
|
+
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold">
|
|
204
|
+
<picture>
|
|
205
|
+
<source width="830" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image=dark">
|
|
206
|
+
<source width="830" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image">
|
|
207
|
+
<img width="830" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image" alt="Premium sponsor banner">
|
|
208
|
+
</picture>
|
|
209
|
+
</a>
|
|
210
|
+
</p>
|
|
211
|
+
|
|
212
|
+
## Support
|
|
213
|
+
|
|
214
|
+
If there's a problem you're encountering or something you need help with, don't hesitate to take advantage of my [_Priority Support_ service](https://github.com/sponsors/privatenumber) where you can ask me questions in an exclusive forum. I'm well equppied to assist you with this project and would be happy to help you out! 🙂
|
|
186
215
|
|
|
187
216
|
## FAQ
|
|
188
217
|
|
|
@@ -242,3 +271,43 @@ Transformations are handled by esbuild, so it shares the same limitations such a
|
|
|
242
271
|
- [`emitDecoratorMetadata`](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata) is not supported
|
|
243
272
|
|
|
244
273
|
For details, refer to esbuild's [JavaScript caveats](https://esbuild.github.io/content-types/#javascript-caveats) and [TypeScript caveats](https://esbuild.github.io/content-types/#typescript-caveats) documentation.
|
|
274
|
+
|
|
275
|
+
### Does Yarn PnP work?
|
|
276
|
+
|
|
277
|
+
In CommonJS mode, yes. But in Module/ESM mode, [Node.js version v19.6.0 and up](https://github.com/nodejs/node/blob/v19.6.0/doc/changelogs/CHANGELOG_V19.md#esm-leverage-loaders-when-resolving-subsequent-loaders) is required.
|
|
278
|
+
|
|
279
|
+
### There's an outdated dependency in tsx—can you update?
|
|
280
|
+
|
|
281
|
+
Dependencies are typically declared with SemVer ranges to allow updates. You can use the [`npm update <package name>`](https://docs.npmjs.com/cli/v8/commands/npm-update) command to automatically update them to the latest version within the defined range.
|
|
282
|
+
|
|
283
|
+
If the dependencies are out of the specified range, it indicates a potential breaking change that requires manual review. You're welcome to submit a pull request to initiate the upgrade.
|
|
284
|
+
|
|
285
|
+
## Sponsors
|
|
286
|
+
|
|
287
|
+
[**Holocron**](https://holocron.so#github-privatenumber)
|
|
288
|
+
|
|
289
|
+
[](https://holocron.so#github-privatenumber)
|
|
290
|
+
|
|
291
|
+
<p align="center">
|
|
292
|
+
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1">
|
|
293
|
+
<picture>
|
|
294
|
+
<source width="410" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image=dark">
|
|
295
|
+
<source width="410" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image">
|
|
296
|
+
<img width="410" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image" alt="Premium sponsor banner">
|
|
297
|
+
</picture>
|
|
298
|
+
</a>
|
|
299
|
+
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2">
|
|
300
|
+
<picture>
|
|
301
|
+
<source width="410" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image=dark">
|
|
302
|
+
<source width="410" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image">
|
|
303
|
+
<img width="410" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image" alt="Premium sponsor banner">
|
|
304
|
+
</picture>
|
|
305
|
+
</a>
|
|
306
|
+
</p>
|
|
307
|
+
|
|
308
|
+
<p align="center">
|
|
309
|
+
<a href="https://github.com/sponsors/privatenumber">
|
|
310
|
+
<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
|
|
311
|
+
</a>
|
|
312
|
+
</p>
|
|
313
|
+
|