@momo-kits/progress-info 0.125.4-rc.6 → 0.150.1-beta.1

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 -12
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
- "name": "@momo-kits/progress-info",
3
- "version": "0.125.4-rc.6",
4
- "private": false,
5
- "main": "index.tsx",
6
- "dependencies": {},
7
- "peerDependencies": {
8
- "@momo-kits/foundation": "latest",
9
- "prop-types": "^15.7.2",
10
- "react": "16.9.0",
11
- "react-native": ">=0.55"
12
- },
13
- "devDependencies": {
14
- "@momo-platform/versions": "4.1.11"
15
- },
16
- "license": "MoMo",
17
- "publishConfig": {
18
- "registry": "https://registry.npmjs.org/"
19
- }
20
- }
2
+ "name": "@momo-kits/progress-info",
3
+ "version": "0.150.1-beta.1",
4
+ "private": false,
5
+ "main": "index.tsx",
6
+ "dependencies": {},
7
+ "peerDependencies": {
8
+ "@momo-kits/foundation": "latest",
9
+ "react": "*",
10
+ "react-native": "*"
11
+ },
12
+ "devDependencies": {
13
+ "@momo-platform/versions": "4.1.11"
14
+ },
15
+ "license": "MoMo",
16
+ "publishConfig": {
17
+ "registry": "https://registry.npmjs.org/"
18
+ }
19
+ }
package/publish.sh CHANGED
@@ -1,12 +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
-
10
3
  if [ "$1" == "stable" ]; then
11
4
  npm version $(npm view @momo-kits/foundation@stable version)
12
5
  npm version patch
@@ -14,15 +7,13 @@ if [ "$1" == "stable" ]; then
14
7
  elif [ "$1" == "latest" ]; then
15
8
  npm version $(npm view @momo-kits/foundation@latest version)
16
9
  npm publish --tag latest --access=public
17
- else
10
+ elif [ "$1" == "beta" ]; then
18
11
  npm version $(npm view @momo-kits/progress-info@beta version)
19
12
  npm version prerelease --preid=beta
20
13
  npm publish --tag beta --access=public
14
+ else
15
+ npm publish --tag alpha --access=public
21
16
  fi
22
17
 
23
18
  PACKAGE_NAME=$(npm pkg get name)
24
19
  NEW_PACKAGE_VERSION=$(npm pkg get version)
25
-
26
- # Clean up
27
- cd ..
28
- rm -rf dist