Skip to content

Commit

Permalink
Turn on declarationMap and include source files to the package
Browse files Browse the repository at this point in the history
By excluding tests storybook etc. related files
  • Loading branch information
mendrew committed Sep 5, 2023
1 parent f40d1a9 commit 57ecd12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/vkui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"./dist"
"./dist",
"./src",
"!./src/**/*.png",
"!./src/**/*.*.ts",
"!./src/**/*.*.tsx",
"!./src/vkui.js",
"!./src/testing/",
"!./src/storybook/"
],
"sideEffects": [
"./dist/lib/polyfills.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/vkui/tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "dist"
"outDir": "dist",
"declarationMap": true
},
"include": ["src/**/*.ts*"],
"exclude": [
Expand Down

0 comments on commit 57ecd12

Please sign in to comment.