chore: enable node to run the output of tsc without modification
This commit is contained in:
parent
0430eb6d5c
commit
2377860ff3
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
*~
|
||||
node_modules
|
||||
obj/**/*.js
|
||||
|
1
obj/package.json
Normal file
1
obj/package.json
Normal file
@ -0,0 +1 @@
|
||||
{ "type": "module" }
|
@ -1,4 +1,4 @@
|
||||
import { useTypes } from 'over.ts/src/index';
|
||||
import { useTypes } from 'over.ts/src/index.js';
|
||||
|
||||
const types = {
|
||||
number: (x: unknown): x is number => typeof x === 'number',
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"moduleResolution": "node"
|
||||
"moduleResolution": "node",
|
||||
"rootDir": "src",
|
||||
"outDir": "obj"
|
||||
},
|
||||
"files": [
|
||||
"src/steps/one.ts"
|
||||
|
Loading…
Reference in New Issue
Block a user