Skip to content

Commit

Permalink
fix(tsbb): Fix type output error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 14, 2021
1 parent 346820a commit 0df89d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"watch:react-component": "lerna exec \"npm run watch\" --scope @template/react-component",
"start:react-component": "lerna exec \"npm run doc:dev\" --scope @template/react-component",
"build:react-component-tsx": "lerna exec \"npm run build\" --scope @template/react-component-tsx",
"watch:react-component-tsx": "lerna exec \"npm run watch\" --scope @template/react-component-tsx",
"watch": "lerna exec \"tsc -p ./ --types --outDir lib --watch\" --scope tsbb",
"build": "lerna exec \"tsc -p ./ --types --outDir lib\" --scope create-tsbb --scope tsbb --stream",
"type-check": "lerna exec \"tsc --noEmit\" --scope create-tsbb --scope tsbb --stream",
Expand Down
2 changes: 0 additions & 2 deletions packages/tsbb/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const argv: ArgvArguments = parser(process.argv.slice(2), {
argv.fileNames = [argv.entry];
}

argv.fileNames = argv.fileNames.map((item) => item.replace(/\.tsx$/, '.ts'));

if (argv.disableBabel) {
argv.esm = false;
}
Expand Down
1 change: 1 addition & 0 deletions packages/tsbb/src/utils/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export async function compile(
resolve();
return;
}
tsOptions.noEmit = false;

const host = ts.createCompilerHost(tsOptions, true);
// ts.getParsedCommandLineOfConfigFile('', tsOptions, host)
Expand Down

0 comments on commit 0df89d0

Please sign in to comment.