https://github.com/hustcc/loose-tsc
loose tsc which will skip type checking.
https://github.com/hustcc/loose-tsc
loose tsc typescript
Last synced: 15 days ago
JSON representation
loose tsc which will skip type checking.
- Host: GitHub
- URL: https://github.com/hustcc/loose-tsc
- Owner: hustcc
- Created: 2019-07-19T02:06:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T02:09:16.000Z (almost 6 years ago)
- Last Synced: 2025-02-14T04:27:48.423Z (2 months ago)
- Topics: loose, tsc, typescript
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loose-tsc
> 解决 `tsc` 编译 ts 文件的时候,无法跳过 type checking 步骤。
## Install
> npm i loose-tsc
## Usage
在 `package.json` 中:
```diff
"script": {
- "build": "tsc",
+ "build": "loose-tsc"
}
```## 场景使用
- 可以先使用 shell 脚本,一键将目录中的 `.js` 文件改成 `.ts` 后缀。
```shell
find ./src -name "*.js*" -exec rename -v 's/\.js/\.ts/i' {} \;
```- 然后使用 `tsc` 编译肯定无法通过,所以使用 `loose-tsc` 替换即可。
- 后续在逐步将 js 语法的 ts 代码修正。