Typescript js code gen工具会覆盖现有的.js文件,其名称与新的.ts文件相同,不会发出警告 [英] Typescript js code gen tool overwrites an existing .js file with same name as the new .ts file without warning

查看:89
本文介绍了Typescript js code gen工具会覆盖现有的.js文件,其名称与新的.ts文件相同,不会发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了一个.ts文件,"opta.ts"以及生成随附的.js&的工具.map文件在没有警告或通知的情况下覆盖了现有的opta.js文件。


我以为我在破解,幸运的是我有源代码控制!


是否有一个我忽略的设置可以防止这种情况,或者它是否找到了困难的方法,然后只是不要将.ts文件命名为与现有文件相同的文件?


我是使用VS 2017 Enterprise 15.5.4


谢谢

解决方案

嗨Steve,


< p style ="margin-bottom:12pt"> 欢迎来到MSDN论坛。


请参阅您的描述,您的问题似乎与TypeScript有关发展。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:
https://github.com/Microsoft / TypeScript /问题并开始一个新问题以获得更好的支持,感谢您的理解。



最好的问候,


Sara


Hi,

I created a .ts file, "opta.ts" and the tool that generates the accompanying .js & .map files overwrote an existing opta.js file without warning or notification.

I thought I was cracking up, lucky I have source control!

Is there a setting I've overlooked that prevents this or is it find out the hard way and then just don't name .ts files the same as any existing files?

I'm using VS 2017 Enterprise 15.5.4

thanks

解决方案

Hi Steve,

Welcome to the MSDN forum.

Refer to your description, your issue seems about the TypeScript development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://github.com/Microsoft/TypeScript/issues and start a new issue for a better support, thank you for your understanding.

Best regards,

Sara


这篇关于Typescript js code gen工具会覆盖现有的.js文件,其名称与新的.ts文件相同,不会发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