@webtypen/webframez-core 0.3.95 → 0.3.96
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/BuildCompiler.js +2 -1
- package/package.json +1 -1
package/dist/BuildCompiler.js
CHANGED
|
@@ -29,8 +29,9 @@ function compile({ projectRoot, tsconfig, outDir, buildRoot, root, stagingDir })
|
|
|
29
29
|
throw new Error("Build compilation requires emitted output; remove noEmit from the build configuration.");
|
|
30
30
|
// Resolve the original project before redirecting output. Otherwise allowJs
|
|
31
31
|
// projects accidentally compile their previous build into build/build/.
|
|
32
|
-
const generated = [outDir, buildRoot, root, parsed.options.outDir].filter(Boolean);
|
|
33
32
|
const inside = (parent, file) => file === parent || file.startsWith(parent + node_path_1.default.sep);
|
|
33
|
+
// Compact runners may place the source checkout inside the shared cache root.
|
|
34
|
+
const generated = [outDir, buildRoot, inside(root, projectRoot) ? cache : root, parsed.options.outDir].filter(Boolean);
|
|
34
35
|
const files = parsed.fileNames.filter((file) => !generated.some(directory => inside(directory, file)));
|
|
35
36
|
const key = node_crypto_1.default.createHash("sha256").update(JSON.stringify([files, parsed.options, ts.version])).digest("hex");
|
|
36
37
|
const previous = yield promises_1.default.readFile(node_path_1.default.join(cache, "key"), "utf8").catch(() => "");
|
package/package.json
CHANGED