chore: enable node to run the output of tsc without modification

This commit is contained in:
Glen Whitney 2022-09-07 10:10:41 -04:00
parent 0430eb6d5c
commit 2377860ff3
4 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*~
node_modules
obj/**/*.js

1
obj/package.json Normal file
View File

@ -0,0 +1 @@
{ "type": "module" }

View File

@ -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',

View File

@ -1,7 +1,9 @@
{
"compilerOptions": {
"target": "ES2022",
"moduleResolution": "node"
"moduleResolution": "node",
"rootDir": "src",
"outDir": "obj"
},
"files": [
"src/steps/one.ts"