Skip to content

Commit 0b45cde

Browse files
committed
fix: ignore fictures and mocks when publishing
1 parent 1079d4f commit 0b45cde

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/cli.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ yargs
170170
}
171171

172172
const prepare = 'bob build';
173-
const files = [source, output, '!**/__tests__'];
173+
const files = [
174+
source,
175+
output,
176+
'!**/__tests__',
177+
'!**/__fixtures__',
178+
'!**/__mocks__',
179+
];
174180

175181
for (const key in entries) {
176182
const entry = entries[key];

templates/common/$package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"cpp",
1616
"<%= project.podspec %>.podspec",
1717
"!lib/typescript/example",
18-
"!**/__tests__"
18+
"!**/__tests__",
19+
"!**/__fixtures__",
20+
"!**/__mocks__"
1921
],
2022
"scripts": {
2123
"test": "jest",

0 commit comments

Comments
 (0)