sdc-build-wp 4.5.0 → 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.
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) {
@@ -16,6 +16,7 @@ export default class ServerComponent extends BaseComponent {
16
16
  start() {
17
17
  let watchedFiles = [
18
18
  `${this.project.path}/${this.project.paths.dist}/**/*`,
19
+ `!**/*.map`,
19
20
  `${this.project.path}/**/*.html`,
20
21
  `${this.project.path}/**/*.json`,
21
22
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdc-build-wp",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Custom WordPress build process.",
5
5
  "engines": {
6
6
  "node": ">=22"