@jsenv/core 27.0.0 → 27.0.1
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/dist/main.js +3 -1
- package/package.json +2 -2
- package/src/build/start_build_server.js +3 -1
package/dist/main.js
CHANGED
|
@@ -29162,7 +29162,9 @@ const startBuildServer = async ({
|
|
|
29162
29162
|
throw new TypeError(`buildIndexPath must be a string, got ${buildIndexPath}`);
|
|
29163
29163
|
}
|
|
29164
29164
|
|
|
29165
|
-
if (buildIndexPath[0]
|
|
29165
|
+
if (buildIndexPath[0] === "/") {
|
|
29166
|
+
buildIndexPath = buildIndexPath.slice(1);
|
|
29167
|
+
} else {
|
|
29166
29168
|
const buildIndexUrl = new URL(buildIndexPath, buildDirectoryUrl).href;
|
|
29167
29169
|
|
|
29168
29170
|
if (!buildIndexUrl.startsWith(buildDirectoryUrl)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.1",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@jsenv/eslint-config": "16.0.9",
|
|
102
102
|
"@jsenv/file-size-impact": "13.0.1",
|
|
103
103
|
"@jsenv/https-local": "2.1.0",
|
|
104
|
-
"@jsenv/package-workspace": "0.4.
|
|
104
|
+
"@jsenv/package-workspace": "0.4.1",
|
|
105
105
|
"@jsenv/performance-impact": "3.0.1",
|
|
106
106
|
"eslint": "8.19.0",
|
|
107
107
|
"eslint-plugin-html": "6.2.0",
|
|
@@ -69,7 +69,9 @@ export const startBuildServer = async ({
|
|
|
69
69
|
`buildIndexPath must be a string, got ${buildIndexPath}`,
|
|
70
70
|
)
|
|
71
71
|
}
|
|
72
|
-
if (buildIndexPath[0]
|
|
72
|
+
if (buildIndexPath[0] === "/") {
|
|
73
|
+
buildIndexPath = buildIndexPath.slice(1)
|
|
74
|
+
} else {
|
|
73
75
|
const buildIndexUrl = new URL(buildIndexPath, buildDirectoryUrl).href
|
|
74
76
|
if (!buildIndexUrl.startsWith(buildDirectoryUrl)) {
|
|
75
77
|
throw new Error(
|