Skip to content

Commit

Permalink
build: 📦 解决组件库类型编译无法索引问题
Browse files Browse the repository at this point in the history
  • Loading branch information
G committed Jan 10, 2024
1 parent 9733845 commit b261f65
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions internal/vite-config/src/plugins/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ async function createAppConfigPlugin({
};
}
const { version = "" } = await readPackageJSON(resolve(root, "package.json"));
const configEnv = getEnvConfig();

return {
name: PLUGIN_NAME,
async configResolved(_config) {
Expand Down
1 change: 1 addition & 0 deletions packages/gbeata/.fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineConfig({
ignores: [
'src/**/*.md', // 避免打包demo文件到npm包里面
],
sourcemap: true,
output: 'lib',
},
// 打包的时候自动引入antd的样式链接
Expand Down
2 changes: 1 addition & 1 deletion packages/gbeata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"main": "lib/index.js",
"module": "es/index.js",
"types": "dist/esm/index.d.ts",
"types": "dist/index.d.ts",
"typings": "lib/index.d.ts",
"files": [
"dist",
Expand Down
1 change: 0 additions & 1 deletion packages/gbeata/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import GTable, {
} from './GTable';

import { default as GTagGroup } from './GTagGroup';
export type * from './index.d';
export {
GAction,
GButton,
Expand Down
1 change: 0 additions & 1 deletion packages/gbeata/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"lib": ["ESNext", "DOM"],
"rootDirs": ["src", "docs"],
"strict": true,
"declaration": true,
"skipLibCheck": true,
"esModuleInterop": true,
"jsx": "react",
Expand Down

0 comments on commit b261f65

Please sign in to comment.