Skip to content

Commit 155e48a

Browse files
committed
Add script for building types
1 parent c219e53 commit 155e48a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/ant-component-mapper/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
"description": "Component mapper for Ant Design component mapper form data-driven-forms.",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
7+
"typings": "dist/cjs/index.d.ts",
78
"license": "Apache-2.0",
89
"scripts": {
910
"start": "webpack-dev-server --env dev --config ./config/webpack.config.js --open --hot",
10-
"build": "yarn build:cjs && yarn build:esm && yarn build:umd",
11+
"build": "yarn build:cjs && yarn build:esm && yarn build:umd && yarn build:typings",
1112
"build:cjs": "BABEL_ENV=cjs rollup -c ./rollup.config.js --format=cjs --environment FORMAT:cjs",
1213
"build:esm": "BABEL_ENV=esm rollup -c ./rollup.config.js --format=esm --environment FORMAT:esm",
1314
"build:umd": "rollup -c ./rollup.config.js --format=umd --environment FORMAT:umd",
1415
"vendor": "webpack --env vendor --config ./config/webpack.config.js",
15-
"release": "semantic-release"
16+
"release": "semantic-release",
17+
"build:typings": "node ../../scripts/copy-files.js"
1618
},
1719
"files": [
1820
"dist/"

0 commit comments

Comments
 (0)