Skip to content

Commit 3d8e64f

Browse files
committed
feat(pf4): generate types in build
1 parent f692a80 commit 3d8e64f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/pf4-component-mapper/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
"description": "Starter pf4-component-mapper for data-driven-forms.",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
7+
"typings": "dist/cjs/index.d.ts",
78
"files": [
89
"dist/"
910
],
1011
"license": "Apache-2.0",
1112
"scripts": {
1213
"start": "webpack-dev-server --env dev --config ./config/webpack.config.js --open --hot",
13-
"build": "yarn build:cjs && yarn build:esm && yarn build:umd",
14+
"build": "yarn build:cjs && yarn build:esm && yarn build:umd && yarn build:typings",
1415
"build:cjs": "BABEL_ENV=cjs rollup -c ./rollup.config.js --format=cjs --environment FORMAT:cjs",
1516
"build:esm": "BABEL_ENV=esm rollup -c ./rollup.config.js --format=esm --environment FORMAT:esm",
1617
"build:umd": "rollup -c ./rollup.config.js --format=umd --environment FORMAT:umd",
18+
"build:typings": "node ../../scripts/copy-files.js",
1719
"release": "semantic-release"
1820
},
1921
"repository": "[email protected]:data-driven-forms/react-forms.git",

0 commit comments

Comments
 (0)