Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: using absolute paths for tsc.cmd on Windows #30

Merged
merged 9 commits into from
Oct 9, 2024

Conversation

czy88840616
Copy link
Member

@czy88840616 czy88840616 commented Oct 9, 2024

Fix the issue #29 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.

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).
@czy88840616 czy88840616 merged commit f451448 into main Oct 9, 2024
5 checks passed
@czy88840616 czy88840616 deleted the czy88840616/fix-absolute-paths branch October 9, 2024 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant