Skip to content

Commit d282143

Browse files
committed
fix(npm): publish with dist
1 parent b0f2f3d commit d282143

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
"react-native-web"
1616
],
1717
"scripts": {
18-
"dev": "docz dev",
19-
"test": "echo \"jest\"",
2018
"build": "yarn build:es2015 && yarn build:esm && yarn build:cjs",
2119
"build:docs": "docz build",
2220
"build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015",
2321
"build:esm": "tsc --module es2015 --target es5 --outDir dist/esm",
2422
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs",
23+
"clean": "rimraf dist",
24+
"dev": "docz dev",
2525
"fix": "yarn fix:prettier && yarn fix:lint",
2626
"fix:lint": "tslint --project ./tsconfig.json \"./src/**/*.{ts,tsx}\"",
2727
"fix:prettier": "prettier \"./src/**/*.{ts,tsx}\" --write",
28-
"clean": "rimraf dist",
29-
"travis-deploy-once": "travis-deploy-once",
30-
"semantic-release": "semantic-release"
28+
"prepublishOnly": "yarn build",
29+
"semantic-release": "semantic-release",
30+
"test": "echo \"jest\"",
31+
"travis-deploy-once": "travis-deploy-once"
3132
},
3233
"contributors": [
3334
"Vu Hoang Minh (http://github.com/minheq)"

0 commit comments

Comments
 (0)