react-native-bundle-discovery-ui 2.2.0-rc.3 → 2.3.0
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/lib/isRsdoctorReport.js +5 -4
- package/lib/rsdoctor.js +1 -1
- package/package.json +1 -1
package/lib/isRsdoctorReport.js
CHANGED
|
@@ -9,15 +9,16 @@ const isRsdoctorReportPath = (reportPath) => {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
const isRsdoctorReport = (reportJson, reportPath) => {
|
|
12
|
+
const isRsdoctorReport = (reportJson, reportPath, noLogs) => {
|
|
13
13
|
try {
|
|
14
14
|
if (
|
|
15
15
|
Array.isArray(reportJson?.data?.moduleGraph?.modules) ||
|
|
16
16
|
Array.isArray(reportJson?.data?.packageGraph?.packages)
|
|
17
17
|
) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
!noLogs &&
|
|
19
|
+
console.info(
|
|
20
|
+
`Detected ${chalk.red("rsdoctor")} format in the input file: ${chalk.green(reportPath)}`,
|
|
21
|
+
);
|
|
21
22
|
return true;
|
|
22
23
|
}
|
|
23
24
|
return false;
|
package/lib/rsdoctor.js
CHANGED
|
@@ -29,7 +29,7 @@ const doStructureCheck = (rsdoctorData) => {
|
|
|
29
29
|
|
|
30
30
|
if (!(firstConfig.name === "rspack" || firstConfig.name === "webpack")) {
|
|
31
31
|
throw new Error(
|
|
32
|
-
`Unsupported bundler: ${firstConfig.name}@${firstConfig.version}. Only 'rspack'
|
|
32
|
+
`Unsupported bundler: ${firstConfig.name}@${firstConfig.version}. Only 'rspack' and 'webpack' are supported.`,
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
35
|
};
|