@jayree/sfdx-plugin-manifest 2.3.11 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [2.4.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.3.12...v2.4.0) (2022-11-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **manifest:git:diff:** add sourcepath to limit the diff ([f50feee](https://github.com/jayree/sfdx-plugin-manifest/commit/f50feee58df4842419a84bd810cca0b2c88e481c))
7
+
8
+ ## [2.3.12](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.3.11...v2.3.12) (2022-11-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** bump @salesforce/command from 5.2.20 to 5.2.24 ([#412](https://github.com/jayree/sfdx-plugin-manifest/issues/412)) ([00c4eb9](https://github.com/jayree/sfdx-plugin-manifest/commit/00c4eb9b68928accff5c9650b147283af889bfb8))
14
+ * **deps:** bump @salesforce/source-deploy-retrieve from 7.5.6 to 7.5.9 ([#411](https://github.com/jayree/sfdx-plugin-manifest/issues/411)) ([aecfe7f](https://github.com/jayree/sfdx-plugin-manifest/commit/aecfe7f727efa3597b31f58872f6ce81c497fd85))
15
+
1
16
  ## [2.3.11](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.3.10...v2.3.11) (2022-11-11)
2
17
 
3
18
 
package/README.md CHANGED
@@ -22,7 +22,7 @@ $ sfdx plugins:install @jayree/sfdx-plugin-manifest
22
22
  $ sfdx jayree:[COMMAND]
23
23
  running command...
24
24
  $ sfdx plugins
25
- @jayree/sfdx-plugin-manifest 2.3.11
25
+ @jayree/sfdx-plugin-manifest 2.4.0
26
26
  $ sfdx help jayree:[COMMAND]
27
27
  USAGE
28
28
  $ sfdx jayree:COMMAND
@@ -63,7 +63,7 @@ EXAMPLES
63
63
  $ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
64
64
  ```
65
65
 
66
- _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.3.11/src/commands/jayree/manifest/cleanup.ts)_
66
+ _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.4.0/src/commands/jayree/manifest/cleanup.ts)_
67
67
 
68
68
  ### `sfdx jayree:manifest:generate`
69
69
 
@@ -106,7 +106,7 @@ EXAMPLES
106
106
  <Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
107
107
  ```
108
108
 
109
- _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.3.11/src/commands/jayree/manifest/generate.ts)_
109
+ _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.4.0/src/commands/jayree/manifest/generate.ts)_
110
110
 
111
111
  ### `sfdx jayree:manifest:git:diff`
112
112
 
@@ -114,7 +114,7 @@ create a manifest and destructiveChanges manifest using 'git diff' data
114
114
 
115
115
  ```
116
116
  USAGE
117
- $ sfdx jayree:manifest:git:diff [-o <string>] [-d] [--json] [--loglevel
117
+ $ sfdx jayree:manifest:git:diff [-p <array>] [-o <string>] [-d] [--json] [--loglevel
118
118
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
119
119
 
120
120
  ARGUMENTS
@@ -126,6 +126,8 @@ FLAGS
126
126
  only (package.xml will be empty)
127
127
  -o, --outputdir=<value> directory to save the created
128
128
  manifest files
129
+ -p, --sourcepath=<value> comma-separated list of source file
130
+ paths to limit the diff
129
131
  --json format output as json
130
132
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
131
133
  this command invocation
@@ -158,5 +160,5 @@ EXAMPLES
158
160
  uses the diff of what is unique in branchB (REF2)
159
161
  ```
160
162
 
161
- _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.3.11/src/commands/jayree/manifest/git/diff.ts)_
163
+ _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.4.0/src/commands/jayree/manifest/git/diff.ts)_
162
164
  <!-- commandsstop -->
package/bin/is-sfdx.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ process.exit(process.env.SFDX_BINPATH || process.env.SFDX_UPDATE_INSTRUCTIONS ? 0 : 1);
@@ -23,5 +23,6 @@ export default class GitDiff extends JayreeSfdxCommand {
23
23
  private ref2VirtualTreeContainer;
24
24
  private componentSet;
25
25
  private outputErrors;
26
+ private fsPaths;
26
27
  run(): Promise<AnyJson>;
27
28
  }
@@ -6,8 +6,9 @@
6
6
  */
7
7
  import os from 'os';
8
8
  import { join, dirname, relative } from 'path';
9
+ import path from 'path';
9
10
  import { flags } from '@salesforce/command';
10
- import { Messages } from '@salesforce/core';
11
+ import { Messages, SfError } from '@salesforce/core';
11
12
  import fs from 'fs-extra';
12
13
  import { Logger, Listr } from 'listr2';
13
14
  import kit from '@salesforce/kit';
@@ -27,6 +28,7 @@ const unexpectedArgument = async (input) => {
27
28
  };
28
29
  export default class GitDiff extends JayreeSfdxCommand {
29
30
  async run() {
31
+ const sourcepath = this.getFlag('sourcepath');
30
32
  this.destructiveChangesOnly = this.getFlag('destructivechangesonly');
31
33
  this.outputDir = this.getFlag('outputdir');
32
34
  this.projectRoot = this.project.getPath();
@@ -84,7 +86,17 @@ export default class GitDiff extends JayreeSfdxCommand {
84
86
  title: 'Analyze git diff results',
85
87
  skip: () => !this.gitLines.length,
86
88
  task: async (ctx, task) => {
87
- const { manifest, output } = await getGitResults(this.gitLines, this.ref1VirtualTreeContainer, this.ref2VirtualTreeContainer, this.destructiveChangesOnly);
89
+ if (sourcepath) {
90
+ this.fsPaths = sourcepath.map((filepath) => {
91
+ if (!this.ref1VirtualTreeContainer.exists(filepath) &&
92
+ !this.ref2VirtualTreeContainer.exists(filepath)) {
93
+ throw new SfError(`The sourcepath "${filepath}" is not a valid source file path.`);
94
+ }
95
+ return path.resolve(filepath);
96
+ });
97
+ debug(`fsPaths: ${this.fsPaths.join(', ')}`);
98
+ }
99
+ const { manifest, output } = await getGitResults(this.gitLines, this.ref1VirtualTreeContainer, this.ref2VirtualTreeContainer, this.destructiveChangesOnly, this.fsPaths);
88
100
  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}` : ''}`;
89
101
  this.outputErrors = output.errors;
90
102
  debug({ manifest });
@@ -168,6 +180,10 @@ GitDiff.args = [
168
180
  },
169
181
  ];
170
182
  GitDiff.flagsConfig = {
183
+ sourcepath: flags.array({
184
+ char: 'p',
185
+ description: messages.getMessage('sourcepath'),
186
+ }),
171
187
  outputdir: flags.string({
172
188
  char: 'o',
173
189
  description: messages.getMessage('outputdir'),
@@ -1 +1 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/manifest/git/diff.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EAAe,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,EAGL,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,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;;AAzOa,mBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,gBAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEzD,YAAI,GAAa;IAC7B;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,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;KAC/C,CAAC;IACF,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;QAC7C,OAAO,EAAE,EAAE;KACZ,CAAC;IACF,sBAAsB,EAAE,KAAK,CAAC,OAAO,CAAC;QACpC,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC1D,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC;AAEe,wBAAgB,GAAG,KAAK,CAAC;AACzB,8BAAsB,GAAG,KAAK,CAAC;AAC/B,uBAAe,GAAG,IAAI,CAAC"}
@@ -2,7 +2,7 @@ import { ComponentSet, VirtualTreeContainer, SourceComponent, NodeFSTreeContaine
2
2
  import Debug from 'debug';
3
3
  import git from 'isomorphic-git';
4
4
  export declare const debug: Debug.Debugger;
5
- declare type gitResults = {
5
+ type gitResults = {
6
6
  manifest: ComponentSet;
7
7
  output: {
8
8
  unchanged: string[];
@@ -21,12 +21,12 @@ declare type gitResults = {
21
21
  errors: string[];
22
22
  };
23
23
  };
24
- declare type git = {
24
+ type git = {
25
25
  ref1: string;
26
26
  ref2: string;
27
27
  refString: string;
28
28
  };
29
- export declare type gitLines = Array<{
29
+ export type gitLines = Array<{
30
30
  path: string;
31
31
  status: string;
32
32
  }>;
@@ -41,6 +41,6 @@ export declare function analyzeFile(path: string, ref1VirtualTreeContainer: Virt
41
41
  toDestructiveChanges?: SourceComponent[];
42
42
  }>;
43
43
  export declare function getGitDiff(sfdxProjectFolders: string[], ref1: string, ref2: string, dir: string): Promise<gitLines>;
44
- export declare function getGitResults(gitLines: gitLines, ref1VirtualTreeContainer: VirtualTreeContainer, ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer, destructiveChangesOnly: boolean): Promise<gitResults>;
44
+ export declare function getGitResults(gitLines: gitLines, ref1VirtualTreeContainer: VirtualTreeContainer, ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer, destructiveChangesOnly: boolean, fsPaths: string[]): Promise<gitResults>;
45
45
  export declare function fixComponentSetChilds(cs: ComponentSet): ComponentSet;
46
46
  export {};
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { join, basename, sep, posix, dirname } from 'path';
8
8
  import util from 'util';
9
+ import { resolve } from 'path';
9
10
  import fs from 'fs-extra';
10
11
  import equal from 'fast-deep-equal';
11
12
  import { ComponentSet, RegistryAccess, registry, VirtualTreeContainer, MetadataResolver, DestructiveChangesType, } from '@salesforce/source-deploy-retrieve';
@@ -246,7 +247,7 @@ export async function getGitDiff(sfdxProjectFolders, ref1, ref2, dir) {
246
247
  return gitLines;
247
248
  }
248
249
  // eslint-disable-next-line complexity
249
- export async function getGitResults(gitLines, ref1VirtualTreeContainer, ref2VirtualTreeContainer, destructiveChangesOnly) {
250
+ export async function getGitResults(gitLines, ref1VirtualTreeContainer, ref2VirtualTreeContainer, destructiveChangesOnly, fsPaths) {
250
251
  const results = {
251
252
  manifest: new ComponentSet(undefined, registryAccess),
252
253
  output: {
@@ -271,38 +272,43 @@ export async function getGitResults(gitLines, ref1VirtualTreeContainer, ref2Virt
271
272
  };
272
273
  const analyzedFilesPromises = [];
273
274
  for (const [, { status, path }] of gitLines.entries()) {
274
- if (status === 'D') {
275
- for (const c of getComponentsFromPath(ref1Resolver, path)) {
276
- if (c.xml === path || gitLines.find((x) => x.path === c.xml)) {
277
- results.manifest.add(c, DestructiveChangesType.POST);
278
- results.output.counts.deleted++;
279
- }
280
- else {
281
- try {
282
- // in case a binary source file of a bundle was deleted, check if the bundle ist still valid and update instead of delete
283
- ref2Resolver.getComponentsFromPath(c.xml);
284
- if (!destructiveChangesOnly) {
285
- results.manifest.add(c);
286
- results.output.counts.added++;
287
- }
275
+ if (!fsPaths || fsPaths.some((fsPath) => resolve(path).startsWith(fsPath))) {
276
+ if (status === 'D') {
277
+ for (const c of getComponentsFromPath(ref1Resolver, path)) {
278
+ if (c.xml === path || gitLines.find((x) => x.path === c.xml)) {
279
+ results.manifest.add(c, DestructiveChangesType.POST);
280
+ results.output.counts.deleted++;
288
281
  }
289
- catch (error) {
290
- results.output.counts.error++;
291
- results.output.errors.push(error);
282
+ else {
283
+ try {
284
+ // in case a binary source file of a bundle was deleted, check if the bundle ist still valid and update instead of delete
285
+ ref2Resolver.getComponentsFromPath(c.xml);
286
+ if (!destructiveChangesOnly) {
287
+ results.manifest.add(c);
288
+ results.output.counts.added++;
289
+ }
290
+ }
291
+ catch (error) {
292
+ results.output.counts.error++;
293
+ results.output.errors.push(error);
294
+ }
292
295
  }
293
296
  }
294
297
  }
295
- }
296
- else if (status === 'A') {
297
- if (!destructiveChangesOnly) {
298
- for (const c of getComponentsFromPath(ref2Resolver, path)) {
299
- results.manifest.add(c);
300
- results.output.counts.added++;
298
+ else if (status === 'A') {
299
+ if (!destructiveChangesOnly) {
300
+ for (const c of getComponentsFromPath(ref2Resolver, path)) {
301
+ results.manifest.add(c);
302
+ results.output.counts.added++;
303
+ }
301
304
  }
302
305
  }
306
+ else {
307
+ analyzedFilesPromises.push(analyzeFile(path, ref1VirtualTreeContainer, ref2VirtualTreeContainer));
308
+ }
303
309
  }
304
310
  else {
305
- analyzedFilesPromises.push(analyzeFile(path, ref1VirtualTreeContainer, ref2VirtualTreeContainer));
311
+ debug(`${path} not included in sourcepath`);
306
312
  }
307
313
  }
308
314
  for await (const check of analyzedFilesPromises) {
@@ -1 +1 @@
1
- {"version":3,"file":"gitdiff.js","sourceRoot":"","sources":["../../src/utils/gitdiff.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EACL,YAAY,EACZ,cAAc,EACd,QAAQ,EAER,oBAAoB,EAGpB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,gBAAgB,CAAC;AAEjC,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAEvD,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;AAoB5C,KAAK,UAAU,UAAU,CAAC,OAAe,EAAE,GAAW;IACpD,IAAI,OAAO,KAAK,EAAE,EAAE;QAClB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,YAAY,GAAG,KAAK,EAAE,GAAW,EAA+C,EAAE;QACtF,IAAI;YACF,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC;gBAC1B,EAAE;gBACF,G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D,IAAI,gBAAgB,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC;IAChD,wDAAwD;IACxD,MAAM,0BAA0B,GAAG;QACjC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;QACtD,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC1D,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,uBAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACrE,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC;KAClD,CAAC;IACF,gBAAgB,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QACpD,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,IAAI,0BAA0B,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAC5F,KAAK,CACH,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,YAAY,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAC5D,CAAC"}
@@ -7,5 +7,6 @@
7
7
  "$ sfdx jayree:manifest:git:diff branchA...branchB\nuses the diff of what is unique in branchB (REF2)"
8
8
  ],
9
9
  "outputdir": "directory to save the created manifest files",
10
+ "sourcepath": "comma-separated list of source file paths to limit the diff",
10
11
  "destructivechangesonly": "create a destructiveChanges manifest only (package.xml will be empty)"
11
12
  }
@@ -1 +1 @@
1
- {"version":"2.3.11","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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"path to the second 'cleanup' manifest file","multiple":false}},"args":[],"flagsConfig":{"manifest":{"kind":"filepath","char":"x","description":"path to the manifest file","input":[],"multiple":false,"type":"option"},"file":{"kind":"filepath","char":"f","description":"path to the second 'cleanup' manifest file","input":[],"multiple":false,"type":"option"}},"requiresUsername":false,"supportsDevhubUsername":false,"requiresProject":true},"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.","strict":true,"usage":"<%= command.id %> [-q <array>] [-c] [-w] [--includeflowversions] [-f <string>] [-x | -a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginAlias":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":[],"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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"quickfilter":{"name":"quickfilter","type":"option","char":"q","description":"csv separated list of metadata type, member or file names to filter on","multiple":false},"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","multiple":false},"excludemanaged":{"name":"excludemanaged","type":"boolean","char":"x","description":"exclude managed packages from output","allowNo":false,"exclusive":["excludeall"]},"excludeall":{"name":"excludeall","type":"boolean","char":"a","description":"exclude all packages from output","allowNo":false,"exclusive":["excludemanaged"]}},"args":[],"flagsConfig":{"quickfilter":{"kind":"array","char":"q","description":"csv separated list of metadata type, member or file names to filter on","input":[],"multiple":false,"type":"option"},"matchcase":{"kind":"boolean","char":"c","description":"enable 'match case' for the quickfilter","allowNo":false,"type":"boolean"},"matchwholeword":{"kind":"boolean","char":"w","description":"enable 'match whole word' for the quickfilter","allowNo":false,"type":"boolean"},"includeflowversions":{"kind":"boolean","description":"include flow versions as with api version 43.0","allowNo":false,"type":"boolean"},"file":{"kind":"string","char":"f","description":"write to 'file' instead of stdout","input":[],"multiple":false,"type":"option"},"excludemanaged":{"kind":"boolean","char":"x","description":"exclude managed packages from output","exclusive":["excludeall"],"allowNo":false,"type":"boolean"},"excludeall":{"kind":"boolean","char":"a","description":"exclude all packages from output","exclusive":["excludemanaged"],"allowNo":false,"type":"boolean"}},"requiresUsername":true,"supportsDevhubUsername":false,"requiresProject":false},"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)","strict":true,"usage":"<%= command.id %> [-o <string>] [-d] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginAlias":"@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)","multiple":false,"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","multiple":false,"default":""},"destructivechangesonly":{"name":"destructivechangesonly","type":"boolean","char":"d","description":"create a destructiveChanges manifest only (package.xml will be empty)","allowNo":false}},"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}],"flagsConfig":{"outputdir":{"kind":"string","char":"o","description":"directory to save the created manifest files","default":"","input":[],"multiple":false,"type":"option"},"destructivechangesonly":{"kind":"boolean","char":"d","description":"create a destructiveChanges manifest only (package.xml will be empty)","default":false,"allowNo":false,"type":"boolean"}},"requiresUsername":false,"supportsDevhubUsername":false,"requiresProject":true}}}
1
+ {"version":"2.4.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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"path to the second 'cleanup' manifest file","multiple":false}},"args":[],"flagsConfig":{"manifest":{"kind":"filepath","char":"x","description":"path to the manifest file","input":[],"multiple":false,"type":"option"},"file":{"kind":"filepath","char":"f","description":"path to the second 'cleanup' manifest file","input":[],"multiple":false,"type":"option"}},"requiresUsername":false,"supportsDevhubUsername":false,"requiresProject":true},"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.","strict":true,"usage":"<%= command.id %> [-q <array>] [-c] [-w] [--includeflowversions] [-f <string>] [-x | -a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginAlias":"@jayree/sfdx-plugin-manifest","pluginType":"core","aliases":[],"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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"quickfilter":{"name":"quickfilter","type":"option","char":"q","description":"csv separated list of metadata type, member or file names to filter on","multiple":false},"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","multiple":false},"excludemanaged":{"name":"excludemanaged","type":"boolean","char":"x","description":"exclude managed packages from output","allowNo":false,"exclusive":["excludeall"]},"excludeall":{"name":"excludeall","type":"boolean","char":"a","description":"exclude all packages from output","allowNo":false,"exclusive":["excludemanaged"]}},"args":[],"flagsConfig":{"quickfilter":{"kind":"array","char":"q","description":"csv separated list of metadata type, member or file names to filter on","input":[],"multiple":false,"type":"option"},"matchcase":{"kind":"boolean","char":"c","description":"enable 'match case' for the quickfilter","allowNo":false,"type":"boolean"},"matchwholeword":{"kind":"boolean","char":"w","description":"enable 'match whole word' for the quickfilter","allowNo":false,"type":"boolean"},"includeflowversions":{"kind":"boolean","description":"include flow versions as with api version 43.0","allowNo":false,"type":"boolean"},"file":{"kind":"string","char":"f","description":"write to 'file' instead of stdout","input":[],"multiple":false,"type":"option"},"excludemanaged":{"kind":"boolean","char":"x","description":"exclude managed packages from output","exclusive":["excludeall"],"allowNo":false,"type":"boolean"},"excludeall":{"kind":"boolean","char":"a","description":"exclude all packages from output","exclusive":["excludemanaged"],"allowNo":false,"type":"boolean"}},"requiresUsername":true,"supportsDevhubUsername":false,"requiresProject":false},"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)","strict":true,"usage":"<%= command.id %> [-p <array>] [-o <string>] [-d] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@jayree/sfdx-plugin-manifest","pluginAlias":"@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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcepath":{"name":"sourcepath","type":"option","char":"p","description":"comma-separated list of source file paths to limit the diff","multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"o","description":"directory to save the created manifest files","multiple":false,"default":""},"destructivechangesonly":{"name":"destructivechangesonly","type":"boolean","char":"d","description":"create a destructiveChanges manifest only (package.xml will be empty)","allowNo":false}},"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}],"flagsConfig":{"sourcepath":{"kind":"array","char":"p","description":"comma-separated list of source file paths to limit the diff","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"o","description":"directory to save the created manifest files","default":"","input":[],"multiple":false,"type":"option"},"destructivechangesonly":{"kind":"boolean","char":"d","description":"create a destructiveChanges manifest only (package.xml will be empty)","default":false,"allowNo":false,"type":"boolean"}},"requiresUsername":false,"supportsDevhubUsername":false,"requiresProject":true}}}
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@jayree/sfdx-plugin-manifest",
3
3
  "description": "A Salesforce CLI plugin containing commands for creating manifest files from Salesforce orgs or git commits of sfdx projects.",
4
- "version": "2.3.11",
4
+ "version": "2.4.0",
5
5
  "author": "jayree",
6
6
  "type": "module",
7
7
  "bugs": "https://github.com/jayree/sfdx-plugin-manifest/issues",
8
8
  "dependencies": {
9
9
  "@oclif/core": "^1.19.2",
10
- "@salesforce/command": "^5.2.20",
10
+ "@salesforce/command": "^5.2.24",
11
11
  "@salesforce/kit": "^1.7.1",
12
- "@salesforce/source-deploy-retrieve": "^7.5.6",
12
+ "@salesforce/source-deploy-retrieve": "^7.5.9",
13
13
  "@salesforce/ts-types": "^1.5.21",
14
14
  "debug": "^4.3.4",
15
15
  "fast-deep-equal": "^3.1.3",
@@ -25,13 +25,13 @@
25
25
  "devDependencies": {
26
26
  "@commitlint/cli": "^17.2.0",
27
27
  "@commitlint/config-conventional": "^17.2.0",
28
- "@oclif/plugin-command-snapshot": "^3.2.9",
29
- "@oclif/plugin-help": "^5.1.18",
28
+ "@oclif/plugin-command-snapshot": "^3.2.10",
29
+ "@oclif/plugin-help": "^5.1.19",
30
30
  "@salesforce/dev-config": "^3.1.0",
31
31
  "@salesforce/dev-scripts": "^3.1.0",
32
32
  "@salesforce/prettier-config": "^0.0.2",
33
33
  "@salesforce/ts-sinon": "^1.4.2",
34
- "@types/chai": "^4.3.3",
34
+ "@types/chai": "^4.3.4",
35
35
  "@types/debug": "^4.1.7",
36
36
  "@types/fs-extra": "^9.0.13",
37
37
  "@types/marked": "^4.0.7",
@@ -40,9 +40,9 @@
40
40
  "@types/node": "^18.11.9",
41
41
  "@types/semver": "^7.3.13",
42
42
  "@types/sinon": "10.0.13",
43
- "@typescript-eslint/eslint-plugin": "^5.42.1",
44
- "@typescript-eslint/parser": "^5.42.1",
45
- "chai": "^4.3.6",
43
+ "@typescript-eslint/eslint-plugin": "^5.43.0",
44
+ "@typescript-eslint/parser": "^5.43.0",
45
+ "chai": "^4.3.7",
46
46
  "eslint": "^8.27.0",
47
47
  "eslint-config-oclif": "^4.0",
48
48
  "eslint-config-prettier": "^8.5.0",
@@ -57,7 +57,7 @@
57
57
  "is-ci": "^3.0.1",
58
58
  "mocha": "^10.1.0",
59
59
  "nyc": "^15.1.0",
60
- "oclif": "^3.2.25",
60
+ "oclif": "^3.2.27",
61
61
  "patch-package": "^6.5.0",
62
62
  "pinst": "^3.0.0",
63
63
  "prettier": "^2.7.1",
@@ -66,7 +66,7 @@
66
66
  "sinon": "14.0.2",
67
67
  "source-map-support": "~0.5.21",
68
68
  "ts-node": "^10.9.1",
69
- "typescript": "^4.8.4"
69
+ "typescript": "^4.9.3"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=14.0.0"
@@ -75,7 +75,8 @@
75
75
  "/lib",
76
76
  "/messages",
77
77
  "/oclif.manifest.json",
78
- "/CHANGELOG.md"
78
+ "/CHANGELOG.md",
79
+ "/bin/is-sfdx.js"
79
80
  ],
80
81
  "homepage": "https://github.com/jayree/sfdx-plugin-manifest",
81
82
  "keywords": [
@@ -135,12 +136,12 @@
135
136
  "lint": "sf-lint",
136
137
  "lint-fix": "sf-lint --fix",
137
138
  "postcompile": "oclif readme",
138
- "_postinstall": "patch-package",
139
+ "_postinstall": "node ./bin/is-sfdx.js || patch-package",
139
140
  "postpack": "shx rm -f oclif.manifest.json",
140
141
  "postpublish": "pinst --enable",
141
142
  "posttest": "yarn lint && yarn test:deprecation-policy",
142
143
  "prepack": "sf-prepack",
143
- "prepare": "is-ci || husky install",
144
+ "prepare": "is-ci || node ./bin/is-sfdx.js || husky install",
144
145
  "prepublishOnly": "pinst --disable",
145
146
  "pretest": "sf-compile-test",
146
147
  "test": "sf-test",