@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Command Line Interface for jsenv",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@ export const runDevCommand = async (
32
32
  logLevel,
33
33
  });
34
34
  if (open) {
35
- openModule.open(`${devServer.origin}`);
35
+ openModule.default(`${devServer.origin}`);
36
36
  }
37
37
  return devServer;
38
38
  };
@@ -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 }, { default: open }] = await Promise.all([
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
- open(`${buildServer.origin}`);
21
+ openModule.default(`${buildServer.origin}`);
22
22
  };