react-native-bundle-discovery 1.3.0-rc.1 → 1.3.0-rc.2

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/bin.js CHANGED
@@ -75,14 +75,13 @@ if (command === "build") {
75
75
  }
76
76
 
77
77
  const { buildHtmlPage } = require("./build.js");
78
- buildHtmlPage(
78
+ return buildHtmlPage(
79
79
  file,
80
80
  argv.output,
81
81
  argv.clean,
82
82
  argv["single-file"],
83
83
  Boolean(argv.verbose),
84
84
  );
85
- process.exit(0);
86
85
  }
87
86
 
88
87
  fail(`Unknown command: ${command}`);
package/lib/build.js CHANGED
@@ -99,7 +99,7 @@ function buildHtmlPage(filePath, output, clean, singleFile, verbose) {
99
99
  config: configFile,
100
100
  configFile: configFile,
101
101
  };
102
- build(_options, _config, configFile).then((result) => {
102
+ return build(_options, _config, configFile).then((result) => {
103
103
  console.log(`========================================`);
104
104
  console.log(
105
105
  `✅ HTML page built successfully at: ${chalk.green(
package/lib/server.js CHANGED
@@ -67,13 +67,11 @@ function serve(filePath, port, verbose) {
67
67
  configFile,
68
68
  }).then((server) =>
69
69
  server.listen(PORT, () => {
70
- console.log(`========================================`);
71
70
  console.log(
72
- `🚀 Server listen on ${chalk.green.underline(
71
+ `[react-native-bundle-discovery]: 🚀 Server listen on ${chalk.green.underline(
73
72
  chalk.green(`http://localhost:${PORT}`),
74
73
  )}`,
75
74
  );
76
- console.log(`========================================`);
77
75
  }),
78
76
  ),
79
77
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-bundle-discovery",
3
- "version": "1.3.0-rc.1",
3
+ "version": "1.3.0-rc.2",
4
4
  "main": "index.js",
5
5
  "bin": "lib/bin.js",
6
6
  "repository": "git@github.com:retyui/react-native-bundle-discovery.git",