-
Notifications
You must be signed in to change notification settings - Fork 54
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
6.x 版本egg dev没有集成ets #242
Comments
给一个可以复现的 repo? |
@fengmk2 https://stackblitz.com/edit/stackblitz-starters-qkb6hw?description=&file=package.json&title=Egg.js%20Starter |
https://github.com/eggjs/egg-bin/blob/master/scripts/postinstall.js#L40 在 npm install 阶段没有执行 postinstall 吗? |
我不是很理解,是说在postinstall执行ets么,难道更新typings靠重新npm install吗,这不太合理吧,之前都是egg-bin dev的时候执行ets |
在packag.json加上如下配置可以了 |
先记个 bug |
https://github.com/eggjs/egg-boilerplate-ts/blob/master/boilerplate/_package.json 需要使用 ts 的脚手架,配置加上 "egg": {
"typescript": true
} |
|
试了下这个模版,把typing删了再npm run dev并不会重新生成类型声明文件 |
|
一样的,6.x的egg-bin的我试了还是不行 |
same problem here. |
如题,6.x版本运行egg dev无法识别declarations配置,不会运行ets生成typings。这个符合预期吗,在changelog里没看到相关信息
The text was updated successfully, but these errors were encountered: