@momo-kits/foundation 0.89.5-beta.10 → 0.89.5-beta.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.
Files changed (2) hide show
  1. package/code-scanner.js +4 -4
  2. package/package.json +1 -1
package/code-scanner.js CHANGED
@@ -72,9 +72,9 @@ const sendMessage = ({
72
72
 
73
73
  const main = async () => {
74
74
  const rootPath = `${__dirname}/../../../`
75
- const branchName = process.argv[2] || "";
76
- const removedHead = branchName.replace("remotes/origin/", "");
77
- const removedTail = removedHead.replace("/master", "");
75
+ const app = path.join(`${__dirname}/../../../`, 'app.json');
76
+ const appJson = require(app)
77
+ const branchName = appJson.appId
78
78
  const scanPath = path.join(rootPath, 'src')
79
79
  const kitJsonPath = path.join(rootPath, './scan/kit.json')
80
80
  const miniappJsonPath = path.join(rootPath, './scan/miniapp.json')
@@ -127,7 +127,7 @@ const main = async () => {
127
127
  await scan(config3);
128
128
  await scan(config4);
129
129
 
130
- const result = await calculateAdoptionRate(removedTail, kitJsonPath, miniappJsonPath, reactNativeJsonPath, fsJsonPath);
130
+ const result = await calculateAdoptionRate(branchName,kitJsonPath, miniappJsonPath, reactNativeJsonPath, fsJsonPath);
131
131
  sendMessage(result)
132
132
  console.log(result)
133
133
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.5-beta.10",
3
+ "version": "0.89.5-beta.11",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {