Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Fix missing TypeScript declarations in packaged output
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Jul 16, 2020
1 parent e6fdba8 commit e3de1f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/standalone/
/build
/storybook-static
/types

# IDE
.vscode/
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
"license": "MIT",
"main": "commonjs/index.js",
"module": "esm/index.js",
"types": "types/src/index.d.ts",
"sideEffects": false,
"files": [
"commonjs",
"esm",
"standalone"
"standalone",
"types"
],
"scripts": {
"test": "jest src/__tests__",
Expand All @@ -27,7 +29,7 @@
"build-esm": "tsc --module es2015 --outDir esm --inlineSourceMap",
"build-standalone": "webpack",
"build": "concurrently --names 'commonjs,esm,standalone' 'yarn run build-commonjs' 'yarn run build-esm' 'yarn run build-standalone'",
"clean": "rm -rf commonjs esm standalone storybook-static",
"clean": "rm -rf commonjs esm standalone storybook-static types",
"deploy-storybook": "storybook-to-ghpages",
"standalone-hash": "shasum -b -a 256 standalone/consent-manager.js | xxd -r -p | base64",
"build-storybook": "yarn build-standalone && build-storybook && cp -r ./standalone ./storybook-static/standalone",
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true
"esModuleInterop": true,
"declaration": true,
"declarationDir": "types"
},
"include": ["src"],
"exclude": ["node_modules", "build"]
Expand Down

0 comments on commit e3de1f8

Please sign in to comment.