mcdev 4.1.11 → 4.1.12

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.
@@ -39,6 +39,7 @@ body:
39
39
  label: Version
40
40
  description: What version of our software are you running? (mcdev --version)
41
41
  options:
42
+ - 4.1.12
42
43
  - 4.1.11
43
44
  - 4.1.10
44
45
  - 4.1.9
package/README.md CHANGED
@@ -123,7 +123,7 @@ If you experience issues installing Accenture SFMC DevTools, please check out th
123
123
  1. Install Accenture SFMC DevTools by running `npm install -g mcdev` (prefix with `sudo` on MacOS)
124
124
  - If you get an error, please see the below troubleshooting section.
125
125
 
126
- When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.11`).
126
+ When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.12`).
127
127
 
128
128
  > **_Side note for proud nerds_:**
129
129
  >
@@ -277,10 +277,10 @@ _Note: Regardless of which tag or branch you install_
277
277
  **Install specific version (using a version tag on npm):**
278
278
 
279
279
  ```bash
280
- npm install -g mcdev@4.1.11
280
+ npm install -g mcdev@4.1.12
281
281
  ```
282
282
 
283
- **Warning**: When you used the above method to install Accenture SFMC DevTools for a specific version or tag, trying to [update Accenture SFMC DevTools](#updating-mcdev) might not download the most recently published official version but instead stay on the version or branch you previously selected (in the above examples: develop, 4.1.11)!
283
+ **Warning**: When you used the above method to install Accenture SFMC DevTools for a specific version or tag, trying to [update Accenture SFMC DevTools](#updating-mcdev) might not download the most recently published official version but instead stay on the version or branch you previously selected (in the above examples: develop, 4.1.12)!
284
284
 
285
285
  > **Note**: The version is currently _not_ updated on the developer branch until a new release is published. Hence, you will not see a change if you run `mcdev --version`.
286
286
 
@@ -1505,7 +1505,7 @@ Assuming you cloned Accenture SFMC DevTools into `C:\repos\sfmc-devtools\` (or `
1505
1505
 
1506
1506
  This should tell npm to create a symlink to your cloned local directory, allowing you to see updates you make in your mcdev repo instantly.
1507
1507
 
1508
- To test your new **global** developer setup, run `mcdev --version` in CLI which should return the current version (e.g. `4.1.11`). Then, go into your mcdev repo and update the version with the suffix `-dev`, e.g. to `4.1.11-dev` and then run `mcdev --version` again to verify that your change propagates instantly.
1508
+ To test your new **global** developer setup, run `mcdev --version` in CLI which should return the current version (e.g. `4.1.12`). Then, go into your mcdev repo and update the version with the suffix `-dev`, e.g. to `4.1.12-dev` and then run `mcdev --version` again to verify that your change propagates instantly.
1509
1509
 
1510
1510
  > **Not recommended:** Alternatively, you can install it locally only by opening a terminal in your project directory and executing `npm install --save-dev "C:\repos\sfmc-devtools"`
1511
1511
  > To run the local version you need to prepend "npx" before your commands, e.g. `npx mcdev --version`
@@ -1543,7 +1543,7 @@ The following explains how you _could_ install it locally for certain edge cases
1543
1543
  4. Afterwards, install Accenture SFMC DevTools by running `npm install --save-dev mcdev`
1544
1544
  - If you get an error, please see the below troubleshooting section.
1545
1545
 
1546
- When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.11`).
1546
+ When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.12`).
1547
1547
 
1548
1548
  ### 9.3. NPM Scripts
1549
1549
 
@@ -12,22 +12,23 @@
12
12
  "tsconfig.json": "tsconfig.*.json",
13
13
  "package.json": "package-lock.json, yarn.lock",
14
14
  "*-doc.md": "${capture}-meta.json",
15
+ "*-meta.amp": "${capture}-meta.json",
16
+ "*-meta.html": "${capture}-meta.json",
17
+ "*-meta.sql": "${capture}-meta.json",
18
+ "*-meta.ssjs": "${capture}-meta.json",
15
19
  "*.asset-asset-meta.html": "${dirname}.asset-asset-meta.json",
16
20
  "*.asset-message-meta.html": "${dirname}.asset-message-meta.json",
17
- "*.html": "${capture}.asset-code-meta.json",
18
21
  "*.css": "${capture}.asset-code-meta.json",
19
22
  "*.docx": "${capture}.asset-document-meta.json",
23
+ "*.eps": "${capture}.asset-image-meta.json",
24
+ "*.gif": "${capture}.asset-image-meta.json",
25
+ "*.html": "${capture}.asset-code-meta.json",
20
26
  "*.ics": "${capture}.asset-document-meta.json",
21
- "*.pdf": "${capture}.asset-document-meta.json",
22
- "*.jpg": "${capture}.asset-image-meta.json",
23
27
  "*.jpeg": "${capture}.asset-image-meta.json",
28
+ "*.jpg": "${capture}.asset-image-meta.json",
29
+ "*.pdf": "${capture}.asset-document-meta.json",
24
30
  "*.png": "${capture}.asset-image-meta.json",
25
- "*.gif": "${capture}.asset-image-meta.json",
26
- "*.eps": "${capture}.asset-image-meta.json",
27
- "*-meta.sql": "${capture}-meta.json",
28
- "*-meta.ssjs": "${capture}-meta.json",
29
- "*-meta.amp": "${capture}-meta.json",
30
- "*-meta.html": "${capture}-meta.json"
31
+ "*.txt": "${capture}.asset-textfile-meta.json"
31
32
  },
