@momo-kits/badge 0.125.4-rc.7 → 0.150.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +18 -19
  2. package/publish.sh +3 -10
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
- "name": "@momo-kits/badge",
3
- "version": "0.125.4-rc.7",
4
- "private": false,
5
- "main": "index.tsx",
6
- "peerDependencies": {
7
- "@momo-kits/foundation": "latest",
8
- "react": "16.9.0",
9
- "react-native": ">=0.55",
10
- "prop-types": "^15.7.2"
11
- },
12
- "devDependencies": {
13
- "@momo-platform/versions": "4.1.11"
14
- },
15
- "license": "MoMo",
16
- "publishConfig": {
17
- "registry": "https://registry.npmjs.org/"
18
- },
19
- "dependencies": {}
20
- }
2
+ "name": "@momo-kits/badge",
3
+ "version": "0.150.1-beta.2",
4
+ "private": false,
5
+ "main": "index.tsx",
6
+ "peerDependencies": {
7
+ "@momo-kits/foundation": "latest",
8
+ "react": "*",
9
+ "react-native": "*"
10
+ },
11
+ "devDependencies": {
12
+ "@momo-platform/versions": "4.1.11"
13
+ },
14
+ "license": "MoMo",
15
+ "publishConfig": {
16
+ "registry": "https://registry.npmjs.org/"
17
+ },
18
+ "dependencies": {}
19
+ }
package/publish.sh CHANGED
@@ -1,11 +1,5 @@
1
1
  #!/bin/bash
2
2
 
3
- # Prepare dist files
4
- rm -rf dist
5
- mkdir dist
6
- rsync -r --exclude=/dist ./* dist
7
- cd dist
8
-
9
3
 
10
4
  if [ "$1" == "stable" ]; then
11
5
  npm version $(npm view @momo-kits/foundation@stable version)
@@ -14,15 +8,14 @@ if [ "$1" == "stable" ]; then
14
8
  elif [ "$1" == "latest" ]; then
15
9
  npm version $(npm view @momo-kits/foundation@latest version)
16
10
  npm publish --tag latest --access=public
17
- else
11
+ elif [ "$1" == "beta" ]; then
18
12
  npm version $(npm view @momo-kits/badge@beta version)
19
13
  npm version prerelease --preid=beta
20
14
  npm publish --tag beta --access=public
15
+ else
16
+ npm publish --tag alpha --access=public
21
17
  fi
22
18
 
23
19
  PACKAGE_NAME=$(npm pkg get name)
24
20
  NEW_PACKAGE_VERSION=$(npm pkg get version)
25
21
 
26
- # Clean up
27
- cd ..
28
- rm -rf dist