Skip to content

Commit 7cde871

Browse files
author
linfeng
committed
feat: update tsconfig
1 parent f56c405 commit 7cde871

File tree

1 file changed

+3
-0
lines changed
  • src/built-in-plugins/ensure-project-files/plugin

1 file changed

+3
-0
lines changed

src/built-in-plugins/ensure-project-files/plugin/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function ensureTsconfig() {
6161
outDir: globalState.sourceConfig.distDir,
6262
baseUrl: '.',
6363
lib: ['dom', 'es5', 'es6', 'scripthost', 'es2018.promise'],
64+
declaration: pri.sourceConfig.type !== 'project',
65+
emitDecoratorMetadata: true,
66+
preserveConstEnums: true,
6467
paths: {
6568
[`${PRI_PACKAGE_NAME}/*`]: [PRI_PACKAGE_NAME, path.join(tempTypesPath.dir, '*')],
6669
'src/*': ['src/*'],

0 commit comments

Comments
 (0)