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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -3
  2. 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-ed1776f";
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 helpers.exec(`node --experimental-sea-config ${seaConfigFileName}`);
374
- await helpers.exec(`node -e "require('fs').copyFileSync(process.execPath, '${executableFileName}')"`);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickbundle",
3
- "version": "0.0.0-next-ed1776f",
3
+ "version": "0.0.0-next-4ad7f8b",
4
4
  "description": "The zero-configuration transpiler and bundler for the web",
5
5
  "author": {
6
6
  "name": "Ayoub Adib",