@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.95",
3
+ "version": "0.3.96",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",