sdc-build-wp 3.0.1 → 3.0.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/lib/blocks.js +2 -2
  2. package/package.json +1 -1
package/lib/blocks.js CHANGED
@@ -10,7 +10,7 @@ function cmd(...command) {
10
10
  shell: true
11
11
  });
12
12
  return new Promise((resolveFunc) => {
13
- // p.stdout.on("data", (x) => {
13
+ // p.stdout.on('data', (x) => {
14
14
  // process.stdout.write(x.toString());
15
15
  // });
16
16
  p.stderr.on('data', (x) => {
@@ -43,7 +43,7 @@ const buildBlock = async (entry) => {
43
43
  return false;
44
44
  }
45
45
  let timerStart = Date.now();
46
- await cmd(`cd ${entry} && ${project.path}/node_modules/@wordpress/scripts/bin/wp-scripts.js`, 'build');
46
+ await cmd(`cd ${entry} && ${project.path}/node_modules/@wordpress/scripts/bin/wp-scripts.js`, 'build', 'src/index');
47
47
  log('success', `Built ${entry.replace(project.path, '')} in ${Date.now() - timerStart}ms`);
48
48
  };
49
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdc-build-wp",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Custom WordPress build process.",
5
5
  "author": {
6
6
  "name": "Robert Sefer",