-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
VS 2015 Update 3 Clean deletes .js files it shouldn't #10281
Comments
Tested this issue with TypeScript 2.0 beta VS extension and it doesn't occur, so seems this will resolve itself once TS 2.0 is released. 👍 |
happing to me VS 2015 angular 2 rc6 |
@oferAshkenazy Sadly no, basically work around is to install TypeScript 2.0 beta extension Visual Studio Extension. Direct download link is in the linked blog post. |
I have a similar issue, where reflect.js file gets edited/checked-out and gives error as I use npm and in my tsconfig I added this, Installed typescript plugin and it is not giving that error so far. Thanks for your help @Layoric . |
TypeScript Version: 1.8.35
When trying to create an Angular 2 application using JSPM, I could run the application once and then after a Visual Studio rebuild, JSPM could not located
Reflect.js
fromreflect-metadata
. It seems that on clean/rebuild action, theReflect.js
file was being deleted.I believe this is due to
Reflect.ts
being included in the NPM package and VS/TypeScript matching the two names on clean and deleting theReflect.js
file even though thejspm_packages
folder is being excluded in thetsconfig.json
. If I change theReflect.ts
file toReflect_.ts
theReflect.js
file is left untouched. This problem also doesn't occur when the package is installed tonode_modules
via NPM.Below is my
tsconfig.json
.I've disabled ReSharper in case that was the cause but can still replicate the issue.
Code
I've created a minimal example project with VS 2015 highlighting the issue.
https://github.com/Layoric/VSTypeScriptIssueExampleProject
Running after initial NPM install and VS build should show.
Stopping and running a clean/rebuild will run again but not display lower text message and in the web console. Errors will show that JSPM can't find
Reflect.js
file.Expected behavior:
Visual Studio 2015 adheres to
tsconfig.json
exclude
for bothbuild
action as well asclean
.Actual behavior:
When cleaning a project,
.js
files with matching.ts
files that are within directories listed intsconfig.json
exclude
array are deleted.My setup is:
Windows 7
Visual Studio 2015 Update 3
TypeScript 1.8.35
Node 4.2.2
NPM 3.8.3
JSPM 0.16.33 (global)
Let me know if any other info is required 👍
The text was updated successfully, but these errors were encountered: