Skip to content

Commit 24d1f03

Browse files
committed
fix(ts-lib-tools): 修复打包时包含了 jest 的 __snapshots__ 目录的缺陷
1 parent d518ae0 commit 24d1f03

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 变更说明
22

3+
## v0.14.3 - 2021.8.19
4+
5+
- fix(ts-lib-tools): 修复打包时包含了 jest 的 `__snapshots__` 目录的缺陷
6+
37
## v0.14.2 - 2021.8.19
48

59
- fix(ts-lib-tools): 修复打包时包含了 jest 的 `__snapshots__` 目录的缺陷

packages/ts-lib-tools/src/simple-build/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,13 @@ async function buildCommonjs() {
145145
*/
146146
async function copyFiles() {
147147
const files = await globby(
148-
['**/*', '!**/*.ts', '!**/*.tsx', '!**/__tests__/**'],
148+
[
149+
'**/*',
150+
'!**/*.ts',
151+
'!**/*.tsx',
152+
'!**/__tests__/**',
153+
'!**/__snapshots__/**',
154+
],
149155
{
150156
cwd: SRC_ROOT,
151157
},

0 commit comments

Comments
 (0)