@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 +1 -1
- package/src/command_build.mjs +4 -4
- package/src/command_dev.mjs +1 -1
- package/src/command_preview.mjs +2 -2
package/package.json
CHANGED
package/src/command_build.mjs
CHANGED
|
@@ -88,7 +88,7 @@ const getBuildParamsToBuildForBrowser = ({ cwdUrl, src, dist }) => {
|
|
|
88
88
|
sourceDirectoryUrl,
|
|
89
89
|
buildDirectoryUrl,
|
|
90
90
|
entryPoints: {
|
|
91
|
-
"./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": "
|
|
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}`]:
|
|
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": "
|
|
165
|
+
"./main.js": "main.js",
|
|
166
166
|
},
|
|
167
167
|
runtimeCompat: {
|
|
168
168
|
node: process.version.slice(1),
|
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
|
};
|