sfdx-plugin-update-notifier 1.2.25 → 1.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/lib/hooks/changelog.d.ts +1 -1
- package/lib/hooks/changelog.js +7 -81
- package/lib/hooks/changelog.js.map +1 -1
- package/lib/hooks/init.js +1 -1
- package/lib/hooks/init.js.map +1 -1
- package/lib/hooks/prerun.js +2 -2
- package/lib/hooks/prerun.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +129 -45
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [1.2.27](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.2.26...v1.2.27) (2023-05-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** bump oclif-plugin-update-notifier from 1.5.23 to 1.5.24 ([#251](https://github.com/jayree/sfdx-plugin-update-notifier/issues/251)) ([68f9182](https://github.com/jayree/sfdx-plugin-update-notifier/commit/68f9182ed65c40350f97a4eb407ddb008ac1886c))
|
|
7
|
+
|
|
8
|
+
## [1.2.26](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.2.25...v1.2.26) (2023-05-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* ignore qa tag ([526418b](https://github.com/jayree/sfdx-plugin-update-notifier/commit/526418b198cfe1dda1a8998b4688cee10f9cec8f))
|
|
14
|
+
* use new changelog ([f8310aa](https://github.com/jayree/sfdx-plugin-update-notifier/commit/f8310aa448f90ec34e5fe0e92663682391c4f24d))
|
|
15
|
+
|
|
1
16
|
## [1.2.25](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.2.24...v1.2.25) (2023-05-05)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ oclif-example plugins:install sfdx-plugin-update-notifier
|
|
|
21
21
|
$ oclif-example plugins:[COMMAND]
|
|
22
22
|
running command...
|
|
23
23
|
$ sfdx plugins
|
|
24
|
-
sfdx-plugin-update-notifier 1.2.
|
|
24
|
+
sfdx-plugin-update-notifier 1.2.27
|
|
25
25
|
$ sfdx help plugins:[COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ sfdx plugins:COMMAND
|
package/lib/hooks/changelog.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Hook } from '@oclif/core';
|
|
2
|
-
export declare const changelog: Hook<'
|
|
2
|
+
export declare const changelog: Hook<'update'>;
|
package/lib/hooks/changelog.js
CHANGED
|
@@ -7,94 +7,20 @@
|
|
|
7
7
|
/* istanbul ignore file */
|
|
8
8
|
import { join, dirname } from 'node:path';
|
|
9
9
|
import { fileURLToPath } from 'node:url';
|
|
10
|
-
import
|
|
10
|
+
import printChangeLog from '@jayree/changelog';
|
|
11
11
|
import Debug from 'debug';
|
|
12
|
-
import TerminalRenderer from 'marked-terminal';
|
|
13
|
-
import { marked } from 'marked';
|
|
14
|
-
import semver from 'semver';
|
|
15
12
|
// eslint-disable-next-line no-underscore-dangle
|
|
16
13
|
const __filename = fileURLToPath(import.meta.url);
|
|
17
14
|
// eslint-disable-next-line no-underscore-dangle
|
|
18
15
|
const __dirname = dirname(__filename);
|
|
19
|
-
// original from https://github.com/salesforcecli/plugin-info/blob/main/src/shared/parseReleaseNotes.ts
|
|
20
|
-
const parseReleaseNotes = (notes, version) => {
|
|
21
|
-
let found = false;
|
|
22
|
-
let closestVersion;
|
|
23
|
-
let versions;
|
|
24
|
-
const parsed = marked.lexer(notes);
|
|
25
|
-
let tokens;
|
|
26
|
-
const findVersion = (desiredVersion) => {
|
|
27
|
-
versions = [];
|
|
28
|
-
tokens = parsed.filter((token) => {
|
|
29
|
-
// TODO: Could make header depth (2) a setting in oclif.info.releasenotes
|
|
30
|
-
if (token.type === 'heading' && token.depth <= 2) {
|
|
31
|
-
const coercedVersion = semver.coerce(token.text).version;
|
|
32
|
-
// We will use this to find the closest patch if passed version is not found
|
|
33
|
-
versions.push(coercedVersion);
|
|
34
|
-
if (coercedVersion === desiredVersion) {
|
|
35
|
-
found = true;
|
|
36
|
-
return token;
|
|
37
|
-
}
|
|
38
|
-
found = false;
|
|
39
|
-
}
|
|
40
|
-
else if (found === true) {
|
|
41
|
-
return token;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
findVersion(version);
|
|
46
|
-
if (!tokens.length) {
|
|
47
|
-
// If version was not found, try again with the closest patch version
|
|
48
|
-
const semverRange = `${semver.major(version)}.${semver.minor(version)}.x`;
|
|
49
|
-
closestVersion = semver.maxSatisfying(versions, semverRange);
|
|
50
|
-
findVersion(closestVersion);
|
|
51
|
-
}
|
|
52
|
-
if (closestVersion !== undefined) {
|
|
53
|
-
const warning = marked.lexer(`# ATTENTION: Version ${version} was not found. Showing notes for closest patch version ${closestVersion}.`)[0];
|
|
54
|
-
tokens.unshift(warning);
|
|
55
|
-
}
|
|
56
|
-
return tokens;
|
|
57
|
-
};
|
|
58
16
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
59
17
|
export const changelog = async function () {
|
|
60
|
-
const debug = Debug(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const cacheDir = join(this.config.cacheDir, name);
|
|
67
|
-
const versionFile = join(cacheDir, 'version');
|
|
68
|
-
fs.ensureFileSync(versionFile);
|
|
69
|
-
let latestVersion;
|
|
70
|
-
try {
|
|
71
|
-
latestVersion = fs.readJSONSync(versionFile);
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
latestVersion = { version: '0.0.0' };
|
|
75
|
-
}
|
|
76
|
-
debug({ latestVersion: latestVersion.version, version });
|
|
77
|
-
if (latestVersion.version !== version) {
|
|
78
|
-
const tokens = parseReleaseNotes(changelogFile, version);
|
|
79
|
-
if (!tokens.length) {
|
|
80
|
-
debug(`${name} - didn't find version '${version}'.`);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
marked.setOptions({
|
|
84
|
-
renderer: new TerminalRenderer({ emoji: false }),
|
|
85
|
-
});
|
|
86
|
-
tokens.unshift(marked.lexer(`# Changelog for '${name}':`)[0]);
|
|
87
|
-
this.log(marked.parser(tokens));
|
|
88
|
-
fs.writeJsonSync(versionFile, { version });
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
debug(`${name} - no update`);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
catch (error) {
|
|
96
|
-
debug(error);
|
|
97
|
-
}
|
|
18
|
+
const debug = Debug([this.config.bin, 'sfdx-plugin-update-notifier', 'hooks', 'update'].join(':'));
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
20
|
+
process.once('beforeExit', async () => {
|
|
21
|
+
const changes = await printChangeLog(this.config.cacheDir, join(__dirname, '..', '..'), debug);
|
|
22
|
+
if (changes)
|
|
23
|
+
this.log(changes);
|
|
98
24
|
});
|
|
99
25
|
};
|
|
100
26
|
//# sourceMappingURL=changelog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../src/hooks/changelog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../src/hooks/changelog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,gDAAgD;AAChD,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,gDAAgD;AAChD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,4DAA4D;AAC5D,MAAM,CAAC,MAAM,SAAS,GAAmB,KAAK;IAC5C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,6BAA6B,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnG,kEAAkE;IAClE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,OAAO,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;QAC/F,IAAI,OAAO;YAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/lib/hooks/init.js
CHANGED
|
@@ -3,7 +3,7 @@ import Debug from 'debug';
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
4
4
|
export const init = async function (options) {
|
|
5
5
|
const debug = Debug(`${this.config.bin}:sfdx-plugin-update-notifier:hooks:init`);
|
|
6
|
-
if (!['plugins:install', 'plugins:uninstall'].includes(options.id)) {
|
|
6
|
+
if (options.id && !['plugins:install', 'plugins:uninstall'].includes(options.id)) {
|
|
7
7
|
env.setBoolean('OCLIF_DISABLE_UPDATENOTIFIER', true);
|
|
8
8
|
debug('set: OCLIF_DISABLE_UPDATENOTIFIER=true');
|
|
9
9
|
}
|
package/lib/hooks/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/hooks/init.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,4DAA4D;AAC5D,MAAM,CAAC,MAAM,IAAI,GAAiB,KAAK,WAAW,OAAO;IACvD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,yCAAyC,CAAC,CAAC;IACjF,IAAI,CAAC,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/hooks/init.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,4DAA4D;AAC5D,MAAM,CAAC,MAAM,IAAI,GAAiB,KAAK,WAAW,OAAO;IACvD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,yCAAyC,CAAC,CAAC;IACjF,IAAI,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QAChF,GAAG,CAAC,UAAU,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;QACrD,KAAK,CAAC,wCAAwC,CAAC,CAAC;KACjD;AACH,CAAC,CAAC"}
|
package/lib/hooks/prerun.js
CHANGED
|
@@ -19,7 +19,7 @@ export const prerun = async function (options) {
|
|
|
19
19
|
spawnOptions: { detached: false, stdio: 'ignore' },
|
|
20
20
|
defer: false,
|
|
21
21
|
changeLogUrl: {},
|
|
22
|
-
ignoreDistTags: ['sf'],
|
|
22
|
+
ignoreDistTags: ['sf', 'qa'],
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
@@ -27,7 +27,7 @@ export const prerun = async function (options) {
|
|
|
27
27
|
spawnOptions: { detached: true, stdio: 'ignore' },
|
|
28
28
|
defer: true,
|
|
29
29
|
changeLogUrl: {},
|
|
30
|
-
ignoreDistTags: ['sf'],
|
|
30
|
+
ignoreDistTags: ['sf', 'qa'],
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
};
|
package/lib/hooks/prerun.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prerun.js","sourceRoot":"","sources":["../../src/hooks/prerun.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;AAC1F,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC;AAErH,MAAM,CAAC,MAAM,MAAM,GAAmB,KAAK,WAAW,OAAO;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,2CAA2C,CAAC,CAAC;IAEnF,IAAI,GAAG,CAAC,UAAU,CAAC,6BAA6B,CAAC,EAAE;QACjD,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACjD,OAAO;KACR;IAED,IAAI,CAAC,eAAe;QAAE,OAAO;IAE7B,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACzE,OAAO;KACR;IAED,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACrF,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC1C,mBAAmB,EAAE,CAAC;YACtB,YAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;YAClD,KAAK,EAAE,KAAK;YACZ,YAAY,EAAE,EAAE;YAChB,cAAc,EAAE,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"prerun.js","sourceRoot":"","sources":["../../src/hooks/prerun.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;AAC1F,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC;AAErH,MAAM,CAAC,MAAM,MAAM,GAAmB,KAAK,WAAW,OAAO;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,2CAA2C,CAAC,CAAC;IAEnF,IAAI,GAAG,CAAC,UAAU,CAAC,6BAA6B,CAAC,EAAE;QACjD,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACjD,OAAO;KACR;IAED,IAAI,CAAC,eAAe;QAAE,OAAO;IAE7B,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACzE,OAAO;KACR;IAED,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACrF,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC1C,mBAAmB,EAAE,CAAC;YACtB,YAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;YAClD,KAAK,EAAE,KAAK;YACZ,YAAY,EAAE,EAAE;YAChB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;SAC7B,CAAC,CAAC;KACJ;SAAM;QACL,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC1C,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;YACjD,KAAK,EAAE,IAAI;YACX,YAAY,EAAE,EAAE;YAChB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;SAC7B,CAAC,CAAC;KACJ;AACH,CAAC,CAAC"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,67 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-plugin-update-notifier",
|
|
3
3
|
"description": "update-notifier for sfdx plugins",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.27",
|
|
5
5
|
"author": "jayree",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bugs": "https://github.com/jayree/sfdx-plugin-update-notifier/issues",
|
|
8
8
|
"dependencies": {
|
|
9
|
+
"@jayree/changelog": "^1.1.1",
|
|
9
10
|
"@oclif/core": "^2.8.5",
|
|
10
|
-
"@salesforce/kit": "^
|
|
11
|
+
"@salesforce/kit": "^3.0.0",
|
|
11
12
|
"debug": "^4.3.4",
|
|
12
13
|
"fs-extra": "^11.1.0",
|
|
13
|
-
"
|
|
14
|
-
"marked-terminal": "^5.1.1",
|
|
15
|
-
"oclif-plugin-update-notifier": "^1.5.23",
|
|
16
|
-
"semver": "^7.3.8",
|
|
14
|
+
"oclif-plugin-update-notifier": "^1.5.24",
|
|
17
15
|
"tslib": "^2.4.1"
|
|
18
16
|
},
|
|
19
17
|
"devDependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"@commitlint/config-conventional": "^17.6.3",
|
|
22
|
-
"@oclif/plugin-command-snapshot": "^3.3.13",
|
|
18
|
+
"@oclif/plugin-command-snapshot": "^3.3.14",
|
|
23
19
|
"@oclif/plugin-help": "^5.2.9",
|
|
24
|
-
"@oclif/test": "^2.3.
|
|
25
|
-
"@salesforce/dev-config": "^
|
|
26
|
-
"@salesforce/dev-scripts": "^
|
|
20
|
+
"@oclif/test": "^2.3.19",
|
|
21
|
+
"@salesforce/dev-config": "^4.0.1",
|
|
22
|
+
"@salesforce/dev-scripts": "^5.0.1",
|
|
27
23
|
"@salesforce/prettier-config": "^0.0.2",
|
|
28
|
-
"@types/chai": "^4.3.5",
|
|
29
24
|
"@types/debug": "^4.1.7",
|
|
30
25
|
"@types/fs-extra": "^11.0.1",
|
|
31
26
|
"@types/jsforce": "^1.11.0",
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"@types/node": "^18.16.4",
|
|
36
|
-
"@types/semver": "^7.3.13",
|
|
37
|
-
"@types/sinon": "^10.0.14",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
39
|
-
"@typescript-eslint/parser": "^5.59.2",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
28
|
+
"@typescript-eslint/parser": "^5.59.5",
|
|
29
|
+
"c8": "^7.12.0",
|
|
40
30
|
"chai": "^4.3.7",
|
|
41
|
-
"eslint": "^8.
|
|
31
|
+
"eslint": "^8.40.0",
|
|
42
32
|
"eslint-config-prettier": "^8.8.0",
|
|
43
|
-
"eslint-config-salesforce": "^
|
|
33
|
+
"eslint-config-salesforce": "^2.0.1",
|
|
34
|
+
"eslint-config-salesforce-license": "^0.2.0",
|
|
44
35
|
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
45
36
|
"eslint-plugin-header": "^3.1.1",
|
|
46
37
|
"eslint-plugin-import": "^2.27.5",
|
|
47
|
-
"eslint-plugin-jsdoc": "^
|
|
38
|
+
"eslint-plugin-jsdoc": "^44.2.3",
|
|
48
39
|
"eslint-plugin-prettier": "^4.2.1",
|
|
49
40
|
"husky": "^8.0.3",
|
|
50
41
|
"is-ci": "^3.0.1",
|
|
51
42
|
"mocha": "^10.2.0",
|
|
52
43
|
"nyc": "^15.1.0",
|
|
53
44
|
"oclif": "^3.9.0",
|
|
54
|
-
"patch-package": "^
|
|
45
|
+
"patch-package": "^7.0.0",
|
|
55
46
|
"pinst": "^3.0.0",
|
|
56
47
|
"prettier": "^2.8.8",
|
|
57
48
|
"pretty-quick": "^3.1.3",
|
|
58
49
|
"sinon": "^15.0.4",
|
|
59
|
-
"source-map-support": "^0.5.21",
|
|
60
50
|
"ts-node": "^10.9.1",
|
|
61
|
-
"typescript": "^
|
|
51
|
+
"typescript": "^5.0.4",
|
|
52
|
+
"wireit": "^0.9.5"
|
|
62
53
|
},
|
|
63
54
|
"engines": {
|
|
64
|
-
"node": ">=
|
|
55
|
+
"node": ">=16.0.0"
|
|
65
56
|
},
|
|
66
57
|
"files": [
|
|
67
58
|
"/lib",
|
|
@@ -98,30 +89,123 @@
|
|
|
98
89
|
},
|
|
99
90
|
"repository": "jayree/sfdx-plugin-update-notifier",
|
|
100
91
|
"scripts": {
|
|
101
|
-
"build": "
|
|
92
|
+
"build": "wireit",
|
|
102
93
|
"clean": "sf-clean",
|
|
103
94
|
"clean-all": "sf-clean all",
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"lint": "sf-lint",
|
|
108
|
-
"lint-fix": "sf-lint --fix",
|
|
109
|
-
"postcompile": "oclif readme",
|
|
110
|
-
"_postinstall": "patch-package",
|
|
111
|
-
"postpack": "shx rm -f oclif.manifest.json",
|
|
112
|
-
"postpublish": "pinst --enable",
|
|
113
|
-
"posttest": "yarn lint && yarn test:deprecation-policy",
|
|
95
|
+
"compile": "wireit",
|
|
96
|
+
"format": "wireit",
|
|
97
|
+
"lint": "wireit",
|
|
114
98
|
"prepack": "sf-prepack",
|
|
115
|
-
"prepare": "
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"test:deprecation-policy": "./bin/dev.js snapshot:compare",
|
|
120
|
-
"version": "oclif readme"
|
|
99
|
+
"prepare": "patch-package && sf-install",
|
|
100
|
+
"test": "wireit",
|
|
101
|
+
"test:only": "wireit",
|
|
102
|
+
"version": "oclif readme --no-aliases"
|
|
121
103
|
},
|
|
122
104
|
"release": {
|
|
123
105
|
"branches": [
|
|
124
106
|
"main"
|
|
125
107
|
]
|
|
108
|
+
},
|
|
109
|
+
"wireit": {
|
|
110
|
+
"build": {
|
|
111
|
+
"dependencies": [
|
|
112
|
+
"compile",
|
|
113
|
+
"lint"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"compile": {
|
|
117
|
+
"command": "tsc --build --pretty",
|
|
118
|
+
"files": [
|
|
119
|
+
"src/**/*.ts",
|
|
120
|
+
"**/tsconfig.json",
|
|
121
|
+
"messages/**"
|
|
122
|
+
],
|
|
123
|
+
"output": [
|
|
124
|
+
"lib/**",
|
|
125
|
+
"*.tsbuildinfo"
|
|
126
|
+
],
|
|
127
|
+
"clean": "if-file-deleted"
|
|
128
|
+
},
|
|
129
|
+
"format": {
|
|
130
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
131
|
+
"files": [
|
|
132
|
+
"src/**/*.ts",
|
|
133
|
+
"test/**/*.ts",
|
|
134
|
+
"schemas/**/*.json",
|
|
135
|
+
"command-snapshot.json",
|
|
136
|
+
".prettier*"
|
|
137
|
+
],
|
|
138
|
+
"output": []
|
|
139
|
+
},
|
|
140
|
+
"lint": {
|
|
141
|
+
"command": "eslint --color --cache --cache-location .eslintcache .",
|
|
142
|
+
"files": [
|
|
143
|
+
"src/**/*.ts",
|
|
144
|
+
"test/**/*.ts",
|
|
145
|
+
"messages/**",
|
|
146
|
+
"**/.eslint*",
|
|
147
|
+
"**/tsconfig.json"
|
|
148
|
+
],
|
|
149
|
+
"output": []
|
|
150
|
+
},
|
|
151
|
+
"test:compile": {
|
|
152
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
153
|
+
"files": [
|
|
154
|
+
"test/**/*.ts",
|
|
155
|
+
"**/tsconfig.json"
|
|
156
|
+
],
|
|
157
|
+
"output": []
|
|
158
|
+
},
|
|
159
|
+
"test": {
|
|
160
|
+
"dependencies": [
|
|
161
|
+
"test:deprecation-policy",
|
|
162
|
+
"lint",
|
|
163
|
+
"test:json-schema"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"test:only": {
|
|
167
|
+
"command": "c8 mocha \"test/**/*test.ts\"",
|
|
168
|
+
"env": {
|
|
169
|
+
"FORCE_COLOR": "2"
|
|
170
|
+
},
|
|
171
|
+
"files": [
|
|
172
|
+
"test/**/*.ts",
|
|
173
|
+
"src/**/*.ts",
|
|
174
|
+
"**/tsconfig.json",
|
|
175
|
+
".mocha*",
|
|
176
|
+
"!*.nut.ts",
|
|
177
|
+
".nycrc"
|
|
178
|
+
],
|
|
179
|
+
"output": []
|
|
180
|
+
},
|
|
181
|
+
"test:command-reference": {
|
|
182
|
+
"command": "\"./bin/dev.js\" commandreference:generate --erroronwarnings",
|
|
183
|
+
"files": [
|
|
184
|
+
"src/**/*.ts",
|
|
185
|
+
"messages/**",
|
|
186
|
+
"package.json"
|
|
187
|
+
],
|
|
188
|
+
"output": [
|
|
189
|
+
"tmp/root"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"test:deprecation-policy": {
|
|
193
|
+
"command": "\"./bin/dev.js\" snapshot:compare",
|
|
194
|
+
"files": [
|
|
195
|
+
"src/**/*.ts"
|
|
196
|
+
],
|
|
197
|
+
"output": [],
|
|
198
|
+
"dependencies": [
|
|
199
|
+
"compile"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"test:json-schema": {
|
|
203
|
+
"command": "\"./bin/dev.js\" schema:compare",
|
|
204
|
+
"files": [
|
|
205
|
+
"src/**/*.ts",
|
|
206
|
+
"schemas"
|
|
207
|
+
],
|
|
208
|
+
"output": []
|
|
209
|
+
}
|
|
126
210
|
}
|
|
127
211
|
}
|