@jsenv/cli 0.0.1 → 0.0.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/package.json +1 -1
- package/src/command_dev.mjs +1 -1
- package/src/command_preview.mjs +2 -2
package/package.json
CHANGED
package/src/command_dev.mjs
CHANGED
package/src/command_preview.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export const runPreviewCommand = async (dist) => {
|
|
|
4
4
|
const cwdUrl = new URL(`${process.cwd()}/`, import.meta.url);
|
|
5
5
|
const packagesRequired = ["@jsenv/core", "open"];
|
|
6
6
|
await installPackagesIfMissing(packagesRequired, cwdUrl);
|
|
7
|
-
const [{ startBuildServer },
|
|
7
|
+
const [{ startBuildServer }, openModule] = await Promise.all([
|
|
8
8
|
import("@jsenv/core"),
|
|
9
9
|
import("open"),
|
|
10
10
|
]);
|
|
@@ -18,5 +18,5 @@ export const runPreviewCommand = async (dist) => {
|
|
|
18
18
|
buildDirectoryUrl,
|
|
19
19
|
port: 4567,
|
|
20
20
|
});
|
|
21
|
-
|
|
21
|
+
openModule.default(`${buildServer.origin}`);
|
|
22
22
|
};
|