Skip to content

Commit

Permalink
fix: bugfix for ts-node flag cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Jun 5, 2024
1 parent 11dce12 commit 2f33206
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 349 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-rings-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/ts-node-paths": patch
---

bugfix for ts-node flag cache
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.3",
"@changesets/cli": "2.27.5",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@hyperse/eslint-config-hyperse": "^1.0.4",
"@types/node": "^20.12.12",
"@hyperse/eslint-config-hyperse": "^1.0.7",
"@types/node": "^20.14.2",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"execa": "^9.1.0",
"husky": "9.0.11",
"lint-staged": "15.2.5",
"npm-run-all": "^4.1.5",
"tsup": "^8.0.2",
"tsx": "^4.11.0",
"tsup": "^8.1.0",
"tsx": "^4.11.2",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vitest": "^1.6.0"
},
"engines": {
Expand All @@ -95,4 +95,4 @@
"access": "public"
},
"packageManager": "yarn@4.2.2"
}
}
2 changes: 1 addition & 1 deletion src/path-alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class PathAlias {
console.log('> Source file found!');
console.log(' Using "ts-node/esm"...');
console.log('------------------------------------');
(process as any)[HYPERSE_TS_NODE] = true;
}
(process as any)[HYPERSE_TS_NODE] = true;
}

return this.#isTsNode;
Expand Down
Loading

0 comments on commit 2f33206

Please sign in to comment.