Skip to content

Commit

Permalink
chore: 最终产出不应带有测试和 story 相关的 ts 声明文件
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy94813 committed Oct 24, 2023
1 parent 2cf80ad commit a8cc05e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ const getConf = (env, moduleType) => {
declaration: outputDeclaration, // only es format output declaration
declarationDir: path.join(OUTPUT_DIR, 'types'),
},
exclude: [
// exclude test files
'**/__tests__/**',
'**/*.test.*',
'**/*.spec.*',
// exclude stories files
'**/stories/**',
'**/*.stories.*',
'**/storybook-decorators/**',
],
},
}),
filesize(),
Expand Down

0 comments on commit a8cc05e

Please sign in to comment.