Skip to content

Commit 0df89d0

Browse files
committedSep 14, 2021
fix(tsbb): Fix type output error.
1 parent 346820a commit 0df89d0

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"watch:react-component": "lerna exec \"npm run watch\" --scope @template/react-component",
2525
"start:react-component": "lerna exec \"npm run doc:dev\" --scope @template/react-component",
2626
"build:react-component-tsx": "lerna exec \"npm run build\" --scope @template/react-component-tsx",
27+
"watch:react-component-tsx": "lerna exec \"npm run watch\" --scope @template/react-component-tsx",
2728
"watch": "lerna exec \"tsc -p ./ --types --outDir lib --watch\" --scope tsbb",
2829
"build": "lerna exec \"tsc -p ./ --types --outDir lib\" --scope create-tsbb --scope tsbb --stream",
2930
"type-check": "lerna exec \"tsc --noEmit\" --scope create-tsbb --scope tsbb --stream",

‎packages/tsbb/src/cli.ts

-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ const argv: ArgvArguments = parser(process.argv.slice(2), {
5757
argv.fileNames = [argv.entry];
5858
}
5959

60-
argv.fileNames = argv.fileNames.map((item) => item.replace(/\.tsx$/, '.ts'));
61-
6260
if (argv.disableBabel) {
6361
argv.esm = false;
6462
}

‎packages/tsbb/src/utils/compile.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export async function compile(
6868
resolve();
6969
return;
7070
}
71+
tsOptions.noEmit = false;
7172

7273
const host = ts.createCompilerHost(tsOptions, true);
7374
// ts.getParsedCommandLineOfConfigFile('', tsOptions, host)

0 commit comments

Comments
 (0)
Please sign in to comment.