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

Merged
glen merged 1 commits from importing into main 2022-09-07 14:12:18 +00:00
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"