wp-blank-scripts 3.1.12 → 3.1.13

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/lib/pullSQL.js CHANGED
@@ -28,7 +28,9 @@ module.exports = async (options) => {
28
28
  fs.mkdirSync(destinationDir, { recursive: true });
29
29
  }
30
30
 
31
- const command = `mysqldump --add-drop-table --user='${user}' --password='${password}' ${database}`;
31
+ // 14/10/24 Fixes issue where /*!999999\- enable the sandbox mode */ is added as first line of SQL dump
32
+ const sed = `| sed '/\\/\\*!999999/d'`;
33
+ const command = `mysqldump --add-drop-table --user='${user}' --password='${password}' ${database} ${sed}`;
32
34
 
33
35
  let privateKey;
34
36
  if (options.serverPrivateKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-blank-scripts",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
4
4
  "description": "Personal Wordpress Scripts",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -112,11 +112,15 @@ function makeBaseConfig(options) {
112
112
  { from: 'wp-content', to: 'wp-content' },
113
113
  ];
114
114
 
115
- // @TODO: temporary for development of blocks package
115
+ // ViVO Master Blocks package copy process
116
116
  const includeBlocks = process.env.MASTER_BLOCKS;
117
+ const masterBlocksPath = process.env.MASTER_BLOCKS_DEV
118
+ ? '../../vivo/vivo-master-blocks/dist'
119
+ : 'vendor/vivo-digital/vivo-master-blocks/dist';
120
+
117
121
  const masterBlocks = [
118
122
  {
119
- from: path.join(process.cwd(), 'vendor/vivo-digital/vivo-master-blocks/dist'),
123
+ from: path.join(process.cwd(), masterBlocksPath),
120
124
  to: path.join(themePath, 'inc', 'vivo-master-blocks'),
121
125
  },
122
126
  ];