-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: using absolute paths for tsc.cmd on Windows (#30)
* fix: using absolute paths for tsc.cmd on Windows Fix the issue with using absolute paths for `tsc.cmd` on Windows and add a test to verify the change. * **lib/process.js** - Update the `spawn` function to use absolute paths for `tsc.cmd` on Windows. - Check for `tsc.cmd` under `node_modules/.bin` and use this path if it exists, otherwise use the global `tsc.cmd`. * **test/index.test.js** - Add a test to check the `tsc` version and ensure it matches the version in `node_modules/typescript/package.json`. * **History.md** - Add a new entry for the fix of using absolute paths for `tsc.cmd` on Windows. * **.github/workflows/nodejs.yml** - Add a global TypeScript installation with a specific version. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/midwayjs/mwtsc?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
eff8f7c
commit f451448
Showing
6 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm install -g [email protected] | ||
- run: npm install && npm install codecov | ||
- run: npm run cov | ||
- name: Upload coverage to Codecov | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
1.11.1 / 2024-07-14 | ||
=================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters