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

Fix #55: missing TypeScript declarations in packaged output #111

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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