@jayree/sfdx-plugin-manifest 1.0.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -18,7 +18,7 @@ $ sfdx plugins:install @jayree/sfdx-plugin-manifest
18
18
  $ sfdx jayree:COMMAND
19
19
  running command...
20
20
  $ sfdx plugins
21
- @jayree/sfdx-plugin-manifest 1.0.6
21
+ @jayree/sfdx-plugin-manifest 2.0.0
22
22
  $ sfdx help jayree:COMMAND
23
23
  USAGE
24
24
  $ sfdx jayree:COMMAND
@@ -58,7 +58,7 @@ EXAMPLE
58
58
  $ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
59
59
  ```
60
60
 
61
- _See code: [commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v1.0.6/commands/jayree/manifest/cleanup.ts)_
61
+ _See code: [commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.0.0/commands/jayree/manifest/cleanup.ts)_
62
62
 
63
63
  ### `sfdx jayree:manifest:generate`
64
64
 
@@ -109,7 +109,7 @@ EXAMPLES
109
109
  <Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
110
110
  ```
111
111
 
112
- _See code: [commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v1.0.6/commands/jayree/manifest/generate.ts)_
112
+ _See code: [commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.0.0/commands/jayree/manifest/generate.ts)_
113
113
 
114
114
  ### `sfdx jayree:manifest:git:diff`
115
115
 
@@ -117,7 +117,7 @@ create a manifest and destructiveChanges manifest using 'git diff' data
117
117
 
118
118
  ```
119
119
  USAGE
120
- $ sfdx jayree:manifest:git:diff [--json] [--loglevel
120
+ $ sfdx jayree:manifest:git:diff [-o <string>] [--json] [--loglevel
121
121
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
122
122
 
123
123
  ARGUMENTS
@@ -125,6 +125,9 @@ ARGUMENTS
125
125
  REF2 commit or branch to compare to the base commit
126
126
 
127
127
  OPTIONS
128
+ -o, --outputdir=outputdir directory to save the created
129
+ manifest files
130
+
128
131
  --json format output as json
129
132
 
130
133
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
@@ -153,5 +156,5 @@ EXAMPLES
153
156
  uses the diff of what is unique in branchB (REF2)
154
157
  ```
155
158
 
156
- _See code: [commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v1.0.6/commands/jayree/manifest/git/diff.ts)_
159
+ _See code: [commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.0.0/commands/jayree/manifest/git/diff.ts)_
157
160
  <!-- commandsstop -->
