Merge pull request 'chore: enable node to run the output of tsc without modification' (#2) from importing into main

Reviewed-on: #2
This commit is contained in:
Glen Whitney 2022-09-07 14:12:18 +00:00
commit c4bb415b5e
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 = { const types = {
number: (x: unknown): x is number => typeof x === 'number', number: (x: unknown): x is number => typeof x === 'number',

View File

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