Skip to content

Commit

Permalink
fix(release): do not publish types from storybook (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjopa committed Jul 11, 2021
1 parent 76a3b9f commit 6534d59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"format": "prettier --write .",
"lint": "eslint .",
"postinstall": "husky install",
"prepack": "rimraf dist && npm run build && npx tsc --emitDeclarationOnly --outDir dist/types",
"prepack": "rimraf dist && npm run build && npm run type-declarations",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"test": "jest --env=jsdom",
Expand All @@ -30,6 +30,7 @@
"deploy-storybook": "storybook-to-ghpages",
"release": "node ./scripts/publish",
"typecheck": "tsc --noEmit",
"type-declarations": "tsc --emitDeclarationOnly --outDir dist/types --project tsconfig.declarations.json",
"validate": "npm run typecheck && npm run build && npm run lint && npm test -- --coverage"
},
"files": [
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.declarations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"exclude": ["src/stories"]
}

0 comments on commit 6534d59

Please sign in to comment.