@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.
- package/code-scanner.js +4 -4
- 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
|
|
76
|
-
const
|
|
77
|
-
const
|
|
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(
|
|
130
|
+
const result = await calculateAdoptionRate(branchName,kitJsonPath, miniappJsonPath, reactNativeJsonPath, fsJsonPath);
|
|
131
131
|
sendMessage(result)
|
|
132
132
|
console.log(result)
|
|
133
133
|
} catch (error) {
|