32
33
  "editor.codeActionsOnSave": {
33
34
  "source.fixAll.eslint": true
@@ -1,4 +1,8 @@
1
1
  [
2
+ {
3
+ "version": "4.1.12",
4
+ "files": [".vscode/settings.json"]
5
+ },
2
6
  {
3
7
  "version": "4.1.1",
4
8
  "files": [".vscode/settings.json"]
package/lib/Retriever.js CHANGED
@@ -100,7 +100,8 @@ class Retriever {
100
100
  } else {
101
101
  let cacheResult = null;
102
102
  if (
103
- Object.keys(typeKeyMap[metadataType])[0] !== null &&
103
+ (typeKeyMap[metadataType].length > 1 ||
104
+ typeKeyMap[metadataType][0] !== null) &&
104
105
  (dependencies.includes(type) || dependencies.includes(metadataType))
105
106
  ) {
106
107
  // if we have a key-list and the type is a dependency, we need to cache the whole type
@@ -110,7 +110,7 @@ const Init = {
110
110
  },
111
111
  ]);
112
112
  }
113
- if (skipInteraction.gitPush === 'true' || responses?.gitPush) {
113
+ if (skipInteraction?.gitPush === 'true' || responses?.gitPush) {
114
114
  Util.execSync('git', ['push', '-u', 'origin', 'master']);
115
115
  }
116
116
  } else if (remoteBranchesExist === true) {
package/lib/util/init.js CHANGED
@@ -202,7 +202,7 @@ const Init = {
202
202
  },
203
203
  ]);
204
204
  }
205
- if (skipInteraction.downloadBUs === 'true' || responses?.initialRetrieveAll) {
205
+ if (skipInteraction?.downloadBUs === 'true' || responses?.initialRetrieveAll) {
206
206
  Util.execSync('mcdev', ['retrieve', bu]);
207
207
 
208
208
  if (gitStatus === 'init') {
package/lib/util/util.js CHANGED
@@ -130,6 +130,7 @@ const Util = {
130
130
  * @returns {void}
131
131
  */
132
132
  signalFatalError() {
133
+ Util.logger.debug('Util.signalFataError() sets process.exitCode = 1');
133
134
  process.exitCode = 1;
134
135
  },
135
136
  /**
@@ -497,7 +498,10 @@ function startLogger() {
497
498
  */
498
499
  errorStack: function (ex, message) {
499
500
  if (message) {
500
- myWinston.error(message + ': ' + ex.message);
501
+ // ! this method only sets exitCode=1 if message-param was set
502
+ // if not, then this method purely outputs debug information and should not change the exitCode
503
+ winstonError(message + ': ' + ex.message);
504
+ Util.signalFatalError();
501
505
  }
502
506
  let stack;
503
507
  /* eslint-disable unicorn/prefer-ternary */
@@ -513,7 +517,6 @@ function startLogger() {
513
517
  }
514
518
  /* eslint-enable unicorn/prefer-ternary */
515
519
  myWinston.debug(stack);
516
- Util.signalFatalError();
517
520
  },
518
521
  /**
519
522
  * errors should cause surrounding applications to take notice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcdev",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "description": "Accenture Salesforce Marketing Cloud DevTools",
5
5
  "author": "Accenture: joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas",
6
6
  "license": "MIT",
@@ -63,5 +63,5 @@
63
63
  "triggeredSendDefinition"
64
64
  ]
65
65
  },
66
- "version": "4.1.11"
66
+ "version": "4.1.12"
67
67
  }