-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added missing typescript-tsx-esm-import files
- Loading branch information
1 parent
5c40153
commit b2b0192
Showing
8 changed files
with
1,796 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extension": ["ts"], | ||
"spec": "src/**/*.spec.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# TypeScript with `tsx` Loader | ||
|
||
A standalone project showing TypeScript source files transpiled on-the-fly with [`--import tsx`](https://tsx.is/node) as a Node ECMAScript Modules importer. | ||
|
||
```shell | ||
npm i | ||
npm run test | ||
``` | ||
|
||
Note that the `tsconfig.json` file has `compilerOptions`: | ||
|
||
- `"noEmit": true`: as there's no need to transpile `.ts` files on disk to `.js` files on disk before running these tests | ||
- `"module": "ESNext`: indicating code should be transpiled in-memory as ESM | ||
|
||
Additionally, `package.json` has `"type": "module"`. | ||
If it didn't, TypeScript source files would need the `.mts` extension. |
Oops, something went wrong.