Skip to content

Commit

Permalink
refactor: Use ts-node/esm/transpile-only
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Nov 25, 2024
1 parent 0bd9d64 commit 0d86882
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"clean": "rimraf coverage dist docs",
"commit": "npm run fix && git commit -am \"chore: Generated release files\"",
"deploy": "exit 0",
"dev": "tsc --noEmit && node --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/start.ts",
"dev": "tsc --noEmit && node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only ./src/start.ts",
"dist": "npm run clean && npm run build && attw --pack . --ignore-rules cjs-resolves-to-esm",
"docs": "npm run docs:build",
"docs:build": "typedoc src/index.ts",
Expand All @@ -58,7 +58,7 @@
"release:minor": "generate-changelog -m -x \"chore,test\" && npm run docs && npm run commit && npm version minor",
"release:patch": "generate-changelog -p -x \"chore,test\" && npm run docs && npm run commit && npm version patch",
"release:revert": "npm unpublish ts-node-starter",
"start": "tsc --noEmit && node --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/start.ts",
"start": "tsc --noEmit && node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only ./src/start.ts",
"test": "npm run test:types && npm run test:unit:coverage",
"test:types": "tsc --project tsconfig.check.json",
"test:unit": "vitest run --passWithNoTests",
Expand Down
14 changes: 9 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"ts-node": {
"transpileOnly": true
},
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"types": ["vitest/globals"]
"types": [
"vitest/globals"
]
},
"exclude": ["coverage", "dist", "docs", "vitest.config.ts"],
"exclude": [
"coverage",
"dist",
"docs",
"vitest.config.ts"
],
"extends": "@tstv/tsconfig-common/tsconfig.json"
}

0 comments on commit 0d86882

Please sign in to comment.