Skip to content

Commit

Permalink
refactor: specify ts-node ESM flag in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Nov 6, 2023
1 parent aa0b888 commit 2cc6f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"scripts": {
"build": "tsc",
"build:exe": "npm run build && rollup -c && pkg dist/rollup-output.cjs --target host --output exe/rdme",
"debug": "ts-node --esm src/cli.ts",
"debug": "ts-node src/cli.ts",
"lint": "alex . && knip && npm run lint:ts && npm run prettier && npm run schemas:check",
"lint:ts": "eslint . --ext .js,.ts",
"prebuild": "rm -rf dist/",
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"target": "ES2022",
"useUnknownInCatchVariables": false
},
"include": ["./src/**/*"]
"include": ["./src/**/*"],
"ts-node": {
"esm": true
}
}

0 comments on commit 2cc6f3c

Please sign in to comment.