Skip to content

Commit 51abff7

Browse files
committed
new publish script and commands defined
1 parent f957447 commit 51abff7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "@commt/rn-sdk",
3-
"version": "0.1.2",
3+
"version": "0.1.4",
44
"description": "Ultimate chat plugin for react native applications",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"build": "rm -rf dist/* && npx tsc && cp package*.json Readme.md dist",
10-
"pub": "npm publish ./dist"
10+
"pre-pub": "cd dist && mkdir dist && mv assets context service theme utils dist/",
11+
"pub": "npm publish --access public ./dist"
1112
},
1213
"repository": {
1314
"type": "git",
1415
"url": "git+https://github.com/commt/commt-react-native.git"
1516
},
16-
"files": ["dist"],
17+
"files": ["./"],
1718
"dependencies": {
1819
"dayjs": "^1.11.9",
1920
"axios": "^1.4.0",

0 commit comments

Comments
 (0)