@bigcommerce/stencil-cli 9.0.2 → 9.0.3
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/lib/archiveManager.js +4 -0
- package/package.json +1 -1
package/lib/archiveManager.js
CHANGED
|
@@ -44,6 +44,10 @@ async function extractZipFiles({ zipPath, fileToExtract, exclude = [], outputNam
|
|
|
44
44
|
resolve();
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
+
// Windows: yield a tick so the previous entry's read stream (zlib
|
|
48
|
+
// inflate + fd) fully tears down before requesting the next one,
|
|
49
|
+
// otherwise readEntry() can stall (observed on windows-latest/Node 24 CI).
|
|
50
|
+
await new Promise(setImmediate);
|
|
47
51
|
zipFile.readEntry();
|
|
48
52
|
} catch (err) {
|
|
49
53
|
reject(err);
|