@jsenv/cli 0.0.1 → 0.0.3

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.3",
4
4
  "description": "Command Line Interface for jsenv",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -88,7 +88,7 @@ const getBuildParamsToBuildForBrowser = ({ cwdUrl, src, dist }) => {
88
88
  sourceDirectoryUrl,
89
89
  buildDirectoryUrl,
90
90
  entryPoints: {
91
- "./index.html": "./index.html",
91
+ "./index.html": "index.html",
92
92
  },
93
93
  bundling: {
94
94
  js_module: {
@@ -104,7 +104,7 @@ const getBuildParamsToBuildForBrowser = ({ cwdUrl, src, dist }) => {
104
104
  sourceDirectoryUrl,
105
105
  buildDirectoryUrl,
106
106
  entryPoints: {
107
- "./index.html": "./index.html",
107
+ "./index.html": "index.html",
108
108
  },
109
109
  bundling: {
110
110
  js_module: {
@@ -146,7 +146,7 @@ const getBuildParamsToBuildForNode = (
146
146
  sourceDirectoryUrl,
147
147
  buildDirectoryUrl,
148
148
  entryPoints: {
149
- [`./${mainFileRelativeUrl}`]: `./${mainFileRelativeUrl}`,
149
+ [`./${mainFileRelativeUrl}`]: mainFileRelativeUrl,
150
150
  },
151
151
  runtimeCompat: {
152
152
  node: process.version.slice(1),
@@ -162,7 +162,7 @@ const getBuildParamsToBuildForNode = (
162
162
  sourceDirectoryUrl,
163
163
  buildDirectoryUrl,
164
164
  entryPoints: {
165
- "./main.js": "./main.js",
165
+ "./main.js": "main.js",
166
166
  },
167
167
  runtimeCompat: {
168
168
  node: process.version.slice(1),
@@ -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
  };