@jami-studio/core 0.92.13 → 0.92.14
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/corpus/core/CHANGELOG.md +6 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/deploy/build.ts +8 -0
- package/corpus/core/src/deploy/workspace-deploy.ts +1458 -1453
- package/dist/deploy/build.js +7 -0
- package/dist/deploy/build.js.map +1 -1
- package/dist/deploy/workspace-deploy.js +207 -202
- package/dist/deploy/workspace-deploy.js.map +1 -1
- package/package.json +1 -1
package/dist/deploy/build.js
CHANGED
|
@@ -3135,6 +3135,13 @@ export default bundle;
|
|
|
3135
3135
|
}
|
|
3136
3136
|
async function main() {
|
|
3137
3137
|
console.log(`[deploy] Building for ${preset}...`);
|
|
3138
|
+
// Sweep stale .deploy-tmp before anything writes into it. A crashed prior
|
|
3139
|
+
// build (any preset) leaves partial artifacts behind; both build paths
|
|
3140
|
+
// mkdirSync over the dir without clearing it, and the stale contents can
|
|
3141
|
+
// silently poison the next build (observed: an interrupted node-preset
|
|
3142
|
+
// build made the following cloudflare_pages build fail with no error
|
|
3143
|
+
// output). Fresh tmp every run is the invariant.
|
|
3144
|
+
fs.rmSync(path.join(cwd, ".deploy-tmp"), { recursive: true, force: true });
|
|
3138
3145
|
switch (preset) {
|
|
3139
3146
|
case "cloudflare_pages":
|
|
3140
3147
|
case "cloudflare-pages":
|