@@ -35,9 +35,17 @@ class GeneratePackageXML extends jayreeSfdxCommand_1.JayreeSfdxCommand {
35
35
  const childrenPromises = [];
36
36
  const componentTypes = new Set();
37
37
  for await (const componentResult of componentPromises) {
38
- Aggregator.push(...componentResult);
39
38
  for (const component of componentResult) {
40
- const componentType = registryAccess.getTypeByName(component.type.toLowerCase());
39
+ let componentType;
40
+ if (typeof component.type === 'string') {
41
+ componentType = registryAccess.getTypeByName(component.type);
42
+ }
43
+ else {
44
+ // fix { type: { "$": { "xsi:nil": "true" } } }
45
+ componentType = registryAccess.getTypeBySuffix((0, utils_1.extName)(component.fileName));
46
+ component.type = componentType.name;
47
+ }
48
+ Aggregator.push(component);
41
49
  componentTypes.add(componentType);
42
50
  const folderContentType = componentType.folderContentType;
43
51
  if (folderContentType) {
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/commands/jayree/manifest/generate.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AAEzD,2CAAwD;AACxD,+EAM4C;AAC5C,4EAAgG;AAChG,+BAA+B;AAC/B,gFAAgF;AA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@ -1,6 +1,7 @@
1
- import { SfdxCommand } from '@salesforce/command';
1
+ import { FlagsConfig } from '@salesforce/command';
2
2
  import { AnyJson } from '@salesforce/ts-types';
3
- export default class GitDiff extends SfdxCommand {
3
+ import { JayreeSfdxCommand } from '../../../../jayreeSfdxCommand';
4
+ export default class GitDiff extends JayreeSfdxCommand {
4
5
  static description: string;
5
6
  static examples: string[];
6
7
  static args: {
@@ -10,11 +11,21 @@ export default class GitDiff extends SfdxCommand {
10
11
  parse: (input: string) => string;
11
12
  hidden: boolean;
12
13
  }[];
14
+ protected static flagsConfig: FlagsConfig;
13
15
  protected static requiresUsername: boolean;
14
16
  protected static supportsDevhubUsername: boolean;
15
17
  protected static requiresProject: boolean;
16
18
  private isOutputEnabled;
19
+ private outputDir;
20
+ private projectRoot;
21
+ private sfdxProjectFolders;
22
+ private sourceApiVersion;
23
+ private destructiveChanges;
24
+ private manifest;
25
+ private gitLines;
26
+ private ref1VirtualTreeContainer;
27
+ private ref2VirtualTreeContainer;
28
+ private componentSet;
29
+ private outputErrors;
17
30
  run(): Promise<AnyJson>;
18
- private resolveRef;
19
- private getGitArgsFromArgv;
20
31
  }
@@ -8,14 +8,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  */
9
9
  const os = require("os");
10
10
  const path_1 = require("path");
11
- const util = require("util");
12
11
  const command_1 = require("@salesforce/command");
13
12
  const core_1 = require("@salesforce/core");
14
13
  const fs = require("fs-extra");
15
14
  const listr2_1 = require("listr2");
16
15
  const kit = require("@salesforce/kit");
17
16
  const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
18
- const isomorphic_git_1 = require("isomorphic-git");
17
+ const jayreeSfdxCommand_1 = require("../../../../jayreeSfdxCommand");
19
18
  const gitdiff_1 = require("../../../../utils/gitdiff");
20
19
  core_1.Messages.importMessagesDirectory(__dirname);
21
20
  const messages = core_1.Messages.loadMessages('@jayree/sfdx-plugin-manifest', 'gitdiff');
@@ -35,73 +34,81 @@ const unexpectedArgument = (input) => {
35
34
  }
36
35
  return input;
37
36
  };
38
- class GitDiff extends command_1.SfdxCommand {
37
+ class GitDiff extends jayreeSfdxCommand_1.JayreeSfdxCommand {
39
38
  async run() {
40
39
  var _a, _b;
40
+ this.outputDir = this.getFlag('outputdir');
41
+ this.projectRoot = this.project.getPath();
42
+ this.sfdxProjectFolders = this.project.getPackageDirectories().map((p) => (0, gitdiff_1.ensureOSPath)(p.path));
43
+ this.sourceApiVersion = (await this.project.retrieveSfdxProjectJson()).getContents().sourceApiVersion;
44
+ this.destructiveChanges = (0, path_1.join)(this.projectRoot, this.outputDir, 'destructiveChanges.xml');
45
+ this.manifest = (0, path_1.join)(this.projectRoot, this.outputDir, 'package.xml');
46
+ (0, gitdiff_1.debug)({
47
+ outputDir: this.outputDir,
48
+ projectRoot: this.projectRoot,
49
+ sfdxProjectFolders: this.sfdxProjectFolders,
50
+ });
41
51
  const isContentTypeJSON = kit.env.getString('SFDX_CONTENT_TYPE', '').toUpperCase() === 'JSON';
42
52
  this.isOutputEnabled = !(process.argv.find((arg) => arg === '--json') || isContentTypeJSON);
43
- const gitArgs = await this.getGitArgsFromArgv();
44
- (0, gitdiff_1.debug)(gitArgs);
53
+ const gitArgs = await (0, gitdiff_1.getGitArgsFromArgv)(this.args.ref1, this.args.ref2, this.argv, this.projectRoot);
54
+ (0, gitdiff_1.debug)({ gitArgs });
45
55
  const tasks = new listr2_1.Listr([
46
56
  {
47
57
  title: 'Analyze sfdx-project',
48
- task: async (ctx, task) => {
49
- ctx.projectRoot = this.project.getPath();
50
- ctx.sfdxProjectFolders = this.project.getPackageDirectories().map((p) => (0, gitdiff_1.ensureOSPath)(p.path));
51
- ctx.sourceApiVersion = (await this.project.retrieveSfdxProjectJson()).getContents().sourceApiVersion;
52
- task.output = `packageDirectories: ${ctx.sfdxProjectFolders.length} sourceApiVersion: ${ctx.sourceApiVersion}`;
58
+ task: (ctx, task) => {
59
+ task.output = `packageDirectories: ${this.sfdxProjectFolders.length} sourceApiVersion: ${this.sourceApiVersion}`;
53
60
  },
54
61
  options: { persistentOutput: true },
55
62
  },
56
63
  {
57
- title: "Execute 'git --no-pager diff --name-status --no-renames <pending>'",
64
+ title: `Execute 'git --no-pager diff --name-status --no-renames ${gitArgs.refString}'`,
58
65
  task: async (ctx, task) => {
59
- ctx.git = gitArgs;
60
- task.title = `Execute 'git --no-pager diff --name-status --no-renames ${ctx.git.ref1ref2}'`;
61
- ctx.gitLines = await (0, gitdiff_1.getGitDiff)(ctx.sfdxProjectFolders, ctx.git.ref1, ctx.git.ref2, ctx.projectRoot);
62
- task.output = `Changed files: ${ctx.gitLines.length}`;
66
+ this.gitLines = await (0, gitdiff_1.getGitDiff)(this.sfdxProjectFolders, gitArgs.ref1, gitArgs.ref2, this.projectRoot);
67
+ task.output = `Changed files: ${this.gitLines.length}`;
63
68
  },
64
69
  options: { persistentOutput: true },
65
70
  },
66
71
  {
67
72
  title: 'Create virtual tree container',
68
- skip: (ctx) => ctx.gitLines.length === 0,
73
+ skip: () => !this.gitLines.length,
69
74
  task: (ctx, task) => task.newListr([
70
75
  {
71
- title: `ref1: ${ctx.git.ref1}`,
72
- // eslint-disable-next-line @typescript-eslint/no-shadow
73
- task: async (ctx) => {
74
- ctx.ref1VirtualTreeContainer = await (0, gitdiff_1.createVirtualTreeContainer)(ctx.git.ref1, ctx.projectRoot, ctx.gitLines.filter((l) => l.status === 'M').map((l) => l.path));
76
+ title: `ref1: ${gitArgs.ref1}`,
77
+ task: async () => {
78
+ this.ref1VirtualTreeContainer = await (0, gitdiff_1.createVirtualTreeContainer)(gitArgs.ref1, this.projectRoot, this.gitLines.filter((l) => l.status === 'M').map((l) => l.path));
75
79
  },
76
80
  },
77
81
  {
78
- title: ctx.git.ref2 !== '' ? `ref2: ${ctx.git.ref2}` : undefined,
79
- // eslint-disable-next-line @typescript-eslint/no-shadow
80
- task: async (ctx) => {
81
- ctx.ref2VirtualTreeContainer =
82
- ctx.git.ref2 !== ''
83
- ? await (0, gitdiff_1.createVirtualTreeContainer)(ctx.git.ref2, ctx.projectRoot, ctx.gitLines.filter((l) => l.status === 'M').map((l) => l.path))
84
- : new gitdiff_1.NodeFSTreeContainer();
82
+ title: gitArgs.ref2 !== '' ? `ref2: ${gitArgs.ref2}` : undefined,
83
+ task: async () => {
84
+ this.ref2VirtualTreeContainer =
85
+ gitArgs.ref2 !== ''
86
+ ? await (0, gitdiff_1.createVirtualTreeContainer)(gitArgs.ref2, this.projectRoot, this.gitLines.filter((l) => l.status === 'M').map((l) => l.path))
87
+ : new source_deploy_retrieve_1.NodeFSTreeContainer();
85
88
  },
86
89
  },
87
90
  ], { concurrent: true }),
88
91
  },
89
92
  {
90
93
  title: 'Analyze git diff results',
91
- skip: (ctx) => ctx.gitLines.length === 0,
94
+ skip: () => !this.gitLines.length,
92
95
  task: async (ctx, task) => {
93
- ctx.gitResults = await (0, gitdiff_1.getGitResults)(ctx.gitLines, ctx.ref1VirtualTreeContainer, ctx.ref2VirtualTreeContainer);
94
- task.output = `Added: ${ctx.gitResults.counts.added}, Deleted: ${ctx.gitResults.counts.deleted}, Modified: ${ctx.gitResults.counts.modified}, Unchanged: ${ctx.gitResults.counts.unchanged}, Ignored: ${ctx.gitResults.counts.ignored}${ctx.gitResults.counts.error ? `, Errors: ${ctx.gitResults.counts.error}` : ''}`;
96
+ const { manifest, output } = await (0, gitdiff_1.getGitResults)(this.gitLines, this.ref1VirtualTreeContainer, this.ref2VirtualTreeContainer);
97
+ task.output = `Added: ${output.counts.added}, Deleted: ${output.counts.deleted}, Modified: ${output.counts.modified}, Unchanged: ${output.counts.unchanged}, Ignored: ${output.counts.ignored}${output.counts.error ? `, Errors: ${output.counts.error}` : ''}`;
98
+ this.outputErrors = output.errors;
99
+ (0, gitdiff_1.debug)({ manifest });
100
+ this.componentSet = (0, gitdiff_1.fixComponentSetChilds)(manifest);
101
+ this.componentSet.sourceApiVersion = this.sourceApiVersion;
95
102
  },
96
103
  options: { persistentOutput: true },
97
104
  },
98
105
  {
99
106
  // title: 'Error output',
100
- skip: (ctx) => { var _a; return !((_a = ctx.gitResults) === null || _a === void 0 ? void 0 : _a.errors.length); },
107
+ skip: () => !(this.outputErrors && this.outputErrors.length),
101
108
  task: (ctx, task) => {
102
- const errors = [...ctx.gitResults.errors];
103
- const moreErrors = errors.splice(5);
104
- for (const message of errors) {
109
+ (0, gitdiff_1.debug)({ errors: this.outputErrors });
110
+ const moreErrors = this.outputErrors.splice(5);
111
+ for (const message of this.outputErrors) {
105
112
  task.output = `Error: ${message}`;
106
113
  }
107
114
  task.output = moreErrors.length ? `... ${moreErrors.length} more errors` : '';
@@ -110,51 +117,26 @@ class GitDiff extends command_1.SfdxCommand {
110
117
  },
111
118
  {
112
119
  title: 'Generate manifests',
113
- skip: (ctx) => !ctx.gitResults || (!ctx.gitResults.manifest.size && !ctx.gitResults.destructiveChanges.size),
120
+ skip: () => !(this.componentSet && this.componentSet.size),
114
121
  task: (ctx, task) => task.newListr([
115
122
  {
116
- title: (0, path_1.join)('destructiveChanges', 'destructiveChanges.xml'),
117
- // eslint-disable-next-line @typescript-eslint/no-shadow
118
- skip: (ctx) => !ctx.gitResults.destructiveChanges.size,
119
- // eslint-disable-next-line @typescript-eslint/no-shadow
120
- task: async (ctx, task) => {
121
- ctx.destructiveChangesComponentSet = (0, gitdiff_1.buildManifestComponentSet)(ctx.gitResults.destructiveChanges, true);
122
- if (!ctx.destructiveChangesComponentSet.getObject(source_deploy_retrieve_1.DestructiveChangesType.POST).Package.types.length) {
123
- task.skip();
124
- return;
125
- }
126
- ctx.destructiveChangesComponentSet.sourceApiVersion = ctx.sourceApiVersion;
127
- ctx.destructiveChanges = {
128
- files: [
129
- (0, path_1.join)(ctx.projectRoot, 'destructiveChanges', 'destructiveChanges.xml'),
130
- (0, path_1.join)(ctx.projectRoot, 'destructiveChanges', 'package.xml'),
131
- ],
132
- };
133
- await fs.ensureDir((0, path_1.dirname)(ctx.destructiveChanges.files[0]));
134
- await fs.writeFile(ctx.destructiveChanges.files[0], ctx.destructiveChangesComponentSet.getPackageXml(undefined, source_deploy_retrieve_1.DestructiveChangesType.POST));
135
- await fs.writeFile(ctx.destructiveChanges.files[1], ctx.destructiveChangesComponentSet.getPackageXml());
123
+ title: (0, path_1.relative)(this.projectRoot, this.manifest),
124
+ task: async () => {
125
+ await fs.ensureDir((0, path_1.dirname)(this.manifest));
126
+ await fs.writeFile(this.manifest, this.componentSet.getPackageXml());
136
127
  },
137
128
  options: { persistentOutput: true },
138
129
  },
139
130
  {
140
- title: (0, path_1.join)('package', 'package.xml'),
141
- // eslint-disable-next-line @typescript-eslint/no-shadow
142
- skip: (ctx) => !ctx.gitResults.manifest.size,
143
- // eslint-disable-next-line @typescript-eslint/no-shadow
144
- task: async (ctx, task) => {
145
- ctx.manifestComponentSet = (0, gitdiff_1.buildManifestComponentSet)(ctx.gitResults.manifest);
146
- if (!ctx.manifestComponentSet.getObject().Package.types.length) {
147
- task.skip();
148
- return;
149
- }
150
- ctx.manifestComponentSet.sourceApiVersion = ctx.sourceApiVersion;
151
- ctx.manifest = { file: (0, path_1.join)(ctx.projectRoot, 'package', 'package.xml') };
152
- await fs.ensureDir((0, path_1.dirname)(ctx.manifest.file));
153
- await fs.writeFile(ctx.manifest.file, ctx.manifestComponentSet.getPackageXml());
131
+ title: (0, path_1.relative)(this.projectRoot, this.destructiveChanges),
132
+ skip: () => !this.componentSet.getTypesOfDestructiveChanges().length,
133
+ task: async () => {
134
+ await fs.ensureDir((0, path_1.dirname)(this.destructiveChanges));
135
+ await fs.writeFile(this.destructiveChanges, this.componentSet.getPackageXml(undefined, source_deploy_retrieve_1.DestructiveChangesType.POST));
154
136
  },
155
137
  options: { persistentOutput: true },
156
138
  },
157
- ], { concurrent: true, exitOnError: false }),
139
+ ], { concurrent: true }),
158
140
  },
159
141
  ], {
160
142
  rendererOptions: { showTimer: true, collapse: false, lazy: true, collapseErrors: false },
@@ -162,26 +144,10 @@ class GitDiff extends command_1.SfdxCommand {
162
144
  rendererFallback: gitdiff_1.debug.enabled,
163
145
  });
164
146
  try {
165
- const context = await tasks.run();
166
- if (gitdiff_1.debug.enabled && this.isOutputEnabled) {
167
- logger.success(`Context: ${JSON.stringify(context, (key, value) => {
168
- if (value instanceof source_deploy_retrieve_1.ComponentSet && value !== null) {
169
- let types = value.getObject().Package.types;
170
- if (types.length === 0) {
171
- types = value.getObject(source_deploy_retrieve_1.DestructiveChangesType.POST).Package.types;
172
- }
173
- return types;
174
- }
175
- if (value instanceof source_deploy_retrieve_1.VirtualTreeContainer) {
176
- return typeof value;
177
- }
178
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
179
- return value;
180
- }, 2)}`);
181
- }
147
+ await tasks.run();
182
148
  return {
183
- destructiveChanges: (_a = context.destructiveChangesComponentSet) === null || _a === void 0 ? void 0 : _a.getObject(source_deploy_retrieve_1.DestructiveChangesType.POST),
184
- manifest: (_b = context.manifestComponentSet) === null || _b === void 0 ? void 0 : _b.getObject(),
149
+ destructiveChanges: (_a = this.componentSet) === null || _a === void 0 ? void 0 : _a.getObject(source_deploy_retrieve_1.DestructiveChangesType.POST),
150
+ manifest: (_b = this.componentSet) === null || _b === void 0 ? void 0 : _b.getObject(),
185
151
  };
186
152
  }
187
153
  catch (e) {
@@ -191,88 +157,6 @@ class GitDiff extends command_1.SfdxCommand {
191
157
  throw e;
192
158
  }
193
159
  }
194
- async resolveRef(refOrig) {
195
- if (refOrig === '') {
196
- return '';
197
- }
198
- const getCommitLog = async (ref) => {
199
- try {
200
- const [log] = await isomorphic_git_1.default.log({
201
- fs,
202
- dir: this.project.getPath(),
203
- ref,
204
- depth: 1,
205
- });
206
- return { oid: log.oid, parents: log.commit.parent };
207
- }
208
- catch (error) {
209
- throw new Error(`ambiguous argument '${ref}': unknown revision or path not in the working tree.
210
- See more help with --help`);
211
- }
212
- };
213
- if (!['~', '^'].some((el) => refOrig.includes(el))) {
214
- return (await getCommitLog(refOrig)).oid;
215
- }
216
- const firstIndex = [refOrig.indexOf('^'), refOrig.indexOf('~')]
217
- .filter((a) => a >= 0)
218
- .reduce((a, b) => Math.min(a, b));
219
- let path = refOrig.substring(firstIndex);
220
- let ref = refOrig.substring(0, firstIndex);
221
- while (path.length && ref !== undefined) {
222
- if (path.substring(0, 1) === '^') {
223
- path = path.substring(1);
224
- let next = Number(path.substring(0, 1));
225
- path = next ? path.substring(1) : path;
226
- next = next ? next : 1;
227
- ref = (await getCommitLog(ref)).parents[next - 1];
228
- }
229
- else if (path.substring(0, 1) === '~') {
230
- path = path.substring(1);
231
- let next = Number(path.substring(0, 1));
232
- path = next ? path.substring(1) : path;
233
- next = next ? next : 1;
234
- for (let index = 0; index <= next - 1; index++) {
235
- ref = (await getCommitLog(ref)).parents[0];
236
- }
237
- }
238
- else {
239
- ref = undefined;
240
- }
241
- }
242
- if (ref === undefined) {
243
- throw new Error(`ambiguous argument '${refOrig}': unknown revision or path not in the working tree.`);
244
- }
245
- return ref;
246
- }
247
- async getGitArgsFromArgv() {
248
- const argv = this.argv.filter((v) => !v.includes('-'));
249
- let ref1ref2 = this.args.ref1;
250
- const a = argv.join('.').split('.');
251
- if ((a.length === 3 || a.length === 4) && typeof this.args.ref2 === 'undefined') {
252
- this.args.ref1 = a[0];
253
- this.args.ref2 = a[a.length - 1];
254
- }
255
- else if (a.length === 2 && typeof this.args.ref2 !== 'undefined') {
256
- ref1ref2 = `${this.args.ref1}..${this.args.ref2}`;
257
- }
258
- else if (a.length === 1) {
259
- this.args.ref2 = '';
260
- }
261
- else {
262
- throw new Error(`Ambiguous ${util.format('argument%s', argv.length === 1 ? '' : 's')}: ${argv.join(', ')}
263
- See more help with --help`);
264
- }
265
- this.args.ref1 = await this.resolveRef(this.args.ref1);
266
- this.args.ref2 = await this.resolveRef(this.args.ref2);
267
- if (a.length === 4) {
268
- this.args.ref1 = (await isomorphic_git_1.default.findMergeBase({
269
- fs,
270
- dir: this.project.getPath(),
271
- oids: [this.args.ref2, this.args.ref1],
272
- }))[0];
273
- }
274
- return { ref1: this.args.ref1, ref2: this.args.ref2, ref1ref2 };
275
- }
276
160
  }
277
161
  exports.default = GitDiff;
278
162
  GitDiff.description = messages.getMessage('commandDescription');
@@ -293,6 +177,13 @@ GitDiff.args = [
293
177
  hidden: false,
294
178
  },
295
179
  ];
180
+ GitDiff.flagsConfig = {
181
+ outputdir: command_1.flags.string({
182
+ char: 'o',
183
+ description: messages.getMessage('outputdir'),
184
+ default: '',
185
+ }),
186
+ };
296
187
  GitDiff.requiresUsername = false;
297
188
  GitDiff.supportsDevhubUsername = false;
298
189
  GitDiff.requiresProject = true;
@@ -1 +1 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/manifest/git/diff.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,+BAAqC;AACrC,6BAA6B;AAC7B,iDAAkD;AAClD,2CAA4C;AAE5C,+BAA+B;AAC/B,mCAAuC;AACvC,uCAAuC;AACvC,+EAAgH;AAChH,mDAAiC;AACjC,uDASmC;AAEnC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,SAAS,CAAC,CAAC;AAElF,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AAE/C,2DAA2D;AAC3D,6DAA6D;AAC7D,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;AAErC,OAAO,CAAC,WAAW,GAAG,CAAC,OAAe,EAAQ,EAAE;IAC9C,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAU,EAAE;IACnD,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,E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,YAAI,GAAG;IACnB;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,uBAAuB;QACpC,KAAK,EAAE,kBAAkB;QACzB,MAAM,EAAE,KAAK;KACd;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gDAAgD;QAC7D,KAAK,EAAE,kBAAkB;QACzB,MAAM,EAAE,KAAK;KACd;CACF,CAAC;AAEe,mBAAW,GAAgB;IAC1C,SAAS,EAAE,eAAK,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;QAC7C,OAAO,EAAE,EAAE;KACZ,CAAC;CACH,CAAC;AAEe,wBAAgB,GAAG,KAAK,CAAC;AACzB,8BAAsB,GAAG,KAAK,CAAC;AAC/B,uBAAe,GAAG,IAAI,CAAC"}
@@ -1,18 +1,10 @@
1
1
  /// <reference types="debug" />
2
2
  import { ComponentSet, VirtualTreeContainer, SourceComponent, NodeFSTreeContainer as FSTreeContainer } from '@salesforce/source-deploy-retrieve';
3
- export declare const NodeFSTreeContainer: typeof FSTreeContainer;
3
+ import git from 'isomorphic-git';
4
4
  export declare const debug: import("debug").Debugger;
5
- export interface Ctx {
6
- projectRoot: string;
7
- sfdxProjectFolders: string[];
8
- sourceApiVersion: string;
9
- gitLines: Array<{
10
- path: string;
11
- status: string;
12
- }>;
13
- gitResults: {
14
- manifest: ComponentSet;
15
- destructiveChanges: ComponentSet;
5
+ declare type gitResults = {
6
+ manifest: ComponentSet;
7
+ output: {
16
8
  unchanged: string[];
17
9
  ignored: {
18
10
  ref1: string[];
@@ -28,22 +20,17 @@ export interface Ctx {
28
20
  };
29
21
  errors: string[];
30
22
  };
31
- ref1VirtualTreeContainer: VirtualTreeContainer;
32
- ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer;
33
- destructiveChangesComponentSet: ComponentSet;
34
- manifestComponentSet: ComponentSet;
35
- git: {
36
- ref1: string;
37
- ref2: string;
38
- ref1ref2: string;
39
- };
40
- destructiveChanges: {
41
- files: string[];
42
- };
43
- manifest: {
44
- file: string;
45
- };
46
- }
23
+ };
24
+ declare type git = {
25
+ ref1: string;
26
+ ref2: string;
27
+ refString: string;
28
+ };
29
+ export declare type gitLines = Array<{
30
+ path: string;
31
+ status: string;
32
+ }>;
33
+ export declare function getGitArgsFromArgv(ref1: string, ref2: string, argv: string[], dir: string): Promise<git>;
47
34
  export declare function ensureOSPath(path: string): string;
48
35
  export declare function ensureGitPath(path: string): string;
49
36
  export declare function createVirtualTreeContainer(ref: string, dir: string, modifiedFiles: string[]): Promise<VirtualTreeContainer>;
@@ -52,6 +39,7 @@ export declare function analyzeFile(path: string, ref1VirtualTreeContainer: Virt
52
39
  toManifest?: SourceComponent[];
53
40
  toDestructiveChanges?: SourceComponent[];
54
41
  }>;
55
- export declare function getGitDiff(sfdxProjectFolders: string[], ref1: string, ref2: string, dir: string): Promise<Ctx['gitLines']>;
56
- export declare function getGitResults(gitLines: Ctx['gitLines'], ref1VirtualTreeContainer: VirtualTreeContainer, ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer): Promise<Ctx['gitResults']>;
57
- export declare function buildManifestComponentSet(cs: ComponentSet, forDestructiveChanges?: boolean): ComponentSet;
42
+ export declare function getGitDiff(sfdxProjectFolders: string[], ref1: string, ref2: string, dir: string): Promise<gitLines>;
43
+ export declare function getGitResults(gitLines: gitLines, ref1VirtualTreeContainer: VirtualTreeContainer, ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer): Promise<gitResults>;
44
+ export declare function fixComponentSetChilds(cs: ComponentSet): ComponentSet;
45
+ export {};
@@ -6,17 +6,114 @@
6
6
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.buildManifestComponentSet = exports.getGitResults = exports.getGitDiff = exports.analyzeFile = exports.createVirtualTreeContainer = exports.ensureGitPath = exports.ensureOSPath = exports.debug = exports.NodeFSTreeContainer = void 0;
9
+ exports.fixComponentSetChilds = exports.getGitResults = exports.getGitDiff = exports.analyzeFile = exports.createVirtualTreeContainer = exports.ensureGitPath = exports.ensureOSPath = exports.getGitArgsFromArgv = exports.debug = void 0;
10
10
  const path_1 = require("path");
11
+ const util = require("util");
11
12
  const fs = require("fs-extra");
12
13
  const equal = require("fast-deep-equal");
13
14
  const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
14
15
  const utils_1 = require("@salesforce/source-deploy-retrieve/lib/src/utils");
15
16
  const debug_1 = require("debug");
16
17
  const isomorphic_git_1 = require("isomorphic-git");
17
- exports.NodeFSTreeContainer = source_deploy_retrieve_1.NodeFSTreeContainer;
18
18
  exports.debug = (0, debug_1.debug)('jayree:manifest:git:diff');
19
19
  const registryAccess = new source_deploy_retrieve_1.RegistryAccess();
20
+ async function resolveRef(refOrig, dir) {
21
+ if (refOrig === '') {
22
+ return '';
23
+ }
24
+ const getCommitLog = async (ref) => {
25
+ try {
26
+ const [log] = await isomorphic_git_1.default.log({
27
+ fs,
28
+ dir,
29
+ ref,
30
+ depth: 1,
31
+ });
32
+ return { oid: log.oid, parents: log.commit.parent };
33
+ }
34
+ catch (error) {
35
+ throw new Error(`ambiguous argument '${ref}': unknown revision or path not in the working tree.
36
+ See more help with --help`);
37
+ }
38
+ };
39
+ if (!['~', '^'].some((el) => refOrig.includes(el))) {
40
+ return (await getCommitLog(refOrig)).oid;
41
+ }
42
+ const firstIndex = [refOrig.indexOf('^'), refOrig.indexOf('~')]
43
+ .filter((a) => a >= 0)
44
+ .reduce((a, b) => Math.min(a, b));
45
+ let path = refOrig.substring(firstIndex);
46
+ let ref = refOrig.substring(0, firstIndex);
47
+ while (path.length && ref !== undefined) {
48
+ if (path.substring(0, 1) === '^') {
49
+ path = path.substring(1);
50
+ let next = Number(path.substring(0, 1));
51
+ path = next ? path.substring(1) : path;
52
+ next = next ? next : 1;
53
+ ref = (await getCommitLog(ref)).parents[next - 1];
54
+ }
55
+ else if (path.substring(0, 1) === '~') {
56
+ path = path.substring(1);
57
+ let next = Number(path.substring(0, 1));
58
+ path = next ? path.substring(1) : path;
59
+ next = next ? next : 1;
60
+ for (let index = 0; index <= next - 1; index++) {
61
+ ref = (await getCommitLog(ref)).parents[0];
62
+ }
63
+ }
64
+ else {
65
+ ref = undefined;
66
+ }
67
+ }
68
+ if (ref === undefined) {
69
+ throw new Error(`ambiguous argument '${refOrig}': unknown revision or path not in the working tree.`);
70
+ }
71
+ return ref;
72
+ }
73
+ async function getGitArgsFromArgv(ref1, ref2, argv, dir) {
74
+ const newArgv = [];
75
+ while (argv.length) {
76
+ let [e] = argv.splice(0, 1);
77
+ if (e.includes('=')) {
78
+ // skip parameter=value
79
+ }
80
+ else if (e.includes('-')) {
81
+ // remove value
82
+ [e] = argv.splice(0, 1);
83
+ }
84
+ else {
85
+ newArgv.push(e);
86
+ }
87
+ }
88
+ argv = newArgv;
89
+ let refString = ref1;
90
+ const a = argv.join('.').split('.');
91
+ if ((a.length === 3 || a.length === 4) && typeof ref2 === 'undefined') {
92
+ ref1 = a[0];
93
+ ref2 = a[a.length - 1];
94
+ }
95
+ else if (a.length === 2 && typeof ref2 !== 'undefined') {
96
+ refString = `${ref1}..${ref2}`;
97
+ }
98
+ else if (a.length === 1) {
99
+ ref2 = '';
100
+ }
101
+ else {
102
+ throw new Error(`Ambiguous ${util.format('argument%s', argv.length === 1 ? '' : 's')}: ${argv.join(', ')}
103
+ See more help with --help`);
104
+ }
105
+ ref1 = await resolveRef(ref1, dir);
106
+ ref2 = await resolveRef(ref2, dir);
107
+ if (a.length === 4) {
108
+ ref1 = (await isomorphic_git_1.default.findMergeBase({
109
+ fs,
110
+ dir,
111
+ oids: [ref2, ref1],
112
+ }))[0];
113
+ }
114
+ return { ref1, ref2, refString };
115
+ }
116
+ exports.getGitArgsFromArgv = getGitArgsFromArgv;
20
117
  function ensureOSPath(path) {
21
118
  return path.split(path_1.posix.sep).join(path_1.sep);
22
119
  }
@@ -29,7 +126,6 @@ async function createVirtualTreeContainer(ref, dir, modifiedFiles) {
29
126
  var _a, _b, _c, _d;
30
127
  const paths = (await isomorphic_git_1.default.listFiles({ fs, dir, ref })).map((p) => ensureOSPath(p));
31
128
  const oid = await isomorphic_git_1.default.resolveRef({ fs, dir, ref });
32
- (0, exports.debug)({ modifiedFiles });
33
129
  const virtualDirectoryByFullPath = new Map();
34
130
  for (const filename of paths) {
35
131
  let dirPath = (0, path_1.dirname)(filename);
@@ -142,7 +238,6 @@ async function getGitDiff(sfdxProjectFolders, ref1, ref2, dir) {
142
238
  .filter((l) => sfdxProjectFolders.some((f) => {
143
239
  return l.path.startsWith(f);
144
240
  }));
145
- const renames = [];
146
241
  gitLines = gitLines.filter((line) => {
147
242
  if (line.status === 'D') {
148
243
  for (const sfdxFolder of sfdxProjectFolders) {
@@ -150,70 +245,83 @@ async function getGitDiff(sfdxProjectFolders, ref1, ref2, dir) {
150
245
  const filePath = line.path.replace(line.path.startsWith(defaultFolder) ? defaultFolder : sfdxFolder, '');
151
246
  const target = gitLines.find((t) => t.path.endsWith(filePath) && t.status === 'A');
152
247
  if (target) {
153
- renames.push({ from: line.path, to: target.path });
248
+ (0, exports.debug)(`rename: ${line.path} -> ${target.path}`);
154
249
  return false;
155
250
  }
156
251
  }
157
252
  }
158
253
  return true;
159
254
  });
160
- (0, exports.debug)({ gitLines, renames, sfdxProjectFolders });
255
+ (0, exports.debug)({ gitLines });
161
256
  return gitLines;
162
257
  }
163
258
  exports.getGitDiff = getGitDiff;
164
259
  async function getGitResults(gitLines, ref1VirtualTreeContainer, ref2VirtualTreeContainer) {
165
260
  const results = {
166
261
  manifest: new source_deploy_retrieve_1.ComponentSet(undefined, registryAccess),
167
- destructiveChanges: new source_deploy_retrieve_1.ComponentSet(undefined, registryAccess),
168
- unchanged: [],
169
- ignored: { ref1: [], ref2: [] },
170
- counts: { added: 0, deleted: 0, modified: 0, unchanged: 0, ignored: 0, error: 0 },
171
- errors: [],
262
+ output: {
263
+ unchanged: [],
264
+ ignored: { ref1: [], ref2: [] },
265
+ counts: { added: 0, deleted: 0, modified: 0, unchanged: 0, ignored: 0, error: 0 },
266
+ errors: [],
267
+ },
172
268
  };
173
269
  const ref1Resolver = new source_deploy_retrieve_1.MetadataResolver(registryAccess, ref1VirtualTreeContainer);
174
270
  const ref2Resolver = new source_deploy_retrieve_1.MetadataResolver(registryAccess, ref2VirtualTreeContainer);
271
+ const getComponentsFromPath = (resolver, path) => {
272
+ let result = [];
273
+ try {
274
+ result = resolver.getComponentsFromPath(path);
275
+ }
276
+ catch (error) {
277
+ results.output.counts.error++;
278
+ results.output.errors.push(error);
279
+ }
280
+ return result;
281
+ };
175
282
  for (const [, { status, path }] of gitLines.entries()) {
176
283
  if (status === 'D') {
177
- for (const c of ref1Resolver.getComponentsFromPath(path)) {
284
+ for (const c of getComponentsFromPath(ref1Resolver, path)) {
178
285
  if (c.xml === path || gitLines.find((x) => x.path === c.xml)) {
179
- results.destructiveChanges.add(c, source_deploy_retrieve_1.DestructiveChangesType.POST);
180
- results.counts.deleted++;
286
+ results.manifest.add(c, source_deploy_retrieve_1.DestructiveChangesType.POST);
287
+ results.output.counts.deleted++;
181
288
  }
182
289
  else {
183
290
  try {
291
+ // in case a binary source file of a bundle was deleted, check if the bundle ist still valid and update instead of delete
184
292
  ref2Resolver.getComponentsFromPath(c.xml);
185
293
  results.manifest.add(c);
186
- results.counts.added++;
294
+ results.output.counts.added++;
187
295
  }
188
296
  catch (error) {
189
- results.counts.error++;
190
- results.errors.push(error);
297
+ results.output.counts.error++;
298
+ results.output.errors.push(error);
191
299
  }
192
300
  }
193
301
  }
194
302
  }
195
303
  else if (status === 'A') {
196
- for (const c of ref2Resolver.getComponentsFromPath(path)) {
304
+ for (const c of getComponentsFromPath(ref2Resolver, path)) {
197
305
  results.manifest.add(c);
198
- results.counts.added++;
306
+ results.output.counts.added++;
199
307
  }
200
308
  }
201
309
  else {
202
310
  const check = await analyzeFile(path, ref1VirtualTreeContainer, ref2VirtualTreeContainer);
203
311
  if (check.status === 0) {
204
- for (const c of ref2Resolver.getComponentsFromPath(path)) {
312
+ for (const c of getComponentsFromPath(ref2Resolver, path)) {
205
313
  results.manifest.add(c);
206
- results.counts.added++;
314
+ results.output.counts.added++;
207
315
  }
208
316
  }
209
317
  else if (check.status === -1) {
210
- results.unchanged.push(path);
211
- results.counts.unchanged++;
318
+ results.output.unchanged.push(path);
319
+ results.output.counts.unchanged++;
212
320
  }
213
321
  else {
214
- results.counts.modified++;
322
+ results.output.counts.modified++;
215
323
  for (const c of check.toDestructiveChanges) {
216
- results.destructiveChanges.add(c, source_deploy_retrieve_1.DestructiveChangesType.POST);
324
+ results.manifest.add(c, source_deploy_retrieve_1.DestructiveChangesType.POST);
217
325
  }
218
326
  for (const c of check.toManifest) {
219
327
  results.manifest.add(c);
@@ -221,35 +329,34 @@ async function getGitResults(gitLines, ref1VirtualTreeContainer, ref2VirtualTree
221
329
  }
222
330
  }
223
331
  }
224
- results.ignored = {
332
+ results.output.ignored = {
225
333
  ref1: Array.from(ref1Resolver.forceIgnoredPaths),
226
334
  ref2: Array.from(ref2Resolver.forceIgnoredPaths),
227
335
  };
228
- results.counts.ignored = ref1Resolver.forceIgnoredPaths.size + ref2Resolver.forceIgnoredPaths.size;
336
+ results.output.counts.ignored = ref1Resolver.forceIgnoredPaths.size + ref2Resolver.forceIgnoredPaths.size;
229
337
  return results;
230
338
  }
231
339
  exports.getGitResults = getGitResults;
232
- function buildManifestComponentSet(cs, forDestructiveChanges = false) {
233
- let csArray = cs.toArray();
340
+ function fixComponentSetChilds(cs) {
341
+ let sourceComponents = cs.getSourceComponents();
234
342
  // SDR library is more strict and avoids fixes like this
235
- if (!forDestructiveChanges) {
236
- const childsTobeReplacedByParent = [
237
- ...Object.keys(source_deploy_retrieve_1.registry.types.workflow.children.types),
238
- ...Object.keys(source_deploy_retrieve_1.registry.types.sharingrules.children.types),
239
- ];
240
- csArray = csArray.map((component) => {
241
- if (childsTobeReplacedByParent.includes(component.type.id)) {
242
- return component.parent;
243
- }
244
- return component;
245
- });
246
- }
247
- return new source_deploy_retrieve_1.ComponentSet(csArray.sort((a, b) => {
343
+ const childsTobeReplacedByParent = [
344
+ ...Object.keys(source_deploy_retrieve_1.registry.types.workflow.children.types),
345
+ ...Object.keys(source_deploy_retrieve_1.registry.types.sharingrules.children.types),
346
+ ];
347
+ sourceComponents = sourceComponents.map((component) => {
348
+ if (!component.isMarkedForDelete() && childsTobeReplacedByParent.includes(component.type.id)) {
349
+ (0, exports.debug)(`replace: ${component.type.name}:${component.fullName} -> ${component.parent.type.name}:${component.parent.fullName}`);
350
+ return component.parent;
351
+ }
352
+ return component;
353
+ });
354
+ return new source_deploy_retrieve_1.ComponentSet(sourceComponents.toArray().sort((a, b) => {
248
355
  if (a.type.name === b.type.name) {
249
356
  return a.fullName.toLowerCase() > b.fullName.toLowerCase() ? 1 : -1;
250
357
  }
251
358
  return a.type.name.toLowerCase() > b.type.name.toLowerCase() ? 1 : -1;
252
359
  }), registryAccess);
253
360
  }
254
- exports.buildManifestComponentSet = buildManifestComponentSet;
361
+ exports.fixComponentSetChilds = fixComponentSetChilds;
255
362
  //# sourceMappingURL=gitdiff.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gitdiff.js","sourceRoot":"","sources":["../../src/utils/gitdiff.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA2D;AAC3D,+BAA+B;AAC/B,yCAAyC;AACzC,+EAU4C;AAC5C,4EAAoF;AACpF,iCAAuC;AACvC,mDAAiC;AAEpB,QAAA,mBAAmB,GAAG,4CAAe,CAAC;AAEtC,QAAA,KAAK,GAAG,IAAA,aAAK,EAAC,0BAA0B,CAAC,CAAC;AAEvD,MAAM,cAAc,GAAG,IAAI,uCAAc,EAAE,CAAC;AAgC5C,SAAgB,YAAY,CAAC,IAAY;IACvC,OA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SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAC5F,IAAA,aAAK,EACH,YAAY,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,CACtH,CAAC;YACF,OAAO,SAAS,CAAC,MAAM,CAAC;SACzB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,qCAAY,CACrB,gBAAgB,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACvC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE;YAC/B,OAAO,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACrE;QACD,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC,CAAC,EACF,cAAc,CACf,CAAC;AACJ,CAAC;AA1BD,sDA0BC"}
@@ -18,4 +18,5 @@ uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)
18
18
  `$ sfdx jayree:manifest:git:diff branchA...branchB
19
19
  uses the diff of what is unique in branchB (REF2)`,
20
20
  ],
21
+ outputdir: 'directory to save the created manifest files',
21
22
  };
@@ -1 +1 @@
1
- {"version":"1.0.6","commands":{"jayree:manifest:cleanup":{"id":"jayree:manifest:cleanup","description":"removes those tags from a manifest file that are present in a second manifest file\nUse this command to remove components or metadata types from a manifes file.\nIf the 'cleanup' manifest file (--file) doesn't exist, a template file is created, which can then be modified.","usage":"<%= command.id %> [-x <filepath>] [-f <filepath>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":[],"examples":["$ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"manifest":{"name":"manifest","type":"option","char":"x","description":"path to the manifest file"},"file":{"name":"file","type":"option","char":"f","description":"path to the second 'cleanup' manifest file"}},"args":[]},"jayree:manifest:generate":{"id":"jayree:manifest:generate","description":"generate a complete manifest file form the specified org\nUse this command to generate a manifest file based on an existing org.","usage":"<%= command.id %> [-q <array>] [-c] [-w] [--includeflowversions] [-f <string>] [-x] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":["jayree:packagexml"],"examples":["$ sfdx jayree:manifest:generate --targetusername myOrg@example.com","<?xml version='1.0' encoding='UTF-8'?>","<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"quickfilter":{"name":"quickfilter","type":"option","char":"q","description":"csv separated list of metadata type, member or file names to filter on"},"matchcase":{"name":"matchcase","type":"boolean","char":"c","description":"enable 'match case' for the quickfilter","allowNo":false},"matchwholeword":{"name":"matchwholeword","type":"boolean","char":"w","description":"enable 'match whole word' for the quickfilter","allowNo":false},"includeflowversions":{"name":"includeflowversions","type":"boolean","description":"include flow versions as with api version 43.0","allowNo":false},"file":{"name":"file","type":"option","char":"f","description":"write to 'file' instead of stdout"},"excludemanaged":{"name":"excludemanaged","type":"boolean","char":"x","description":"exclude managed packages from output","allowNo":false}},"args":[]},"jayree:manifest:git:diff":{"id":"jayree:manifest:git:diff","description":"create a manifest and destructiveChanges manifest using 'git diff' data\nUse this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two git refs.\n\nYou can use all ways to spell <commit> which are valid for 'git diff'.\n(See https://git-scm.com/docs/git-diff)","usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":[],"examples":["$ sfdx jayree:manifest:git:diff <commit> <commit>","$ sfdx jayree:manifest:git:diff <commit>..<commit>","uses the changes between two arbitrary <commit>","","$ sfdx jayree:manifest:git:diff <commit>...<commit>","uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>."," ","$ sfdx jayree:manifest:git:diff branchA..branchB","uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)","","$ sfdx jayree:manifest:git:diff branchA...branchB","uses the diff of what is unique in branchB (REF2)"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[{"name":"ref1","description":"base commit or branch","required":true,"hidden":false},{"name":"ref2","description":"commit or branch to compare to the base commit","required":false,"hidden":false}]}}}
1
+ {"version":"2.0.0","commands":{"jayree:manifest:cleanup":{"id":"jayree:manifest:cleanup","description":"removes those tags from a manifest file that are present in a second manifest file\nUse this command to remove components or metadata types from a manifes file.\nIf the 'cleanup' manifest file (--file) doesn't exist, a template file is created, which can then be modified.","usage":"<%= command.id %> [-x <filepath>] [-f <filepath>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":[],"examples":["$ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"manifest":{"name":"manifest","type":"option","char":"x","description":"path to the manifest file"},"file":{"name":"file","type":"option","char":"f","description":"path to the second 'cleanup' manifest file"}},"args":[]},"jayree:manifest:generate":{"id":"jayree:manifest:generate","description":"generate a complete manifest file form the specified org\nUse this command to generate a manifest file based on an existing org.","usage":"<%= command.id %> [-q <array>] [-c] [-w] [--includeflowversions] [-f <string>] [-x] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":["jayree:packagexml"],"examples":["$ sfdx jayree:manifest:generate --targetusername myOrg@example.com","<?xml version='1.0' encoding='UTF-8'?>","<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"quickfilter":{"name":"quickfilter","type":"option","char":"q","description":"csv separated list of metadata type, member or file names to filter on"},"matchcase":{"name":"matchcase","type":"boolean","char":"c","description":"enable 'match case' for the quickfilter","allowNo":false},"matchwholeword":{"name":"matchwholeword","type":"boolean","char":"w","description":"enable 'match whole word' for the quickfilter","allowNo":false},"includeflowversions":{"name":"includeflowversions","type":"boolean","description":"include flow versions as with api version 43.0","allowNo":false},"file":{"name":"file","type":"option","char":"f","description":"write to 'file' instead of stdout"},"excludemanaged":{"name":"excludemanaged","type":"boolean","char":"x","description":"exclude managed packages from output","allowNo":false}},"args":[]},"jayree:manifest:git:diff":{"id":"jayree:manifest:git:diff","description":"create a manifest and destructiveChanges manifest using 'git diff' data\nUse this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two git refs.\n\nYou can use all ways to spell <commit> which are valid for 'git diff'.\n(See https://git-scm.com/docs/git-diff)","usage":"<%= command.id %> [-o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":[],"examples":["$ sfdx jayree:manifest:git:diff <commit> <commit>","$ sfdx jayree:manifest:git:diff <commit>..<commit>","uses the changes between two arbitrary <commit>","","$ sfdx jayree:manifest:git:diff <commit>...<commit>","uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>."," ","$ sfdx jayree:manifest:git:diff branchA..branchB","uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)","","$ sfdx jayree:manifest:git:diff branchA...branchB","uses the diff of what is unique in branchB (REF2)"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"outputdir":{"name":"outputdir","type":"option","char":"o","description":"directory to save the created manifest files","default":""}},"args":[{"name":"ref1","description":"base commit or branch","required":true,"hidden":false},{"name":"ref2","description":"commit or branch to compare to the base commit","required":false,"hidden":false}]}}}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@jayree/sfdx-plugin-manifest",
3
3
  "description": "jayree sfdx manifest commands",
4
- "version": "1.0.6",
4
+ "version": "2.0.0",
5
5
  "author": "jayree",
6
6
  "bugs": "https://github.com/jayree/sfdx-plugin-manifest/issues",
7
7
  "dependencies": {
8
- "@oclif/command": "^1.8.0",
9
- "@oclif/config": "^1.17.0",
8
+ "@oclif/command": "^1.8.3",
9
+ "@oclif/config": "^1.17.1",
10
10
  "@oclif/errors": "^1.3.5",
11
- "@salesforce/command": "^4.1.4",
12
- "@salesforce/core": "^2.28.4",
11
+ "@salesforce/command": "^4.1.5",
12
+ "@salesforce/core": "^2.29.0",
13
13
  "@salesforce/kit": "^1.5.18",
14
- "@salesforce/source-deploy-retrieve": "^5.5.0",
14
+ "@salesforce/source-deploy-retrieve": "^5.6.3",
15
15
  "@salesforce/ts-types": "^1.5.20",
16
16
  "cli-ux": "^5.6.3",
17
17
  "debug": "^4.3.2",
@@ -20,16 +20,16 @@
20
20
  "fs-extra": "^10.0.0",
21
21
  "isomorphic-git": "^1.10.1",
22
22
  "jsforce": "^1.10.1",
23
- "listr2": "^3.13.3",
24
- "marked": "^4.0.3",
23
+ "listr2": "^3.13.4",
24
+ "marked": "^4.0.4",
25
25
  "marked-terminal": "^4.2.0",
26
26
  "tslib": "^2.3.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@commitlint/cli": "^14.1.0",
30
- "@commitlint/config-conventional": "^14.1.0",
29
+ "@commitlint/cli": "^15.0.0",
30
+ "@commitlint/config-conventional": "^15.0.0",
31
31
  "@oclif/dev-cli": "^1.26.0",
32
- "@oclif/plugin-help": "^3.2.4",
32
+ "@oclif/plugin-help": "^3.2.5",
33
33
  "@oclif/test": "^1.2.8",
34
34
  "@salesforce/dev-config": "^2.1.2",
35
35
  "@salesforce/dev-scripts": "^0.9.18",
@@ -39,14 +39,14 @@
39
39
  "@types/debug": "^4.1.7",
40
40
  "@types/fs-extra": "^9.0.13",
41
41
  "@types/jsforce": "^1.9.35",
42
- "@types/marked": "^4.0.0",
42
+ "@types/marked": "^4.0.1",
43
43
  "@types/mocha": "^9.0.0",
44
- "@types/node": "^16.11.7",
44
+ "@types/node": "^16.11.9",
45
45
  "@types/sinon": "10.0.6",
46
46
  "@typescript-eslint/eslint-plugin": "^5.4.0",
47
47
  "@typescript-eslint/parser": "^5.4.0",
48
48
  "chai": "^4.3.4",
49
- "eslint": "^8.2.0",
49
+ "eslint": "^8.3.0",
50
50
  "eslint-config-oclif": "^4.0",
51
51
  "eslint-config-prettier": "^8.3.0",
52
52
  "eslint-config-salesforce": "^0.1.6",
@@ -66,9 +66,9 @@
66
66
  "prettier": "^2.4.1",
67
67
  "pretty-quick": "^3.1.2",
68
68
  "sinon": "12.0.1",
69
- "source-map-support": "~0.5.20",
69
+ "source-map-support": "~0.5.21",
70
70
  "ts-node": "^10.4.0",
71
- "typescript": "^4.4.4"
71
+ "typescript": "^4.5.2"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=14.18.1"