1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 03:24:20 +00:00

📦 Configure typescript to output declarations

This commit is contained in:
Steffo 2021-08-28 11:38:59 +02:00
parent db5e362664
commit 54dcb31c4e
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 13 additions and 4 deletions

View file

@ -75,11 +75,12 @@
"babel-loader": "8.1.0"
},
"files": [
"dist/bluelib-react.js"
"dist/**/*"
],
"main": "dist/bluelib-react.js",
"types": "dist/index.d.ts",
"scripts": {
"package:build": "webpack",
"package:build": "rollup -c",
"storybook:start": "start-storybook -p 30060 -s public",
"storybook:build": "build-storybook -s public",
"storybook:deploy": "storybook-to-ghpages"

View file

@ -25,7 +25,9 @@ export default {
postcss({
modules: true,
}),
typescript(),
typescript({
tsconfig: "./tsconfig.json",
}),
babel({
babelHelpers: "runtime",
presets: ["@babel/preset-env", "@babel/preset-react"],

View file

@ -19,9 +19,15 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"sourceMap": true
"sourceMap": true,
"outDir": "dist",
"declaration": true,
"declarationDir": "."
},
"include": [
"src"
],
"exclude": [
"dist"
]
}