@jayree/sfdx-plugin-manifest 2.2.2 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [2.2.5](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.2.4...v2.2.5) (2022-06-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix getPackageXml ([84236f3](https://github.com/jayree/sfdx-plugin-manifest/commit/84236f34bc1656adb6d6de2158b0039ce07e54c3))
7
+ * resolve components hotfix where type string is empty ([8e2a504](https://github.com/jayree/sfdx-plugin-manifest/commit/8e2a5043e4f5d028af4a57ee99ce78911da77c30))
8
+
9
+ ## [2.2.4](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.2.3...v2.2.4) (2022-05-29)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **deps:** bump fast-xml-parser from 4.0.7 to 4.0.8 ([627b3a0](https://github.com/jayree/sfdx-plugin-manifest/commit/627b3a05f0e69b80b7e7f611f9ea44fb186dabcf))
15
+
16
+ ## [2.2.3](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.2.2...v2.2.3) (2022-05-27)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **deps:** bump @salesforce/source-deploy-retrieve from 5.15.0 to 6.0.2 ([98a9f5c](https://github.com/jayree/sfdx-plugin-manifest/commit/98a9f5cec33250f4eda1dfda194f6a08acf8bd31))
22
+ * **deps:** bump marked from 4.0.15 to 4.0.16 ([cd081ed](https://github.com/jayree/sfdx-plugin-manifest/commit/cd081edd57a55d137977bd2d232927978e670f08))
23
+ * upgrade to oclif/core ([73adf80](https://github.com/jayree/sfdx-plugin-manifest/commit/73adf80f37fbd3f3ea09497bb2ee36f2acc57cfd))
24
+
1
25
  ## [2.2.2](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.2.1...v2.2.2) (2022-05-14)
2
26
 
3
27
 
package/README.md CHANGED
@@ -15,11 +15,11 @@ jayree sfdx manifest commands
15
15
  <!-- usage -->
16
16
  ```sh-session
17
17
  $ sfdx plugins:install @jayree/sfdx-plugin-manifest
18
- $ sfdx jayree:COMMAND
18
+ $ sfdx jayree:[COMMAND]
19
19
  running command...
20
20
  $ sfdx plugins
21
- @jayree/sfdx-plugin-manifest 2.2.2
22
- $ sfdx help jayree:COMMAND
21
+ @jayree/sfdx-plugin-manifest 2.2.5
22
+ $ sfdx help jayree:[COMMAND]
23
23
  USAGE
24
24
  $ sfdx jayree:COMMAND
25
25
  ...
@@ -36,29 +36,29 @@ removes those tags from a manifest file that are present in a second manifest fi
36
36
 
37
37
  ```
38
38
  USAGE
39
- $ sfdx jayree:manifest:cleanup [-x <filepath>] [-f <filepath>] [--json] [--loglevel
40
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
39
+ $ sfdx jayree:manifest:cleanup [-x <filepath>] [-f <filepath>] [--json] [--loglevel
40
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
41
41
 
42
- OPTIONS
43
- -f, --file=file path to the second 'cleanup'
42
+ FLAGS
43
+ -f, --file=<value> path to the second 'cleanup'
44
44
  manifest file
45
-
46
- -x, --manifest=manifest path to the manifest file
47
-
45
+ -x, --manifest=<value> path to the manifest file
48
46
  --json format output as json
49
-
50
47
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
51
48
  this command invocation
52
49
 
53
50
  DESCRIPTION
51
+ removes those tags from a manifest file that are present in a second manifest file
52
+
54
53
  Use this command to remove components or metadata types from a manifes file.
54
+
55
55
  If the 'cleanup' manifest file (--file) doesn't exist, a template file is created, which can then be modified.
56
56
 
57
- EXAMPLE
57
+ EXAMPLES
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/v2.2.2/commands/jayree/manifest/cleanup.ts)_
61
+ _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.2.5/src/commands/jayree/manifest/cleanup.ts)_
62
62
 
63
63
  ### `sfdx jayree:manifest:generate`
64
64
 
@@ -66,52 +66,43 @@ generate a complete manifest file form the specified org
66
66
 
67
67
  ```
68
68
  USAGE
69
- $ sfdx jayree:manifest:generate [-q <array>] [-c] [-w] [--includeflowversions] [-f <string>] [-x | -a] [-u <string>]
70
- [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
69
+ $ sfdx jayree:manifest:generate [-q <array>] [-c] [-w] [--includeflowversions] [-f <string>] [-x | -a] [-u <string>]
70
+ [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
71
71
 
72
- OPTIONS
72
+ FLAGS
73
73
  -a, --excludeall exclude all packages from output
74
-
75
74
  -c, --matchcase enable 'match case' for the
76
75
  quickfilter
77
-
78
- -f, --file=file write to 'file' instead of stdout
79
-
80
- -q, --quickfilter=quickfilter csv separated list of metadata type,
76
+ -f, --file=<value> write to 'file' instead of stdout
77
+ -q, --quickfilter=<value> csv separated list of metadata type,
81
78
  member or file names to filter on
82
-
83
- -u, --targetusername=targetusername username or alias for the target
79
+ -u, --targetusername=<value> username or alias for the target
84
80
  org; overrides default target org
85
-
86
81
  -w, --matchwholeword enable 'match whole word' for the
87
82
  quickfilter
88
-
89
83
  -x, --excludemanaged exclude managed packages from output
90
-
91
- --apiversion=apiversion override the api version used for
84
+ --apiversion=<value> override the api version used for
92
85
  api requests made by this command
93
-
94
86
  --includeflowversions include flow versions as with api
95
87
  version 43.0
96
-
97
88
  --json format output as json
98
-
99
89
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
100
90
  this command invocation
101
91
 
102
92
  DESCRIPTION
103
- Use this command to generate a manifest file based on an existing org.
93
+ generate a complete manifest file form the specified org
104
94
 
105
- ALIASES
106
- $ sfdx jayree:packagexml
95
+ Use this command to generate a manifest file based on an existing org.
107
96
 
108
97
  EXAMPLES
109
98
  $ sfdx jayree:manifest:generate --targetusername myOrg@example.com
99
+
110
100
  <?xml version='1.0' encoding='UTF-8'?>
101
+
111
102
  <Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
112
103
  ```
113
104
 
114
- _See code: [commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.2.2/commands/jayree/manifest/generate.ts)_
105
+ _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.2.5/src/commands/jayree/manifest/generate.ts)_
115
106
 
116
107
  ### `sfdx jayree:manifest:git:diff`
117
108
 
@@ -119,47 +110,57 @@ create a manifest and destructiveChanges manifest using 'git diff' data
119
110
 
120
111
  ```
121
112
  USAGE
122
- $ sfdx jayree:manifest:git:diff [-o <string>] [-d] [--json] [--loglevel
123
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
113
+ $ sfdx jayree:manifest:git:diff [-o <string>] [-d] [--json] [--loglevel
114
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
124
115
 
125
116
  ARGUMENTS
126
117
  REF1 base commit or branch
127
118
  REF2 commit or branch to compare to the base commit
128
119
 
129
- OPTIONS
120
+ FLAGS
130
121
  -d, --destructivechangesonly create a destructiveChanges manifest
131
122
  only (package.xml will be empty)
132
-
133
- -o, --outputdir=outputdir directory to save the created
123
+ -o, --outputdir=<value> directory to save the created
134
124
  manifest files
135
-
136
125
  --json format output as json
137
-
138
126
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
139
127
  this command invocation
140
128
 
141
129
  DESCRIPTION
142
- Use this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two
130
+ create a manifest and destructiveChanges manifest using 'git diff' data
131
+
132
+ Use this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two
143
133
  git refs.
144
134
 
145
135
  You can use all ways to spell <commit> which are valid for 'git diff'.
136
+
146
137
  (See https://git-scm.com/docs/git-diff)
147
138
 
148
139
  EXAMPLES
149
140
  $ sfdx jayree:manifest:git:diff <commit> <commit>
141
+
150
142
  $ sfdx jayree:manifest:git:diff <commit>..<commit>
143
+
151
144
  uses the changes between two arbitrary <commit>
152
145
 
146
+
147
+
153
148
  $ sfdx jayree:manifest:git:diff <commit>...<commit>
154
- uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both
155
- <commit>.
149
+
150
+ uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>.
151
+
156
152
 
153
+
157
154
  $ sfdx jayree:manifest:git:diff branchA..branchB
155
+
158
156
  uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)
159
157
 
158
+
159
+
160
160
  $ sfdx jayree:manifest:git:diff branchA...branchB
161
+
161
162
  uses the diff of what is unique in branchB (REF2)
162
163
  ```
163
164
 
164
- _See code: [commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.2.2/commands/jayree/manifest/git/diff.ts)_
165
+ _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.2.5/src/commands/jayree/manifest/git/diff.ts)_
165
166
  <!-- commandsstop -->
@@ -1,5 +1,5 @@
1
1
  import { FlagsConfig } from '@salesforce/command';
2
- import { FileProperties, ListMetadataQuery } from 'jsforce';
2
+ import { FileProperties, ListMetadataQuery } from '@salesforce/source-deploy-retrieve/lib/src/client/types';
3
3
  import { Connection } from '@salesforce/core';
4
4
  import { PackageManifestObject } from '@salesforce/source-deploy-retrieve';
5
5
  import { JayreeSfdxCommand } from '../../../jayreeSfdxCommand';
@@ -28,7 +28,6 @@ export interface FlowDefinitionRecord {
28
28
  };
29
29
  }
30
30
  export default class GeneratePackageXML extends JayreeSfdxCommand {
31
- static aliases: string[];
32
31
  static description: string;
33
32
  static examples: string[];
34
33
  protected static flagsConfig: FlagsConfig;
@@ -12,7 +12,66 @@ const core_1 = require("@salesforce/core");
12
12
  const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
13
13
  const utils_1 = require("@salesforce/source-deploy-retrieve/lib/src/utils");
14
14
  const fs = require("fs-extra");
15
+ const source_deploy_retrieve_2 = require("@salesforce/source-deploy-retrieve");
16
+ const utils_2 = require("@salesforce/source-deploy-retrieve/lib/src/utils");
15
17
  const jayreeSfdxCommand_1 = require("../../../jayreeSfdxCommand");
18
+ source_deploy_retrieve_2.ConnectionResolver.prototype.resolve = async function (componentFilter = (component) => !!component) {
19
+ var _a;
20
+ const Aggregator = [];
21
+ const childrenPromises = [];
22
+ const componentTypes = new Set();
23
+ const componentPromises = [];
24
+ for (const type of Object.values(source_deploy_retrieve_2.registry.types)) {
25
+ // eslint-disable-next-line
26
+ componentPromises.push(this.listMembers({ type: type.name }));
27
+ }
28
+ for await (const componentResult of componentPromises) {
29
+ for (const component of componentResult) {
30
+ let componentType;
31
+ if (typeof component.type === 'string' && component.type.length) {
32
+ // eslint-disable-next-line
33
+ componentType = this.registry.getTypeByName(component.type);
34
+ }
35
+ else {
36
+ // eslint-disable-next-line
37
+ componentType = this.registry.getTypeBySuffix((0, utils_2.extName)(component.fileName));
38
+ component.type = componentType.name;
39
+ }
40
+ Aggregator.push(component);
41
+ componentTypes.add(componentType);
42
+ const folderContentType = componentType.folderContentType;
43
+ if (folderContentType) {
44
+ childrenPromises.push(
45
+ // eslint-disable-next-line
46
+ this.listMembers({
47
+ // eslint-disable-next-line
48
+ type: this.registry.getTypeByName(folderContentType).name,
49
+ folder: component.fullName,
50
+ }));
51
+ }
52
+ }
53
+ }
54
+ for (const componentType of componentTypes) {
55
+ const childTypes = (_a = componentType.children) === null || _a === void 0 ? void 0 : _a.types;
56
+ if (childTypes) {
57
+ Object.values(childTypes).map((childType) => {
58
+ // eslint-disable-next-line
59
+ childrenPromises.push(this.listMembers({ type: childType.name }));
60
+ });
61
+ }
62
+ }
63
+ for await (const childrenResult of childrenPromises) {
64
+ Aggregator.push(...childrenResult);
65
+ }
66
+ return {
67
+ components: Aggregator.filter(componentFilter).map((component) => {
68
+ // eslint-disable-next-line
69
+ return { fullName: component.fullName, type: this.registry.getTypeByName(component.type) };
70
+ }),
71
+ // eslint-disable-next-line
72
+ apiVersion: this.connection.getApiVersion(),
73
+ };
74
+ };
16
75
  const registryAccess = new source_deploy_retrieve_1.RegistryAccess();
17
76
  core_1.Messages.importMessagesDirectory(__dirname);
18
77
  const messages = core_1.Messages.loadMessages('@jayree/sfdx-plugin-manifest', 'manifestgenerate');
@@ -20,7 +79,6 @@ class GeneratePackageXML extends jayreeSfdxCommand_1.JayreeSfdxCommand {
20
79
  // eslint-disable-next-line complexity
21
80
  async run() {
22
81
  var _a, _b, _c, _d;
23
- this.warnIfRunByAlias(GeneratePackageXML.aliases, GeneratePackageXML.id);
24
82
  await this.org.refreshAuth();
25
83
  const file = this.getFlag('file');
26
84
  this.ux.startSpinner(`Generating ${file || 'package.xml'}`);
@@ -89,10 +147,10 @@ class GeneratePackageXML extends jayreeSfdxCommand_1.JayreeSfdxCommand {
89
147
  componentSet.apiVersion = this.cacheConnection.getApiVersion();
90
148
  if (file) {
91
149
  await fs.ensureFile(file);
92
- await fs.writeFile(file, componentSet.getPackageXml());
150
+ await fs.writeFile(file, await componentSet.getPackageXml());
93
151
  }
94
152
  else {
95
- this.ux.log(componentSet.getPackageXml());
153
+ this.ux.log(await componentSet.getPackageXml());
96
154
  }
97
155
  this.ux.stopSpinner();
98
156
  return componentSet.getObject();
@@ -103,7 +161,7 @@ class GeneratePackageXML extends jayreeSfdxCommand_1.JayreeSfdxCommand {
103
161
  if (!apiVersion) {
104
162
  apiVersion = this.cacheConnection.getApiVersion();
105
163
  }
106
- members = (0, utils_1.normalizeToArray)(await this.cacheConnection.metadata.list(query, apiVersion));
164
+ members = (0, utils_1.normalizeToArray)((await this.cacheConnection.metadata.list(query, apiVersion)));
107
165
  }
108
166
  catch (error) {
109
167
  members = [];
@@ -113,7 +171,6 @@ class GeneratePackageXML extends jayreeSfdxCommand_1.JayreeSfdxCommand {
113
171
  }
114
172
  }
115
173
  exports.default = GeneratePackageXML;
116
- GeneratePackageXML.aliases = ['jayree:packagexml'];
117
174
  GeneratePackageXML.description = messages.getMessage('commandDescription');
118
175
  GeneratePackageXML.examples = messages.getMessage('examples').split(os.EOL);
119
176
  GeneratePackageXML.flagsConfig = {
@@ -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,+EAAyG;AACzG,4EAAoF;AACpF,+BAA+B;AAC/B,kEAA+D;AAE/D,MAAM,cAAc,GAAG,IAAI,uCAAc,EAAE,CAAC;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAAC;AAsB3F,MAAqB,kBAAmB,SAAQ,qCAAiB;IA6C/D,sCAAsC;IAC/B,KAAK,CAAC,GAAG;;QACd,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACzE,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QAE7B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAS,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,cAAc,IAAI,IAAI,aAAa,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,GAAG,CA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AC7D,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;CACH,CAAC;AAEe,mCAAgB,GAAG,IAAI,CAAC;AACxB,yCAAsB,GAAG,KAAK,CAAC;AAC/B,kCAAe,GAAG,KAAK,CAAC"}
@@ -1,16 +1,11 @@
1
+ import { ArgInput } from '@oclif/core/lib/interfaces';
1
2
  import { FlagsConfig } from '@salesforce/command';
2
3
  import { AnyJson } from '@salesforce/ts-types';
3
4
  import { JayreeSfdxCommand } from '../../../../jayreeSfdxCommand';
4
5
  export default class GitDiff extends JayreeSfdxCommand {
5
6
  static description: string;
6
7
  static examples: string[];
7
- static args: {
8
- name: string;
9
- required: boolean;
10
- description: string;
11
- parse: (input: string) => string;
12
- hidden: boolean;
13
- }[];
8
+ static args: ArgInput;
14
9
  protected static flagsConfig: FlagsConfig;
15
10
  protected static requiresUsername: boolean;
16
11
  protected static supportsDevhubUsername: boolean;
@@ -27,7 +27,8 @@ process.emitWarning = (warning) => {
27
27
  return original(warning);
28
28
  });
29
29
  };
30
- const unexpectedArgument = (input) => {
30
+ // eslint-disable-next-line @typescript-eslint/require-await
31
+ const unexpectedArgument = async (input) => {
31
32
  if (input.includes('-')) {
32
33
  throw new Error(`Unexpected argument: ${input}
33
34
  See more help with --help`);
@@ -41,7 +42,7 @@ class GitDiff extends jayreeSfdxCommand_1.JayreeSfdxCommand {
41
42
  this.outputDir = this.getFlag('outputdir');
42
43
  this.projectRoot = this.project.getPath();
43
44
  this.sfdxProjectFolders = this.project.getPackageDirectories().map((p) => (0, gitdiff_1.ensureOSPath)(p.path));
44
- this.sourceApiVersion = (await this.project.retrieveSfdxProjectJson()).getContents().sourceApiVersion;
45
+ this.sourceApiVersion = (await this.project.retrieveSfProjectJson()).getContents().sourceApiVersion;
45
46
  this.destructiveChanges = (0, path_1.join)(this.projectRoot, this.outputDir, 'destructiveChanges.xml');
46
47
  this.manifest = (0, path_1.join)(this.projectRoot, this.outputDir, 'package.xml');
47
48
  (0, gitdiff_1.debug)({
@@ -124,7 +125,7 @@ class GitDiff extends jayreeSfdxCommand_1.JayreeSfdxCommand {
124
125
  title: (0, path_1.relative)(this.projectRoot, this.manifest),
125
126
  task: async () => {
126
127
  await fs.ensureDir((0, path_1.dirname)(this.manifest));
127
- await fs.writeFile(this.manifest, this.componentSet.getPackageXml());
128
+ await fs.writeFile(this.manifest, await this.componentSet.getPackageXml());
128
129
  },
129
130
  options: { persistentOutput: true },
130
131
  },
@@ -133,7 +134,7 @@ class GitDiff extends jayreeSfdxCommand_1.JayreeSfdxCommand {
133
134
  skip: () => !this.componentSet.getTypesOfDestructiveChanges().length,
134
135
  task: async () => {
135
136
  await fs.ensureDir((0, path_1.dirname)(this.destructiveChanges));
136
- await fs.writeFile(this.destructiveChanges, this.componentSet.getPackageXml(undefined, source_deploy_retrieve_1.DestructiveChangesType.POST));
137
+ await fs.writeFile(this.destructiveChanges, await this.componentSet.getPackageXml(undefined, source_deploy_retrieve_1.DestructiveChangesType.POST));
137
138
  },
138
139
  options: { persistentOutput: true },
139
140
  },
@@ -1 +1 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/manifest/git/diff.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,+BAA+C;AAC/C,iDAAyD;AACzD,2CAA4C;AAE5C,+BAA+B;AAC/B,mCAAuC;AACvC,uCAAuC;AACvC,+EAK4C;AAC5C,qEAAkE;AAClE,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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AAQ,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"}
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const changelog: Hook<'changelog'>;
@@ -14,7 +14,6 @@ const debug_1 = require("debug");
14
14
  const TerminalRenderer = require("marked-terminal");
15
15
  const marked_1 = require("marked");
16
16
  const semver = require("semver");
17
- const cli_ux_1 = require("cli-ux");
18
17
  const debug = (0, debug_1.debug)('jayree:hooks');
19
18
  // original from https://github.com/salesforcecli/plugin-info/blob/main/src/shared/parseReleaseNotes.ts
20
19
  const parseReleaseNotes = (notes, version) => {
@@ -55,7 +54,8 @@ const parseReleaseNotes = (notes, version) => {
55
54
  }
56
55
  return tokens;
57
56
  };
58
- const changelog = function () {
57
+ // eslint-disable-next-line @typescript-eslint/require-await
58
+ const changelog = async function () {
59
59
  process.once('exit', () => {
60
60
  try {
61
61
  const pluginRootPath = (0, path_1.join)(__dirname, '..', '..');
@@ -82,7 +82,7 @@ const changelog = function () {
82
82
  renderer: new TerminalRenderer({ emoji: false }),
83
83
  });
84
84
  tokens.unshift(marked_1.marked.lexer(`# Changelog for '${name}':`)[0]);
85
- cli_ux_1.cli.log(marked_1.marked.parser(tokens));
85
+ this.log(marked_1.marked.parser(tokens));
86
86
  fs.writeJsonSync(versionFile, { version });
87
87
  }
88
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../src/hooks/changelog.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,+BAA4B;AAC5B,+BAA+B;AAE/B,iCAAuC;AACvC,oDAAqD;AACrD,mCAAgC;AAChC,iCAAiC;AACjC,mCAA6B;AAE7B,MAAM,KAAK,G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;QACjC,GAAG,MAAM,CAAC,IAAI,CAAC,iCAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;QACtD,GAAG,MAAM,CAAC,IAAI,CAAC,iCAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC1D,GAAG,MAAM,CAAC,IAAI,CAAC,iCAAQ,CAAC,KAAK,CAAC,uBAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACrE,GAAG,MAAM,CAAC,IAAI,CAAC,iCAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC;QACjD,GAAG,MAAM,CAAC,IAAI,CAAC,iCAAQ,CAAC,KAAK,CAAC,2BAA2B,CAAC,QAAQ,CAAC,KAAK,CAAC;KAC1E,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,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,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAC5D,CAAC;AArBD,sDAqBC"}
@@ -7,7 +7,7 @@ exports.cleanupManifestFile = void 0;
7
7
  * Licensed under the BSD 3-Clause license.
8
8
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
9
  */
10
- const cli_ux_1 = require("cli-ux");
10
+ const core_1 = require("@oclif/core");
11
11
  const fs = require("fs-extra");
12
12
  const utils_1 = require("@salesforce/source-deploy-retrieve/lib/src/utils");
13
13
  const fast_xml_parser_1 = require("fast-xml-parser");
@@ -25,7 +25,7 @@ function js2Manifest(jsData) {
25
25
  }
26
26
  async function cleanupManifestFile(manifest, ignoreManifest) {
27
27
  const { packageTypeMembers: manifestTypeMembers, version } = parseManifest(fs.readFileSync(manifest, 'utf8'));
28
- cli_ux_1.cli.log(`apply '${ignoreManifest}' to '${manifest}'`);
28
+ core_1.CliUx.ux.log(`apply '${ignoreManifest}' to '${manifest}'`);
29
29
  const typeMap = new Map();
30
30
  manifestTypeMembers.forEach((value) => {
31
31
  typeMap.set(value.name, (0, utils_1.normalizeToArray)(value.members));
@@ -41,12 +41,12 @@ async function cleanupManifestFile(manifest, ignoreManifest) {
41
41
  return includemembers.includes(value);
42
42
  });
43
43
  if (includedmembers.length) {
44
- cli_ux_1.cli.log('include only members ' + includedmembers.toString() + ' for type ' + types.name);
44
+ core_1.CliUx.ux.log('include only members ' + includedmembers.toString() + ' for type ' + types.name);
45
45
  typeMap.set(types.name, includedmembers);
46
46
  }
47
47
  }
48
48
  if (packageTypeMembers.includes('*') && packageTypeMembers.length === 1) {
49
- cli_ux_1.cli.log('exclude all members for type ' + types.name);
49
+ core_1.CliUx.ux.log('exclude all members for type ' + types.name);
50
50
  typeMap.delete(types.name);
51
51
  }
52
52
  if (!packageTypeMembers.includes('*')) {
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/utils/manifest.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mCAA6B;AAC7B,+BAA+B;AAC/B,4EAAoF;AAEpF,qDAAwD;AACxD,8EAAqG;AAUrG,SAAS,aAAa,CAAC,OAAe;IACpC,MAAM,MAAM,GAAG,IAAI,2BAAS,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,KA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,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACrC,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;oBAC/D,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAC7C,CAAC,CAAC,CAAC;gBACH,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;aAC1C;YAED,kBAAkB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACpC,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;oBAC1B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;iBACnD;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAyB,EAAE,CAAC;IAC7C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,EAAE;QACnD,IAAI,OAAO,CAAC,MAAM,EAAE;YAClB,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;SAC/C;KACF;IAED,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC1F,CAAC;AAvDD,kDAuDC"}
@@ -1 +1 @@
1
- {"version":"2.2.2","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 | -a] [-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},"excludeall":{"name":"excludeall","type":"boolean","char":"a","description":"exclude all 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>] [-d] [--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":""},"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}]}}}
1
+ {"version":"2.2.5","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}}}
package/package.json CHANGED
@@ -1,32 +1,29 @@
1
1
  {
2
2
  "name": "@jayree/sfdx-plugin-manifest",
3
3
  "description": "jayree sfdx manifest commands",
4
- "version": "2.2.2",
4
+ "version": "2.2.5",
5
5
  "author": "jayree",
6
6
  "bugs": "https://github.com/jayree/sfdx-plugin-manifest/issues",
7
7
  "dependencies": {
8
- "@oclif/config": "^1.18.3",
9
- "@salesforce/command": "^4.2.2",
10
- "@salesforce/kit": "^1.5.41",
11
- "@salesforce/source-deploy-retrieve": "^5.15.0",
8
+ "@oclif/core": "^1.9.0",
9
+ "@salesforce/command": "^5.1.3",
10
+ "@salesforce/kit": "^1.5.42",
11
+ "@salesforce/source-deploy-retrieve": "^6.0.2",
12
12
  "@salesforce/ts-types": "^1.5.20",
13
- "cli-ux": "^5.6.7",
14
13
  "debug": "^4.3.4",
15
14
  "fast-deep-equal": "^3.1.3",
16
- "fast-xml-parser": "^4.0.7",
15
+ "fast-xml-parser": "^4.0.8",
17
16
  "fs-extra": "^10.1.0",
18
- "isomorphic-git": "^1.17.2",
19
- "jsforce": "^1.11.0",
17
+ "isomorphic-git": "^1.17.3",
20
18
  "listr2": "^4.0.5",
21
- "marked": "^4.0.15",
19
+ "marked": "^4.0.16",
22
20
  "marked-terminal": "^4.2.0",
23
21
  "semver": "^7.3.7",
24
22
  "tslib": "^2.4.0"
25
23
  },
26
24
  "devDependencies": {
27
- "@commitlint/cli": "^16.3.0",
28
- "@commitlint/config-conventional": "^16.2.4",
29
- "@oclif/dev-cli": "^1.26.10",
25
+ "@commitlint/cli": "^17.0.2",
26
+ "@commitlint/config-conventional": "^17.0.2",
30
27
  "@oclif/plugin-command-snapshot": "^3",
31
28
  "@oclif/plugin-help": "^5.1.12",
32
29
  "@salesforce/dev-config": "^3.0.1",
@@ -36,29 +33,29 @@
36
33
  "@types/chai": "^4.3.1",
37
34
  "@types/debug": "^4.1.7",
38
35
  "@types/fs-extra": "^9.0.13",
39
- "@types/jsforce": "^1.9.42",
40
36
  "@types/marked": "^4.0.3",
41
37
  "@types/marked-terminal": "^3.1.3",
42
38
  "@types/mocha": "^9.1.1",
43
- "@types/node": "^17.0.33",
39
+ "@types/node": "^17.0.39",
44
40
  "@types/semver": "^7.3.9",
45
41
  "@types/sinon": "10.0.11",
46
- "@typescript-eslint/eslint-plugin": "^5.23.0",
47
- "@typescript-eslint/parser": "^5.23.0",
42
+ "@typescript-eslint/eslint-plugin": "^5.27.0",
43
+ "@typescript-eslint/parser": "^5.27.0",
48
44
  "chai": "^4.3.6",
49
- "eslint": "^8.15.0",
45
+ "eslint": "^8.17.0",
50
46
  "eslint-config-oclif": "^4.0",
51
47
  "eslint-config-prettier": "^8.5.0",
52
48
  "eslint-config-salesforce": "^0.1.6",
53
49
  "eslint-config-salesforce-typescript": "^0.2.8",
54
50
  "eslint-plugin-header": "^3.1.1",
55
51
  "eslint-plugin-import": "2.26.0",
56
- "eslint-plugin-jsdoc": "^39.2.9",
52
+ "eslint-plugin-jsdoc": "^39.3.2",
57
53
  "eslint-plugin-prettier": "^4.0.0",
58
54
  "husky": "^8.0.1",
59
55
  "is-ci": "^3.0.1",
60
56
  "mocha": "^10.0.0",
61
57
  "nyc": "^15.1.0",
58
+ "oclif": "^3.0.1",
62
59
  "patch-package": "^6.4.7",
63
60
  "pinst": "^3.0.0",
64
61
  "prettier": "^2.6.2",
@@ -66,8 +63,8 @@
66
63
  "shx": "^0.3.4",
67
64
  "sinon": "14.0.0",
68
65
  "source-map-support": "~0.5.21",
69
- "ts-node": "^10.7.0",
70
- "typescript": "^4.6.4"
66
+ "ts-node": "^10.8.1",
67
+ "typescript": "^4.7.3"
71
68
  },
72
69
  "engines": {
73
70
  "node": ">=14.17.1"
@@ -103,7 +100,14 @@
103
100
  "devPlugins": [
104
101
  "@oclif/plugin-help",
105
102
  "@oclif/plugin-command-snapshot"
106
- ]
103
+ ],
104
+ "info": {
105
+ "releasenotes": {
106
+ "distTagUrl": "https://registry.npmjs.org/-/package/@jayree/sfdx-plugin-manifest/dist-tags",
107
+ "releaseNotesPath": "https://github.com/jayree/sfdx-plugin-manifest/tree/main",
108
+ "releaseNotesFilename": "CHANGELOG.md"
109
+ }
110
+ }
107
111
  },
108
112
  "repository": "jayree/sfdx-plugin-manifest",
109
113
  "scripts": {
@@ -115,7 +119,7 @@
115
119
  "format": "sf-format",
116
120
  "lint": "sf-lint",
117
121
  "lint-fix": "sf-lint --fix",
118
- "postcompile": "oclif-dev readme",
122
+ "postcompile": "oclif readme",
119
123
  "_postinstall": "patch-package",
120
124
  "postpack": "shx rm -f oclif.manifest.json",
121
125
  "postpublish": "pinst --enable",
@@ -126,7 +130,7 @@
126
130
  "pretest": "sf-compile-test",
127
131
  "test": "sf-test",
128
132
  "test:deprecation-policy": "./bin/run snapshot:compare",
129
- "version": "oclif-dev readme"
133
+ "version": "oclif readme"
130
134
  },
131
135
  "publishConfig": {
132
136
  "access": "public"