@momo-kits/stepper 0.92.14-beta.0 → 0.92.14-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.
package/StepperButton.tsx CHANGED
@@ -10,7 +10,6 @@ const StepperButton: FC<StepperButtonProps> = ({
10
10
  size = 'large',
11
11
  onPress,
12
12
  }) => {
13
- const ICON_SIZE = 12;
14
13
  const {theme} = useContext(ApplicationContext);
15
14
 
16
15
  const sizeStyle = size === 'large' ? styles.button : styles.smallButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/stepper",
3
- "version": "0.92.14-beta.0",
3
+ "version": "0.92.14-beta.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
@@ -14,4 +14,4 @@
14
14
  "@momo-platform/versions": "4.1.11"
15
15
  },
16
16
  "license": "MoMo"
17
- }
17
+ }
package/publish.sh CHANGED
@@ -6,16 +6,23 @@ mkdir dist
6
6
  rsync -r --exclude=/dist ./* dist
7
7
  cd dist
8
8
 
9
- if [ "$1" == "beta" ]; then # Publish beta
10
- npm version $(npm view @momo-kits/stepper@beta version)
11
- npm version prepatch --preid=beta
12
- npm publish --tag beta --access=public
13
- else # Publish latest
14
- npm version $(npm view @momo-kits/stepper version)
9
+ if [ "$1" == "stable" ]; then
10
+ #npm version $(npm view @momo-kits/stepper@stable version)
15
11
  npm version patch
12
+ npm publish --tag stable --access=public
13
+ elif [ "$1" == "latest" ]; then
14
+ #npm version $(npm view @momo-kits/stepper@latest version)
15
+ #npm version prerelease --preid=rc
16
16
  npm publish --tag latest --access=public
17
+ else
18
+ #npm version $(npm view @momo-kits/stepper@beta version)
19
+ #npm version prerelease --preid=beta
20
+ npm publish --tag beta --access=public
17
21
  fi
18
22
 
23
+ PACKAGE_NAME=$(npm pkg get name)
24
+ NEW_PACKAGE_VERSION=$(npm pkg get version)
25
+
19
26
  # Clean up
20
27
  cd ..
21
28
  rm -rf dist
package/types.ts CHANGED
@@ -25,7 +25,6 @@ export type StepperButtonProps = {
25
25
  * A callback function that is triggered when the button is pressed.
26
26
  */
27
27
  onPress: () => void;
28
-
29
28
  };
30
29
 
31
30
  /**