quickbundle 0.0.0-next-ed1776f → 0.0.0-next-4ad7f8b
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/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import os from 'node:os';
|
|
|
15
15
|
import { gzipSize } from 'gzip-size';
|
|
16
16
|
|
|
17
17
|
var name = "quickbundle";
|
|
18
|
-
var version = "0.0.0-next-
|
|
18
|
+
var version = "0.0.0-next-4ad7f8b";
|
|
19
19
|
|
|
20
20
|
const CWD = process.cwd();
|
|
21
21
|
|
|
@@ -356,6 +356,7 @@ const createCompileCommand = (program)=>{
|
|
|
356
356
|
return `Compile ${binaries}`;
|
|
357
357
|
},
|
|
358
358
|
async handler ({ config, osType }) {
|
|
359
|
+
// TODO: Optimize via Promise.allSettled + Update README.md
|
|
359
360
|
for (const { bin, require: filePath } of config.metadata){
|
|
360
361
|
if (!filePath || !bin) continue;
|
|
361
362
|
chdir(dirname(filePath));
|
|
@@ -370,8 +371,10 @@ const createCompileCommand = (program)=>{
|
|
|
370
371
|
useCodeCache: false,
|
|
371
372
|
useSnapshot: false
|
|
372
373
|
}), "utf-8");
|
|
373
|
-
await
|
|
374
|
-
|
|
374
|
+
await Promise.all([
|
|
375
|
+
`node --experimental-sea-config ${seaConfigFileName}`,
|
|
376
|
+
`node -e "require('fs').copyFileSync(process.execPath, '${executableFileName}')"`
|
|
377
|
+
].map(async (command)=>helpers.exec(command)));
|
|
375
378
|
if (osType === "macos") {
|
|
376
379
|
await helpers.exec(`codesign --remove-signature ${executableFileName}`);
|
|
377
380
|
}
|