sdc-build-wp 4.5.1 → 4.5.2

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/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -45,9 +45,11 @@ project.builds = argv.builds ? (Array.isArray(argv.builds) ? argv.builds : argv.
45
45
 
46
46
  let initialBuildTimerStart = Date.now();
47
47
  log('info', `Started initial build [${project.builds.join(', ')}]`);
48
+ let promisesBuilds = [];
48
49
  for (let build of project.builds) {
49
- await project.components[build].init();
50
+ promisesBuilds.push(project.components[build].init());
50
51
  }
52
+ await Promise.all(promisesBuilds);
51
53
  log('info', `Finished initial build in ${Math.round((Date.now() - initialBuildTimerStart) / 1000)} seconds`);
52
54
 
53
55
  if (argv.watch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdc-build-wp",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
4
4
  "description": "Custom WordPress build process.",
5
5
  "engines": {
6
6
  "node": ">=22"