Skip to content

Commit

Permalink
🔨 [#34] -- control what gets built into the package
Browse files Browse the repository at this point in the history
* Do not ship storybook stories modules
* Do not ship tests/** modules
  • Loading branch information
sergei-maertens committed May 11, 2023
1 parent dc05f59 commit ed0a712
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"./esm/": "./dist/esm/"
},
"scripts": {
"build:esm": "tsc && tsc-alias",
"build:cjs": "tsc --module commonjs --outDir dist/cjs && tsc-alias --outDir dist/cjs",
"build:esm": "tsc -p tsconfig.prod.json && tsc-alias -p tsconfig.prod.json",
"build:cjs": "tsc -p tsconfig.prod.json --module commonjs --outDir dist/cjs && tsc-alias -p tsconfig.prod.json --outDir dist/cjs",
"build:storybook": "build-storybook --webpack-stats-json",
"build": "npm-run-all build:*",
"test": "run-s test:lint",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig",
"exclude": ["node_modules", "dist", "**/*.stories.*", "src/tests", "src/fixtures"]
}

0 comments on commit ed0a712

Please sign in to comment.