@caweb/cli 1.3.4 → 1.3.5

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/commands/sync.js +2 -2
  2. package/package.json +1 -1
package/commands/sync.js CHANGED
@@ -77,7 +77,7 @@ export default async function sync({
77
77
 
78
78
  const localFile = path.join(appPath, 'caweb.json');
79
79
  const {workDirectoryPath} = await loadConfig(path.resolve('.'));
80
-
80
+
81
81
  process.env.WP_CLI_CONFIG_PATH = path.join(workDirectoryPath, 'config.yml');
82
82
 
83
83
  // if caweb.json file doesn't exist we don't do anything
@@ -163,7 +163,7 @@ export default async function sync({
163
163
  'post',
164
164
  'media_details'
165
165
  ],
166
- include: tax.includes('media') && include ? include.join(',') : null
166
+ include: tax && tax.includes('media') && include ? include.join(',') : null
167
167
  },
168
168
  'media'
169
169
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/cli",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "CAWebPublishing Command Line Interface.",
5
5
  "exports": "./lib/env.js",
6
6
  "type": "module",