@momo-kits/foundation 0.92.29-optimize.10 → 0.92.29-optimize.11
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/Tag/styles.ts +3 -2
- package/package.json +1 -1
- package/publish.sh +3 -16
package/Tag/styles.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
2
|
import {Radius, Spacing} from '../Consts';
|
|
3
|
+
import {scaleSize} from '../Text';
|
|
3
4
|
|
|
4
5
|
export default StyleSheet.create({
|
|
5
6
|
container: {
|
|
6
7
|
paddingHorizontal: Spacing.S,
|
|
7
8
|
borderRadius: Radius.S,
|
|
8
9
|
flexDirection: 'row',
|
|
9
|
-
height: 24,
|
|
10
|
+
height: scaleSize(24),
|
|
10
11
|
alignItems: 'center',
|
|
11
12
|
justifyContent: 'center',
|
|
12
13
|
},
|
|
13
14
|
mediumContainer: {
|
|
14
15
|
paddingHorizontal: Spacing.S,
|
|
15
16
|
borderRadius: Radius.S,
|
|
16
|
-
height: 18,
|
|
17
|
+
height: scaleSize(18),
|
|
17
18
|
alignItems: 'center',
|
|
18
19
|
flexDirection: 'row',
|
|
19
20
|
justifyContent: 'center',
|
package/package.json
CHANGED
package/publish.sh
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
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
|
if [ "$1" == "stable" ]; then
|
|
10
|
-
|
|
11
|
-
# npm version patch
|
|
4
|
+
|
|
12
5
|
npm publish --tag stable --access=public
|
|
13
6
|
elif [ "$1" == "latest" ]; then
|
|
14
|
-
|
|
15
|
-
# npm version prerelease --preid=rc
|
|
7
|
+
|
|
16
8
|
npm publish --tag latest --access=public
|
|
17
9
|
else
|
|
18
|
-
|
|
19
|
-
# npm version prerelease --preid=beta
|
|
10
|
+
|
|
20
11
|
npm publish --tag beta --access=public
|
|
21
12
|
fi
|
|
22
13
|
|
|
23
14
|
PACKAGE_NAME=$(npm pkg get name)
|
|
24
15
|
NEW_PACKAGE_VERSION=$(npm pkg get version)
|
|
25
|
-
|
|
26
|
-
# Clean up
|
|
27
|
-
cd ..
|
|
28
|
-
rm -rf dist
|