Skip to content

Commit 2c9fbf9

Browse files
author
Gianmarco Manni
committed
add export for definition file
1 parent 83c444d commit 2c9fbf9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@
3030
"dist"
3131
],
3232
"scripts": {
33-
"build": "rollup -c",
33+
"build": "yarn copy-definitionfile && rollup -c",
3434
"build-storybook": "build-storybook",
3535
"lint": "eslint \"**/*.{ts,tsx}\" --cache --max-warnings 0",
3636
"prepack": "yarn build",
3737
"prepare-pr": "yarn prettier . --write && yarn lint && yarn build && yarn test\"",
3838
"prettier-check": "prettier --check .",
3939
"prettier-write": "prettier --write .",
40-
"start": "rollup -c -w",
40+
"copy-definitionfile":"shx cp -r src/react-table.d.ts dist/react-table.d.ts",
41+
"start": "yarn copy-definitionfile && rollup -c -w",
4142
"start-all": "concurrently \"yarn start\" \"yarn start-yalc\"",
4243
"start-yalc": "yarn nodemon --watch dist -x \"yarn yalc push\"",
4344
"storybook": "start-storybook -p 6006",

0 commit comments

Comments
 (0)