tsx 3.4.3 → 3.6.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 +5 -2
- package/dist/cli.cjs +25 -25
- package/dist/cli.js +25 -25
- package/dist/loader.cjs +1 -1
- package/dist/loader.js +1 -1
- package/dist/package-1ebaba9f.cjs +1 -0
- package/dist/package-5e172dec.js +1 -0
- package/dist/{pkgroll_create-require-12c8685c.js → pkgroll_create-require-40666c6a.js} +0 -0
- package/dist/{pkgroll_create-require-fad3c606.cjs → pkgroll_create-require-db0ba817.cjs} +0 -0
- package/dist/repl.cjs +3 -3
- package/dist/repl.js +3 -3
- package/package.json +5 -4
- package/dist/package-81a89caf.js +0 -1
- package/dist/package-b612df74.cjs +0 -1
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
- TypeScript REPL
|
|
12
12
|
- Tested on Linux & Windows with Node.js v12~18
|
|
13
13
|
|
|
14
|
+
<sub>Support this project by ⭐️ starring and sharing it. [Follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️</sub>
|
|
14
15
|
|
|
15
16
|
## About
|
|
16
17
|
`tsx` is a CLI command (alternative to `node`) for seamlessly running TypeScript & ESM, in both `commonjs` & `module` package types.
|
|
@@ -74,7 +75,7 @@ tsx ./file.ts
|
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
### Watch mode
|
|
77
|
-
Run file and automatically
|
|
78
|
+
Run file and automatically rerun on changes:
|
|
78
79
|
|
|
79
80
|
```sh
|
|
80
81
|
tsx watch ./file.ts
|
|
@@ -83,7 +84,9 @@ tsx watch ./file.ts
|
|
|
83
84
|
All imported files are watched except from the following directories:
|
|
84
85
|
`node_modules`, `bower_components`, `vendor`, `dist`, and `.*` (hidden directories).
|
|
85
86
|
|
|
86
|
-
|
|
87
|
+
#### Tips
|
|
88
|
+
- Press <kbd>Return</kbd> to manually rerun
|
|
89
|
+
- Pass in `--clear-screen=false` to disable clearing the screen on rerun
|
|
87
90
|
|
|
88
91
|
### REPL
|
|
89
92
|
Start a TypeScript REPL by running with no arguments:
|