@momo-kits/foundation 0.92.9-beta.0 → 0.92.9-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.92.9-beta.0",
3
+ "version": "0.92.9-beta.2",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},
package/publish.sh CHANGED
@@ -6,16 +6,21 @@ mkdir dist
6
6
  rsync -r --exclude=/dist ./* dist
7
7
  cd dist
8
8
 
9
- PACKAGE_NAME=$(npm pkg get name)
10
- if [ "$1" == "beta" ]; then # Publish beta
11
- npm version $(npm view "$PACKAGE_NAME@beta" version)
12
- npm version prepatch --preid=beta
13
- npm publish --tag beta --access=public
14
- else # Publish latest
15
- npm version $(npm view $PACKAGE_NAME version)
9
+ if [ "$1" == "stable" ]; then
10
+ npm version $(npm view @momo-kits/foundation@stable version)
16
11
  npm version patch
12
+ npm publish --tag stable --access=public
13
+ elif [ "$1" == "latest" ]; then
14
+ npm version $(npm view @momo-kits/foundation@latest version)
15
+ npm version prerelease --preid=rc
17
16
  npm publish --tag latest --access=public
17
+ else
18
+ npm version $(npm view @momo-kits/foundation@beta version)
19
+ npm version prerelease --preid=beta
20
+ npm publish --tag beta --access=public
18
21
  fi
22
+
23
+ PACKAGE_NAME=$(npm pkg get name)
19
24
  NEW_PACKAGE_VERSION=$(npm pkg get version)
20
25
 
21
26
  # Clean up
package/tsconfig.json CHANGED
@@ -19,6 +19,6 @@
19
19
  "resolveJsonModule": true,
20
20
  "skipLibCheck": true,
21
21
  "strict": true,
22
- "target": "esnext",
22
+ "target": "esnext"
23
23
  }
24
24
  }