@valbuild/server 0.60.13 → 0.60.15
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.
@@ -927,7 +927,11 @@ class ValModuleLoader {
|
|
927
927
|
}
|
928
928
|
const matches = this.findMatchingJsFile(sourceFileName);
|
929
929
|
if (matches.match === false) {
|
930
|
-
|
930
|
+
let debugInfo = "";
|
931
|
+
if (sourceFileName.includes("val.config")) {
|
932
|
+
debugInfo = `\n@valbuild directory scan:\n${this.host.readDirectory("/", ["js", "ts", "json"], [], ["**/@valbuild/*"]).join("\n")}`;
|
933
|
+
}
|
934
|
+
throw Error(`Could not find matching js file for module "${requestedModuleName}" requested by: "${containingFilePath}". Tried:\n${matches.tried.join("\n")}${debugInfo}`);
|
931
935
|
}
|
932
936
|
const filePath = matches.match;
|
933
937
|
// resolve all symlinks (preconstruct for example symlinks the dist folder)
|
@@ -1003,10 +1007,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
1003
1007
|
export const ValOverlay = () => {
|
1004
1008
|
throw Error("Cannot use 'ValOverlay' in this type of file")
|
1005
1009
|
};
|
1006
|
-
export const VAL_CSS_PATH = "";
|
1007
|
-
export const VAL_APP_PATH = "";
|
1008
|
-
export const VAL_APP_ID = "";
|
1009
|
-
export const
|
1010
|
+
export const VAL_CSS_PATH = "/spa/index.css";
|
1011
|
+
export const VAL_APP_PATH = "/app";
|
1012
|
+
export const VAL_APP_ID = "val-app";
|
1013
|
+
export const VAL_OVERLAY_ID = "val-overlay";
|
1014
|
+
export const IS_DEV = false;
|
1010
1015
|
`
|
1011
1016
|
};
|
1012
1017
|
}
|
@@ -1055,7 +1060,7 @@ export const IS_DEV = false;2
|
|
1055
1060
|
};
|
1056
1061
|
} catch (e) {
|
1057
1062
|
return {
|
1058
|
-
error: Error(`Could not resolve module: '${modulePath}'
|
1063
|
+
error: Error(`Could not resolve module: '${modulePath}'`)
|
1059
1064
|
};
|
1060
1065
|
}
|
1061
1066
|
}, (baseModuleName, requestedName) => {
|
@@ -927,7 +927,11 @@ class ValModuleLoader {
|
|
927
927
|
}
|
928
928
|
const matches = this.findMatchingJsFile(sourceFileName);
|
929
929
|
if (matches.match === false) {
|
930
|
-
|
930
|
+
let debugInfo = "";
|
931
|
+
if (sourceFileName.includes("val.config")) {
|
932
|
+
debugInfo = `\n@valbuild directory scan:\n${this.host.readDirectory("/", ["js", "ts", "json"], [], ["**/@valbuild/*"]).join("\n")}`;
|
933
|
+
}
|
934
|
+
throw Error(`Could not find matching js file for module "${requestedModuleName}" requested by: "${containingFilePath}". Tried:\n${matches.tried.join("\n")}${debugInfo}`);
|
931
935
|
}
|
932
936
|
const filePath = matches.match;
|
933
937
|
// resolve all symlinks (preconstruct for example symlinks the dist folder)
|
@@ -1003,10 +1007,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
1003
1007
|
export const ValOverlay = () => {
|
1004
1008
|
throw Error("Cannot use 'ValOverlay' in this type of file")
|
1005
1009
|
};
|
1006
|
-
export const VAL_CSS_PATH = "";
|
1007
|
-
export const VAL_APP_PATH = "";
|
1008
|
-
export const VAL_APP_ID = "";
|
1009
|
-
export const
|
1010
|
+
export const VAL_CSS_PATH = "/spa/index.css";
|
1011
|
+
export const VAL_APP_PATH = "/app";
|
1012
|
+
export const VAL_APP_ID = "val-app";
|
1013
|
+
export const VAL_OVERLAY_ID = "val-overlay";
|
1014
|
+
export const IS_DEV = false;
|
1010
1015
|
`
|
1011
1016
|
};
|
1012
1017
|
}
|
@@ -1055,7 +1060,7 @@ export const IS_DEV = false;2
|
|
1055
1060
|
};
|
1056
1061
|
} catch (e) {
|
1057
1062
|
return {
|
1058
|
-
error: Error(`Could not resolve module: '${modulePath}'
|
1063
|
+
error: Error(`Could not resolve module: '${modulePath}'`)
|
1059
1064
|
};
|
1060
1065
|
}
|
1061
1066
|
}, (baseModuleName, requestedName) => {
|
@@ -896,7 +896,11 @@ class ValModuleLoader {
|
|
896
896
|
}
|
897
897
|
const matches = this.findMatchingJsFile(sourceFileName);
|
898
898
|
if (matches.match === false) {
|
899
|
-
|
899
|
+
let debugInfo = "";
|
900
|
+
if (sourceFileName.includes("val.config")) {
|
901
|
+
debugInfo = `\n@valbuild directory scan:\n${this.host.readDirectory("/", ["js", "ts", "json"], [], ["**/@valbuild/*"]).join("\n")}`;
|
902
|
+
}
|
903
|
+
throw Error(`Could not find matching js file for module "${requestedModuleName}" requested by: "${containingFilePath}". Tried:\n${matches.tried.join("\n")}${debugInfo}`);
|
900
904
|
}
|
901
905
|
const filePath = matches.match;
|
902
906
|
// resolve all symlinks (preconstruct for example symlinks the dist folder)
|
@@ -972,10 +976,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
972
976
|
export const ValOverlay = () => {
|
973
977
|
throw Error("Cannot use 'ValOverlay' in this type of file")
|
974
978
|
};
|
975
|
-
export const VAL_CSS_PATH = "";
|
976
|
-
export const VAL_APP_PATH = "";
|
977
|
-
export const VAL_APP_ID = "";
|
978
|
-
export const
|
979
|
+
export const VAL_CSS_PATH = "/spa/index.css";
|
980
|
+
export const VAL_APP_PATH = "/app";
|
981
|
+
export const VAL_APP_ID = "val-app";
|
982
|
+
export const VAL_OVERLAY_ID = "val-overlay";
|
983
|
+
export const IS_DEV = false;
|
979
984
|
`
|
980
985
|
};
|
981
986
|
}
|
@@ -1024,7 +1029,7 @@ export const IS_DEV = false;2
|
|
1024
1029
|
};
|
1025
1030
|
} catch (e) {
|
1026
1031
|
return {
|
1027
|
-
error: Error(`Could not resolve module: '${modulePath}'
|
1032
|
+
error: Error(`Could not resolve module: '${modulePath}'`)
|
1028
1033
|
};
|
1029
1034
|
}
|
1030
1035
|
}, (baseModuleName, requestedName) => {
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
"./package.json": "./package.json"
|
13
13
|
},
|
14
14
|
"types": "dist/valbuild-server.cjs.d.ts",
|
15
|
-
"version": "0.60.
|
15
|
+
"version": "0.60.15",
|
16
16
|
"scripts": {
|
17
17
|
"typecheck": "tsc --noEmit",
|
18
18
|
"test": "jest",
|
@@ -24,9 +24,9 @@
|
|
24
24
|
"concurrently": "^7.6.0"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@valbuild/core": "~0.60.
|
28
|
-
"@valbuild/shared": "~0.60.
|
29
|
-
"@valbuild/ui": "~0.60.
|
27
|
+
"@valbuild/core": "~0.60.15",
|
28
|
+
"@valbuild/shared": "~0.60.15",
|
29
|
+
"@valbuild/ui": "~0.60.15",
|
30
30
|
"express": "^4.18.2",
|
31
31
|
"image-size": "^1.0.2",
|
32
32
|
"minimatch": "^3.0.4",
|