diff --git a/.fatherrc.base.ts b/.fatherrc.base.ts index b3b1f83..3758025 100644 --- a/.fatherrc.base.ts +++ b/.fatherrc.base.ts @@ -4,6 +4,7 @@ export default defineConfig({ // 以下为 esm 配置项启用时的默认值,有自定义需求时才需配置 esm: { input: 'src', // 默认编译目录 + output: 'dist/es', // extraBabelPlugins: [[require.resolve('./scripts/replaceLib'), {}]], platform: 'browser', // 默认构建为 Browser 环境的产物 transformer: 'babel', // 默认使用 babel 以提供更好的兼容性 diff --git a/packages/react-markdown-lowcode-materials/tsconfig.json b/packages/react-markdown-lowcode-materials/tsconfig.json index 0c28282..65e355f 100644 --- a/packages/react-markdown-lowcode-materials/tsconfig.json +++ b/packages/react-markdown-lowcode-materials/tsconfig.json @@ -2,6 +2,7 @@ "buildOnSave": false, "compileOnSave": false, "compilerOptions": { + "declaration": true, "outDir": "build", "module": "esnext", "target": "es6", diff --git a/packages/yunti-ui-lowcode-materials/tsconfig.json b/packages/yunti-ui-lowcode-materials/tsconfig.json index 0c28282..65e355f 100644 --- a/packages/yunti-ui-lowcode-materials/tsconfig.json +++ b/packages/yunti-ui-lowcode-materials/tsconfig.json @@ -2,6 +2,7 @@ "buildOnSave": false, "compileOnSave": false, "compilerOptions": { + "declaration": true, "outDir": "build", "module": "esnext", "target": "es6",