@jayree/sfdx-plugin-manifest 2.8.7 → 2.9.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [2.9.1](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.9.0...v2.9.1) (2023-03-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** bump @salesforce/sf-plugins-core from 2.2.2 to 2.2.4 ([#595](https://github.com/jayree/sfdx-plugin-manifest/issues/595)) ([f1b0c24](https://github.com/jayree/sfdx-plugin-manifest/commit/f1b0c2466d5652b60c1f066de9391a05815c219c))
7
+ * **deps:** bump @salesforce/source-deploy-retrieve from 7.10.1 to 7.11.0 ([#597](https://github.com/jayree/sfdx-plugin-manifest/issues/597)) ([1d5dafc](https://github.com/jayree/sfdx-plugin-manifest/commit/1d5dafc0f66f913a9ce1a4fd82cce15963357c40))
8
+ * **deps:** bump fast-xml-parser from 4.1.2 to 4.1.3 ([#604](https://github.com/jayree/sfdx-plugin-manifest/issues/604)) ([7076db4](https://github.com/jayree/sfdx-plugin-manifest/commit/7076db4082e7db9db04cec946e850c0f42b05136))
9
+
10
+ # [2.9.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.8.7...v2.9.0) (2023-02-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **manifest:cleanup:** align members, name order with SDR ([0ecf0e6](https://github.com/jayree/sfdx-plugin-manifest/commit/0ecf0e6e3301e14313ffd27a380ac9d2edbb0bf2))
16
+
17
+
18
+ ### Features
19
+
20
+ * **manifest:cleanup:** add wildcards option to filter members ([42b288b](https://github.com/jayree/sfdx-plugin-manifest/commit/42b288bd1f110b5bd02b3bf4abee0b9ef676b4ff))
21
+
1
22
  ## [2.8.7](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.8.6...v2.8.7) (2023-02-24)
2
23
 
3
24
 
package/README.md CHANGED
@@ -99,7 +99,7 @@ FLAG DESCRIPTIONS
99
99
  The location can be an absolute path or relative to the current working directory.
100
100
  ```
101
101
 
102
- _See code: [src/commands/jayree/manifest/beta/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.8.7/src/commands/jayree/manifest/beta/git/diff.ts)_
102
+ _See code: [src/commands/jayree/manifest/beta/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/beta/git/diff.ts)_
103
103
 
104
104
  ### `sfdx jayree:manifest:cleanup`
105
105
 
@@ -127,7 +127,7 @@ EXAMPLES
127
127
  $ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
128
128
  ```
129
129
 
130
- _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.8.7/src/commands/jayree/manifest/cleanup.ts)_
130
+ _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/cleanup.ts)_
131
131
 
132
132
  ### `sfdx jayree:manifest:generate`
133
133
 
@@ -163,7 +163,7 @@ EXAMPLES
163
163
  <Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
164
164
  ```
165
165
 
166
- _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.8.7/src/commands/jayree/manifest/generate.ts)_
166
+ _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/generate.ts)_
167
167
 
168
168
  ### `sfdx jayree:manifest:git:diff`
169
169
 
@@ -240,5 +240,5 @@ FLAG DESCRIPTIONS
240
240
  The location can be an absolute path or relative to the current working directory.
241
241
  ```
242
242
 
243
- _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.8.7/src/commands/jayree/manifest/git/diff.ts)_
243
+ _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/git/diff.ts)_
244
244
  <!-- commandsstop -->
@@ -35,19 +35,27 @@ export default class CleanupManifest extends SfCommand {
35
35
  </types>
36
36
  <types>
37
37
  <name>SharingRules</name>
38
- <!--Remove specified members from type E.g. VideoCall-->
38
+ <!--Remove specified members from type-->
39
39
  <members>VideoCall</members>
40
+ <!--Remove all members starting with Video from type-->
41
+ <members>Video*</members>
40
42
  </types>
41
43
  <types>
42
44
  <name>Report</name>
43
- <!--Remove all members from type, but keep members: MyFolder, MyFolder/MyReport. E.g. if you don't need all your reports in your repository-->
45
+ <!--Remove all members from type, but keep members: MyFolder, MyFolder/MyReport. If you don't need all your reports in your repository-->
44
46
  <members>*</members>
45
47
  <members>MyFolder</members>
46
48
  <members>MyFolder/MyReport</members>
47
49
  </types>
50
+ <types>
51
+ <name>CustomObjectTranslation</name>
52
+ <!--Remove all members from type, but keep members ending with -de. If you don't want to store all CustomObjectTranslation in your repository-->
53
+ <members>*</members>
54
+ <members>*-de</members>
55
+ </types>
48
56
  <types>
49
57
  <name>CustomObject</name>
50
- <!--Add members. E.g. if you have used 'excludemanaged' with 'jayree:manifest:generate' to re-add required managed components-->
58
+ <!--Add members ObjectName1, ObjectName2. If you have used 'excludemanaged' with 'jayree:manifest:generate' to re-add required managed components-->
51
59
  <members>!ObjectName1</members>
52
60
  <members>!ObjectName2</members>
53
61
  </types>
@@ -74,7 +82,29 @@ export default class CleanupManifest extends SfCommand {
74
82
  const { packageTypeMembers: ignoreTypeMembers } = parseManifest(fs.readFileSync(ignoreManifest, 'utf8'));
75
83
  ignoreTypeMembers.forEach((types) => {
76
84
  if (typeMap.get(types.name)) {
77
- const packageTypeMembers = ensureArray(types.members);
85
+ const resolveWildCard = (members) => {
86
+ members
87
+ .filter((m) => m.includes('*') && m.length > 1)
88
+ .forEach((i) => {
89
+ members.splice(members.indexOf(i), 1);
90
+ const wildCard = i.split('*');
91
+ members = members.concat(typeMap.get(types.name)?.filter((m) => {
92
+ if (wildCard.length === 2) {
93
+ if (i.startsWith('*')) {
94
+ return m.endsWith(wildCard[1]);
95
+ }
96
+ else if (i.endsWith('*')) {
97
+ return m.startsWith(wildCard[0]);
98
+ }
99
+ else {
100
+ return m.startsWith(wildCard[0]) && m.endsWith(wildCard[1]);
101
+ }
102
+ }
103
+ }));
104
+ });
105
+ return members;
106
+ };
107
+ const packageTypeMembers = resolveWildCard(ensureArray(types.members));
78
108
  if (packageTypeMembers.includes('*') && packageTypeMembers.length > 1) {
79
109
  const includemembers = packageTypeMembers.slice();
80
110
  includemembers.splice(includemembers.indexOf('*'), 1);
@@ -104,7 +134,7 @@ export default class CleanupManifest extends SfCommand {
104
134
  const typeMembers = [];
105
135
  for (const [typeName, members] of typeMap.entries()) {
106
136
  if (members.length) {
107
- typeMembers.push({ name: typeName, members });
137
+ typeMembers.push({ members, name: typeName });
108
138
  }
109
139
  }
110
140
  await fs.writeFile(manifest, js2Manifest({ Package: { types: typeMembers, version } }));
@@ -1 +1 @@
1
- {"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../../../src/commands/jayree/manifest/cleanup.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,4DAA4D,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  "commands": {
4
4
  "jayree:manifest:cleanup": {
5
5
  "id": "jayree:manifest:cleanup",
package/package.json CHANGED
@@ -1,19 +1,19 @@
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.8.7",
4
+ "version": "2.9.1",
5
5
  "author": "jayree",
6
6
  "type": "module",
7
7
  "bugs": "https://github.com/jayree/sfdx-plugin-manifest/issues",
8
8
  "dependencies": {
9
- "@oclif/core": "^2.1.5",
9
+ "@oclif/core": "^2.3.0",
10
10
  "@salesforce/kit": "^1.9.0",
11
- "@salesforce/sf-plugins-core": "^2.2.2",
12
- "@salesforce/source-deploy-retrieve": "^7.10.1",
11
+ "@salesforce/sf-plugins-core": "^2.2.4",
12
+ "@salesforce/source-deploy-retrieve": "^7.11.0",
13
13
  "@salesforce/ts-types": "^1.7.3",
14
14
  "debug": "^4.3.4",
15
15
  "fast-deep-equal": "^3.1.3",
16
- "fast-xml-parser": "^4.1.2",
16
+ "fast-xml-parser": "^4.1.3",
17
17
  "fs-extra": "^11.1.0",
18
18
  "graceful-fs": "^4.2.10",
19
19
  "isomorphic-git": "^1.21.0",
@@ -24,51 +24,46 @@
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@commitlint/cli": "^17.4.4",
28
- "@commitlint/config-conventional": "^17.4.4",
29
- "@oclif/plugin-command-snapshot": "^3.3.6",
30
- "@oclif/plugin-help": "^5.2.5",
27
+ "@oclif/plugin-command-snapshot": "^3.3.7",
28
+ "@oclif/plugin-help": "^5.2.6",
31
29
  "@salesforce/dev-config": "^3.1.0",
32
- "@salesforce/dev-scripts": "^3.1.1",
30
+ "@salesforce/dev-scripts": "^4.1.1",
33
31
  "@salesforce/prettier-config": "^0.0.2",
34
32
  "@salesforce/ts-sinon": "^1.4.6",
35
- "@types/chai": "^4.3.4",
36
33
  "@types/debug": "^4.1.7",
37
34
  "@types/fs-extra": "^11.0.1",
38
35
  "@types/inquirer": "^9.0.3",
39
36
  "@types/marked": "^4.0.8",
40
37
  "@types/marked-terminal": "^3.1.3",
41
- "@types/mocha": "^10.0.1",
42
- "@types/node": "^18.14.1",
43
38
  "@types/semver": "^7.3.13",
44
- "@types/sinon": "10.0.13",
45
- "@typescript-eslint/eslint-plugin": "^5.53.0",
46
- "@typescript-eslint/parser": "^5.53.0",
39
+ "@typescript-eslint/eslint-plugin": "^5.54.0",
40
+ "@typescript-eslint/parser": "^5.54.0",
41
+ "c8": "^7.12.0",
47
42
  "chai": "^4.3.7",
48
- "eslint": "^8.34.0",
43
+ "eslint": "^8.35.0",
49
44
  "eslint-config-oclif": "^4.0",
50
45
  "eslint-config-prettier": "^8.6.0",
51
46
  "eslint-config-salesforce": "^1.1.1",
47
+ "eslint-config-salesforce-license": "^0.2.0",
52
48
  "eslint-config-salesforce-typescript": "^1.1.1",
53
49
  "eslint-plugin-header": "^3.1.1",
54
50
  "eslint-plugin-import": "2.27.5",
55
- "eslint-plugin-jsdoc": "^40.0.0",
51
+ "eslint-plugin-jsdoc": "^40.0.1",
56
52
  "eslint-plugin-prettier": "^4.2.1",
57
- "eslint-plugin-sf-plugin": "^1.8.1",
53
+ "eslint-plugin-sf-plugin": "^1.9.2",
58
54
  "husky": "^8.0.3",
59
55
  "is-ci": "^3.0.1",
60
56
  "mocha": "^10.2.0",
61
57
  "nyc": "^15.1.0",
62
58
  "oclif": "^3.7.0",
63
59
  "patch-package": "^6.5.1",
64
- "pinst": "^3.0.0",
65
60
  "prettier": "^2.8.4",
66
61
  "pretty-quick": "^3.1.3",
67
62
  "shx": "^0.3.4",
68
63
  "sinon": "15.0.1",
69
- "source-map-support": "~0.5.21",
70
64
  "ts-node": "^10.9.1",
71
- "typescript": "^4.9.5"
65
+ "typescript": "^4.9.5",
66
+ "wireit": "^0.9.5"
72
67
  },
73
68
  "engines": {
74
69
  "node": ">=14.0.0"
@@ -130,26 +125,15 @@
130
125
  },
131
126
  "repository": "jayree/sfdx-plugin-manifest",
132
127
  "scripts": {
133
- "build": "sf-build",
128
+ "build": "wireit",
134
129
  "clean": "sf-clean",
135
130
  "clean-all": "sf-clean all",
136
- "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
137
- "compile": "sf-compile",
138
- "format": "sf-format",
139
- "lint": "sf-lint",
140
- "lint-fix": "sf-lint --fix",
141
- "postcompile": "oclif readme",
142
- "_postinstall": "node ./bin/is-sfdx.js || patch-package",
143
- "postpack": "shx rm -f oclif.manifest.json",
144
- "postpublish": "pinst --enable",
145
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema",
131
+ "compile": "wireit",
132
+ "format": "wireit",
133
+ "lint": "wireit",
146
134
  "prepack": "sf-prepack",
147
- "prepare": "is-ci || node ./bin/is-sfdx.js || husky install",
148
- "prepublishOnly": "pinst --disable",
149
- "pretest": "sf-compile-test",
150
- "test": "sf-test",
151
- "test:deprecation-policy": "./bin/dev.js snapshot:compare",
152
- "test:json-schema": "./bin/dev.js schema:compare",
135
+ "prepare": "patch-package && sf-install",
136
+ "test": "wireit",
153
137
  "version": "oclif readme"
154
138
  },
155
139
  "publishConfig": {
@@ -160,5 +144,72 @@
160
144
  "main",
161
145
  "next"
162
146
  ]
147
+ },
148
+ "wireit": {
149
+ "build": {
150
+ "dependencies": [
151
+ "compile",
152
+ "lint"
153
+ ]
154
+ },
155
+ "compile": {
156
+ "command": "tsc --build --pretty",
157
+ "files": [
158
+ "src/**/*.ts",
159
+ "tsconfig.json",
160
+ "messages/**"
161
+ ],
162
+ "output": [
163
+ "lib/**",
164
+ "*.tsbuildinfo"
165
+ ],
166
+ "clean": "if-file-deleted"
167
+ },
168
+ "format": {
169
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
170
+ "files": [
171
+ "src/**/*.ts",
172
+ "test/**/*.ts",
173
+ "schemas/**/*.json",
174
+ "command-snapshot.json",
175
+ ".prettier*"
176
+ ],
177
+ "output": []
178
+ },
179
+ "lint": {
180
+ "command": "eslint --color --cache --cache-location .eslintcache .",
181
+ "files": [
182
+ "src/**/*.ts",
183
+ "test/**/*.ts",
184
+ "messages/**",
185
+ ".eslint*"
186
+ ],
187
+ "output": []
188
+ },
189
+ "test": {
190
+ "dependencies": [
191
+ "test:deprecation-policy",
192
+ "lint",
193
+ "test:json-schema"
194
+ ]
195
+ },
196
+ "test:deprecation-policy": {
197
+ "command": "\"./bin/dev.js\" snapshot:compare",
198
+ "files": [
199
+ "src/**/*.ts"
200
+ ],
201
+ "output": [],
202
+ "dependencies": [
203
+ "compile"
204
+ ]
205
+ },
206
+ "test:json-schema": {
207
+ "command": "\"./bin/dev.js\" schema:compare",
208
+ "files": [
209
+ "src/**/*.ts",
210
+ "schemas"
211
+ ],
212
+ "output": []
213
+ }
163
214
  }
164
215
  }