Skip to content

Commit 07d09e7

Browse files
committed
Generate types into types folder, rm doesnt throw if no directory
1 parent 829a681 commit 07d09e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test": "echo \"Error: no test specified\" && exit 1",
2121
"storybook": "storybook dev -p 6006 --no-open",
2222
"build-storybook": "storybook build",
23-
"prepare": "rm -r types && tsc"
23+
"prepare": "rm -r types 2> /dev/null || true && tsc"
2424
},
2525
"repository": {
2626
"type": "git",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"sourceMap": true,
1717
"outDir": "dist",
1818
"moduleResolution": "node",
19-
"allowSyntheticDefaultImports": true
20-
// "emitDeclarationOnly": true
19+
"allowSyntheticDefaultImports": true,
20+
"emitDeclarationOnly": true
2121
},
2222
"exclude": [
2323
"node_modules",

0 commit comments

Comments
 (0)