Skip to content

Commit 3a53162

Browse files
committed
Add publishment script
1 parent 5455538 commit 3a53162

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build/
55
coverage/
66
*.tsbuildinfo
77
yarn-error.log
8+
.eslintcache

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"build": "yarn tsc",
77
"lint": "eslint --ext .js,.ts . --cache --report-unused-disable-directives",
88
"test": "jest",
9-
"test:ci:unit": "jest --ci --coverage"
9+
"test:ci:unit": "jest --ci --coverage",
10+
"publish": "rimraf ./build ./tsconfig.tsbuildinfo && yarn build && yarn publish"
1011
},
1112
"main": "build/index.js",
1213
"files": [
@@ -15,6 +16,9 @@
1516
],
1617
"repository": "https://github.com/Kudo/react-native-cli-plugin-benchmark",
1718
"license": "MIT",
19+
"jest": {
20+
"testEnvironment": "node"
21+
},
1822
"devDependencies": {
1923
"@babel/core": "^7.8.6",
2024
"@babel/preset-env": "^7.8.4",
@@ -39,6 +43,7 @@
3943
"eslint-plugin-prettier": "^3.1.2",
4044
"jest": "^25.1.0",
4145
"prettier": "^1.19.1",
46+
"rimraf": "^3.0.2",
4247
"typescript": "^3.7.5"
4348
},
4449
"peerDependencies": {

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4631,7 +4631,7 @@ [email protected]:
46314631
dependencies:
46324632
glob "^7.1.3"
46334633

4634-
rimraf@^3.0.0:
4634+
rimraf@^3.0.0, rimraf@^3.0.2:
46354635
version "3.0.2"
46364636
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
46374637
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==

0 commit comments

Comments
 (0)