@tangelo/tangelo-configuration-toolkit 1.10.2 → 1.10.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangelo/tangelo-configuration-toolkit",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "description": "Tangelo Configuration Toolkit is a command-line toolkit which offers support for developing a Tangelo configuration.",
5
5
  "bin": {
6
6
  "tct": "bin/index.js",
@@ -20,6 +20,7 @@ module.exports = function workerWithSpinner (spinnerTxt, workerFn, postMsg, onMe
20
20
  onMessageFn(msg);
21
21
  resolve();
22
22
  });
23
+ worker.on('error', err => _error('\n' + err.stdout));
23
24
  worker.postMessage(postMsg);
24
25
  });
25
26
 
@@ -76,8 +76,8 @@ module.exports = function deploy (argv) {
76
76
  // within fonto, transfer build files only, but also schema files, because
77
77
  // the "dist" folder isn't watched properly: it does not detect "assets" anymore after building once
78
78
  !/cmscustom.+fonto[\\\/]/.test(filepath) ||
79
- /fonto[\\\/]dist/.test(filepath) ||
80
- (/fonto[\\\/]dev/.test(filepath) && c.envDev) ||
79
+ /fonto[\\\/]dist[\\\/]/.test(filepath) ||
80
+ (/fonto[\\\/]dev[\\\/]/.test(filepath) && c.envDev) ||
81
81
  /fonto[\\\/]packages[\\\/]sx-shell-.*?[\\\/]assets[\\\/]schemas[\\\/]/.test(filepath)
82
82
  )
83
83
  ) {
@@ -149,7 +149,7 @@ module.exports = {
149
149
  // execute "fdt elements" for each schema package, ignore default elements, and combine results
150
150
  const schemasPerElement = {};
151
151
  Object.entries(rootSchemas).forEach(([path, obj]) => {
152
- const data = execSync(`fdt elements --schema ${obj.packageName} -C name`, {encoding: 'UTF-8'});
152
+ const data = execSync(`fdt elements --schema packages/${obj.packageName}/src/assets/schemas/${obj.packageName}.json -C name`, {encoding: 'UTF-8'});
153
153
  const elements = data.replace(/^.*?Name\*|Printed name\*.*$/gs, '').split(/\s+/);
154
154
  const customElements = [...new Set(elements)].filter(e => e && !ignoreElements.includes(e));
155
155
 
@@ -195,7 +195,7 @@ module.exports = {
195
195
  // execute "fdt attributes" for each schema package, ignore default attributes, and combine results
196
196
  const schemasPerAttribute = {};
197
197
  Object.entries(rootSchemas).forEach(([path, obj]) => {
198
- const data = execSync(`fdt attributes --schema ${obj.packageName}`, {encoding: 'UTF-8'});
198
+ const data = execSync(`fdt attributes --schema packages/${obj.packageName}/src/assets/schemas/${obj.packageName}.json`, {encoding: 'UTF-8'});
199
199
  const attributes = data.replace(/^.*?Default value\s+|\s+Printed name\*.*$/gs, '').split(/\n\s+/).map(a => a.split(/\s+/)).map(a =>
200
200
  a[0] + (a[2]=='required' ? ' (required)' : '') + (a[3]=='-' ? ' (no default)' : '')
201
201
  );