wp-blank-scripts 3.1.9 → 3.1.11

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/cli/pull.js CHANGED
@@ -9,9 +9,8 @@ const exitWithError = require('../utils/exitWithError');
9
9
  const logger = require('../logger');
10
10
  const { DEPLOY_OPTIONS } = require('../constants');
11
11
 
12
- function handleError(err, spinner) {
12
+ function handleError(err) {
13
13
  // Show error
14
- spinner.stop();
15
14
  logger.error('Dang! Something went wrong');
16
15
  exitWithError(err);
17
16
  }
@@ -24,6 +23,7 @@ function handleFinish(sqlFilePath, spinner) {
24
23
 
25
24
  module.exports = async () => {
26
25
  const settings = getSettings();
26
+ let spinner = ora('Starting pull...');
27
27
 
28
28
  try {
29
29
  const options = await getCliOptions([
@@ -57,12 +57,13 @@ module.exports = async () => {
57
57
  },
58
58
  ]);
59
59
 
60
- const spinner = ora('Starting pull...').start();
60
+ spinner.start();
61
61
 
62
62
  const sqlFilePath = await pullSQL(options);
63
63
 
64
64
  handleFinish(sqlFilePath, spinner);
65
65
  } catch (err) {
66
+ spinner.stop();
66
67
  handleError(err);
67
68
  }
68
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-blank-scripts",
3
- "version": "3.1.9",
3
+ "version": "3.1.11",
4
4
  "description": "Personal Wordpress Scripts",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -116,7 +116,7 @@ function makeBaseConfig(options) {
116
116
  const includeBlocks = process.env.MASTER_BLOCKS;
117
117
  const masterBlocks = [
118
118
  {
119
- from: path.join(__dirname, '../../vivo/vivo-master-blocks/dist'),
119
+ from: path.join(process.cwd(), '../../vivo/vivo-master-blocks/dist'),
120
120
  to: path.join(themePath, 'inc', 'vivo-master-blocks'),
121
121
  },
122
122
  ];