@caweb/cli 1.13.4 → 1.13.6

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/configs/wp-env.js +12 -20
  2. package/package.json +3 -3
package/configs/wp-env.js CHANGED
@@ -101,35 +101,27 @@ function wpEnvConfig ( bare, multisite, subdomain, plugin, theme ) {
101
101
  // add caweb logo
102
102
  if( cawebJson?.logo ){
103
103
  // dev configurations
104
- envConfig.env.development.config['CAWEB_ORG_LOGO'] = `${envConfig.config['WP_SITEURL']}/` + path.join(
105
- uploadDir,
106
- path.basename(cawebJson.logo) + // add the port
107
- ('80' !== envConfig.env.development.port ? `:${envConfig.env.development.port}` : '')
108
- ).replace(/\\/g, '/');
104
+ envConfig.env.development.config['CAWEB_ORG_LOGO'] = `${envConfig.config['WP_SITEURL']}` +
105
+ ('80' !== envConfig.env.development.port ? `:${envConfig.env.development.port}/` : '/') +
106
+ path.join( uploadDir, path.basename(cawebJson.logo) ).replace(/\\/g, '/');
109
107
 
110
108
  // tests configurations
111
- envConfig.env.tests.config['CAWEB_ORG_LOGO'] = `${envConfig.config['WP_SITEURL']}/` + path.join(
112
- uploadDir,
113
- path.basename(cawebJson.logo) + // add the port
114
- ('80' !== envConfig.env.tests.port ? `:${envConfig.env.tests.port}` : '')
115
- ).replace(/\\/g, '/');
109
+ envConfig.env.tests.config['CAWEB_ORG_LOGO'] = `${envConfig.config['WP_SITEURL']}` +
110
+ ('80' !== envConfig.env.tests.port ? `:${envConfig.env.tests.port}/` : '/') +
111
+ path.join( uploadDir, path.basename(cawebJson.logo) ).replace(/\\/g, '/');
116
112
  }
117
113
 
118
114
  // add caweb favicon
119
115
  if( cawebJson?.favicon ){
120
116
  // dev configurations
121
- envConfig.env.development.config['CAWEB_FAV_ICON'] = `${envConfig.config['WP_SITEURL']}/` + path.join(
122
- uploadDir,
123
- path.basename(cawebJson.favicon) + // add the port
124
- ('80' !== envConfig.env.development.port ? `:${envConfig.env.development.port}` : '')
125
- ).replace(/\\/g, '/');
117
+ envConfig.env.development.config['CAWEB_FAV_ICON'] = `${envConfig.config['WP_SITEURL']}` +
118
+ ('80' !== envConfig.env.development.port ? `:${envConfig.env.development.port}/` : '/') +
119
+ path.join( uploadDir, path.basename(cawebJson.favicon) ).replace(/\\/g, '/');
126
120
 
127
121
  // tests configurations
128
- envConfig.env.tests.config['CAWEB_FAV_ICON'] = `${envConfig.config['WP_SITEURL']}/` + path.join(
129
- uploadDir,
130
- path.basename(cawebJson.favicon) + // add the port
131
- ('80' !== envConfig.env.tests.port ? `:${envConfig.env.tests.port}` : '')
132
- ).replace(/\\/g, '/');
122
+ envConfig.env.tests.config['CAWEB_FAV_ICON'] = `${envConfig.config['WP_SITEURL']}` +
123
+ ('80' !== envConfig.env.tests.port ? `:${envConfig.env.tests.port}/` : '/') +
124
+ path.join( uploadDir, path.basename(cawebJson.favicon) ).replace(/\\/g, '/');
133
125
 
134
126
  }
135
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/cli",
3
- "version": "1.13.4",
3
+ "version": "1.13.6",
4
4
  "description": "CAWebPublishing Command Line Interface.",
5
5
  "exports": "./lib/env.js",
6
6
  "type": "module",
@@ -62,8 +62,8 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@caweb/webpack": "^1.5.4",
66
- "@inquirer/prompts": "^7.7.1",
65
+ "@caweb/webpack": "^1.5.5",
66
+ "@inquirer/prompts": "^7.8.0",
67
67
  "@wordpress/create-block": "^4.70.0",
68
68
  "@wordpress/env": "^10.27.0",
69
69
  "axios": "^1.11.0",