-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
陶家行
authored and
桃树
committed
Mar 26, 2024
1 parent
e035da9
commit 03c56d8
Showing
7 changed files
with
91 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/bundler-okam/fork-ts-checker/child_process_fork.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const { TypeChecker } = require('./ts-checker'); | ||
|
||
const projectRoot = process.argv[2]; | ||
|
||
async function runTypeCheck() { | ||
const typeChecker = new TypeChecker(projectRoot); | ||
return await typeChecker.check(); | ||
} | ||
|
||
runTypeCheck() | ||
.then(() => { | ||
process.exit(1); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(0); | ||
}); |
11 changes: 3 additions & 8 deletions
11
...ler-okam/plugins/fork-ts-checker/index.js → ...ges/bundler-okam/fork-ts-checker/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,8 @@ | |
"publishConfig": { | ||
"registry": "https://registry.antgroup-inc.cn" | ||
}, | ||
"repository": "[email protected]:umijs/mako.git" | ||
"repository": "[email protected]:umijs/mako.git", | ||
"devDependencies": { | ||
"typescript": "^5.4.3" | ||
} | ||
} |
Oops, something went wrong.