Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Overwrites .bin/tsc.cmd #94

Closed
AllNamesRTaken opened this issue Aug 16, 2017 · 2 comments · Fixed by #124
Closed

Overwrites .bin/tsc.cmd #94

AllNamesRTaken opened this issue Aug 16, 2017 · 2 comments · Fixed by #124

Comments

@AllNamesRTaken
Copy link

After installing it overwrites node_modules/.bin/tsc.cmd meaning that any script in package.json that just do a tsc, like tests, now picks an old 1.8 version.

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\..\rollup-plugin-typescript\node_modules\typescript\bin\tsc" %*
) ELSE (
  @SETLOCAL
  @SET PATHEXT=%PATHEXT:;.JS;=;%
  node  "%~dp0\..\rollup-plugin-typescript\node_modules\typescript\bin\tsc" %*
)

It should leave the original.

@eldenpark
Copy link

Same happened. Command tsc in local repository now directs to that file. You can check, for example, by adding a script in package.json which tsc && tsc -version

@stakx
Copy link

stakx commented Aug 1, 2018

This could be resolved if this plugin package declared typescript as a peer dependency so it would use your pick of that package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants