-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
echosoar
commented
Feb 19, 2020
•
edited by czy88840616
Loading
edited by czy88840616
- 修复invoke时sourceMap的root路径问题
- faas-cli 无命令时显示帮助
- faas 有个边界问题
- 在开发调试时,不生成 tsconfig
Codecov Report
@@ Coverage Diff @@
## master #52 +/- ##
==========================================
- Coverage 70.87% 69.32% -1.56%
==========================================
Files 69 69
Lines 1940 1946 +6
Branches 183 183
==========================================
- Hits 1375 1349 -26
- Misses 531 563 +32
Partials 34 34
Continue to review full report at Codecov.
|
* fix: incremental params pass * chores: remove useless code * fix: incremental no effect * refactor: update clean flag * chore: clean test code * chore: clean test code * chore: update yml md Co-authored-by: Harry Chen <czy88840616@gmail.com>
} else { | ||
await tsCompile(this.servicePath, { | ||
clean: true, | ||
tsConfigName: 'tsconfig.json', | ||
source: this.options.sourceDir || 'src', | ||
source: resolve(this.servicePath, 'src'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里原来好像允许改的。。这样岂不是不能了么。。
await tsIntegrationProjectCompile(this.servicePath, { | ||
sourceDir: this.options.sourceDir || 'src', | ||
const tsConfig = await tsIntegrationProjectCompile(this.servicePath, { | ||
sourceDir: resolve(this.servicePath, 'src'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可能也是
tsConfig.compilerOptions.incremental = options.incremental; | ||
} | ||
if (tsConfig.compilerOptions.incremental) { | ||
tsConfig.compilerOptions.tsBuildInfoFile = resolve(baseDir, '.tsbuildinfo'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里我觉得有点问题。。。. tsbuildinfo
文件应该不能在根目录,得在build目录,不然不会被清理,一直被增量。
join(baseDir, 'tsconfig_integration_faas.json'), | ||
join(this.buildDir, 'tsconfig.json'), | ||
opts | ||
); | ||
} else { | ||
// TODO 重构 midway-bin 不生成 tsconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个TODO 可以去掉了。 。。
} else { | ||
// TODO 重构 midway-bin 不生成 tsconfig | ||
await tsCompile(baseDir, { | ||
source: 'src', | ||
source: resolve(baseDir, 'src'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
总觉得这里应该读传相对路径,要绝对路径也只在最底层处理