Skip to content

Commit

Permalink
refactor: Replaced ts-node with tsimp (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored Feb 1, 2024
1 parent 5db7e0c commit bb74b2d
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 136 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
.cache
.DS_Store
.idea/
.vscode/*
.tsimp/
.vscode/
!.vscode/settings.json
config.json
coverage/
Expand Down
222 changes: 90 additions & 132 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"generate-changelog": "^1.8.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"tsimp": "^2.0.10",
"typedoc": "^0.25.4",
"typescript": "^5.3.3",
"vitest": "^1.1.1"
Expand All @@ -44,7 +44,7 @@
"clean": "rimraf coverage dist docs",
"commit": "npm run fix && git commit -am \"chore: Generated release files\"",
"deploy": "exit 0",
"dev": "node --inspect --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/start.ts",
"dev": "cross-env TSIMP_DIAG=error node --inspect --import=tsimp/import ./src/start.ts",
"dist": "npm run clean && npm run build",
"docs": "npm run docs:build",
"docs:build": "typedoc src/index.ts",
Expand All @@ -57,7 +57,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",
"revert:release": "npm unpublish @bennycode/ts-node-starter",
"start": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/start.ts",
"start": "cross-env TSIMP_DIAG=error node --import=tsimp/import ./src/start.ts",
"test": "npm run test:types && npm run test:unit:coverage",
"test:types": "tsc --noEmit",
"test:unit": "vitest run --passWithNoTests",
Expand Down

0 comments on commit bb74b2d

Please sign in to comment.