@rushstack/package-extractor 0.12.13 → 0.12.14
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.json +27 -0
- package/CHANGELOG.md +6 -1
- package/dist/scripts/create-links.js +74 -31
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.12.14",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.12.14",
|
|
7
|
+
"date": "Thu, 09 Apr 2026 00:15:07 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/node-core-library\" to `5.22.0`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@rushstack/terminal\" to `0.22.5`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.3.5`"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.3.12`"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `1.2.11`"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.12.12`"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
4
31
|
{
|
|
5
32
|
"version": "0.12.13",
|
|
6
33
|
"tag": "@rushstack/package-extractor_v0.12.13",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 09 Apr 2026 00:15:07 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.12.14
|
|
6
|
+
Thu, 09 Apr 2026 00:15:07 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
4
9
|
|
|
5
10
|
## 0.12.13
|
|
6
11
|
Sat, 04 Apr 2026 00:14:00 GMT
|
|
@@ -56401,10 +56401,11 @@ class FileSystem {
|
|
|
56401
56401
|
* Writes a text string to a file on disk, overwriting the file if it already exists.
|
|
56402
56402
|
* Behind the scenes it uses `fs.writeFileSync()`.
|
|
56403
56403
|
* @remarks
|
|
56404
|
-
* Throws an error if the folder doesn't exist, unless
|
|
56404
|
+
* Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists}
|
|
56405
|
+
* is set to `true`.
|
|
56405
56406
|
* @param filePath - The absolute or relative path of the file.
|
|
56406
56407
|
* @param contents - The text that should be written to the file.
|
|
56407
|
-
* @param options - Optional settings that can change the behavior.
|
|
56408
|
+
* @param options - Optional settings that can change the behavior.
|
|
56408
56409
|
*/
|
|
56409
56410
|
static writeFile(filePath, contents, options) {
|
|
56410
56411
|
FileSystem._wrapException(() => {
|
|
@@ -56441,7 +56442,8 @@ class FileSystem {
|
|
|
56441
56442
|
* multiple sources.
|
|
56442
56443
|
*
|
|
56443
56444
|
* @remarks
|
|
56444
|
-
* Throws an error if the folder doesn't exist, unless
|
|
56445
|
+
* Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists}
|
|
56446
|
+
* is set to `true`.
|
|
56445
56447
|
* @param filePath - The absolute or relative path of the file.
|
|
56446
56448
|
* @param contents - The content that should be written to the file.
|
|
56447
56449
|
* @param options - Optional settings that can change the behavior.
|
|
@@ -56573,10 +56575,11 @@ class FileSystem {
|
|
|
56573
56575
|
* Writes a text string to a file on disk, appending to the file if it already exists.
|
|
56574
56576
|
* Behind the scenes it uses `fs.appendFileSync()`.
|
|
56575
56577
|
* @remarks
|
|
56576
|
-
* Throws an error if the folder doesn't exist, unless
|
|
56578
|
+
* Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists}
|
|
56579
|
+
* is set to `true`.
|
|
56577
56580
|
* @param filePath - The absolute or relative path of the file.
|
|
56578
56581
|
* @param contents - The text that should be written to the file.
|
|
56579
|
-
* @param options - Optional settings that can change the behavior.
|
|
56582
|
+
* @param options - Optional settings that can change the behavior.
|
|
56580
56583
|
*/
|
|
56581
56584
|
static appendToFile(filePath, contents, options) {
|
|
56582
56585
|
FileSystem._wrapException(() => {
|
|
@@ -56815,6 +56818,50 @@ class FileSystem {
|
|
|
56815
56818
|
}
|
|
56816
56819
|
});
|
|
56817
56820
|
}
|
|
56821
|
+
/**
|
|
56822
|
+
* Creates a readable stream for an existing file.
|
|
56823
|
+
* Behind the scenes it uses `fs.createReadStream()`.
|
|
56824
|
+
*
|
|
56825
|
+
* @param filePath - The path to the file. The path may be absolute or relative.
|
|
56826
|
+
* @returns A new readable stream for the file.
|
|
56827
|
+
*/
|
|
56828
|
+
static createReadStream(filePath) {
|
|
56829
|
+
return FileSystem._wrapException(() => {
|
|
56830
|
+
return fs.createReadStream(filePath);
|
|
56831
|
+
});
|
|
56832
|
+
}
|
|
56833
|
+
/**
|
|
56834
|
+
* Creates a writable stream for writing to a file.
|
|
56835
|
+
* Behind the scenes it uses `fs.createWriteStream()`.
|
|
56836
|
+
*
|
|
56837
|
+
* @remarks
|
|
56838
|
+
* Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists}
|
|
56839
|
+
* is set to `true`.
|
|
56840
|
+
* @param filePath - The path to the file. The path may be absolute or relative.
|
|
56841
|
+
* @param options - Optional settings that can change the behavior.
|
|
56842
|
+
* @returns A new writable stream for the file.
|
|
56843
|
+
*/
|
|
56844
|
+
static createWriteStream(filePath, options) {
|
|
56845
|
+
return FileSystem._wrapException(() => {
|
|
56846
|
+
if (options === null || options === void 0 ? void 0 : options.ensureFolderExists) {
|
|
56847
|
+
const folderPath = nodeJsPath.dirname(filePath);
|
|
56848
|
+
FileSystem.ensureFolder(folderPath);
|
|
56849
|
+
}
|
|
56850
|
+
return fs.createWriteStream(filePath);
|
|
56851
|
+
});
|
|
56852
|
+
}
|
|
56853
|
+
/**
|
|
56854
|
+
* An async version of {@link FileSystem.createWriteStream}.
|
|
56855
|
+
*/
|
|
56856
|
+
static async createWriteStreamAsync(filePath, options) {
|
|
56857
|
+
return await FileSystem._wrapExceptionAsync(async () => {
|
|
56858
|
+
if (options === null || options === void 0 ? void 0 : options.ensureFolderExists) {
|
|
56859
|
+
const folderPath = nodeJsPath.dirname(filePath);
|
|
56860
|
+
await FileSystem.ensureFolderAsync(folderPath);
|
|
56861
|
+
}
|
|
56862
|
+
return fs.createWriteStream(filePath);
|
|
56863
|
+
});
|
|
56864
|
+
}
|
|
56818
56865
|
// ===============
|
|
56819
56866
|
// LINK OPERATIONS
|
|
56820
56867
|
// ===============
|
|
@@ -63167,19 +63214,13 @@ class ProblemCollector extends TerminalWritable_1.TerminalWritable {
|
|
|
63167
63214
|
constructor(options) {
|
|
63168
63215
|
super(options);
|
|
63169
63216
|
this._problems = new Set();
|
|
63170
|
-
|
|
63171
|
-
|
|
63172
|
-
|
|
63173
|
-
throw new Error('ProblemCollector requires at least one problem matcher.');
|
|
63174
|
-
}
|
|
63175
|
-
const fromJson = options.matcherJson
|
|
63176
|
-
? (0, problem_matcher_1.parseProblemMatchersJson)(options.matcherJson)
|
|
63177
|
-
: [];
|
|
63178
|
-
this._matchers = [...(options.matchers || []), ...fromJson];
|
|
63217
|
+
const { matchers = [], matcherJson = [], onProblem } = options;
|
|
63218
|
+
const fromJson = matcherJson.length !== 0 ? (0, problem_matcher_1.parseProblemMatchersJson)(matcherJson) : [];
|
|
63219
|
+
this._matchers = [...matchers, ...fromJson];
|
|
63179
63220
|
if (this._matchers.length === 0) {
|
|
63180
63221
|
throw new Error('ProblemCollector requires at least one problem matcher.');
|
|
63181
63222
|
}
|
|
63182
|
-
this._onProblem =
|
|
63223
|
+
this._onProblem = onProblem;
|
|
63183
63224
|
}
|
|
63184
63225
|
/**
|
|
63185
63226
|
* {@inheritdoc IProblemCollector}
|
|
@@ -64413,14 +64454,15 @@ const NormalizeNewlinesTextRewriter_1 = __webpack_require__(/*! ./NormalizeNewli
|
|
|
64413
64454
|
class TextRewriterTransform extends TerminalTransform_1.TerminalTransform {
|
|
64414
64455
|
constructor(options) {
|
|
64415
64456
|
super(options);
|
|
64416
|
-
const textRewriters =
|
|
64417
|
-
|
|
64457
|
+
const { textRewriters: inputTextRewriters = [], removeColors, normalizeNewlines, ensureNewlineAtEnd } = options;
|
|
64458
|
+
const textRewriters = [...inputTextRewriters];
|
|
64459
|
+
if (removeColors) {
|
|
64418
64460
|
textRewriters.push(new RemoveColorsTextRewriter_1.RemoveColorsTextRewriter());
|
|
64419
64461
|
}
|
|
64420
|
-
if (
|
|
64462
|
+
if (normalizeNewlines) {
|
|
64421
64463
|
textRewriters.push(new NormalizeNewlinesTextRewriter_1.NormalizeNewlinesTextRewriter({
|
|
64422
|
-
newlineKind:
|
|
64423
|
-
ensureNewlineAtEnd
|
|
64464
|
+
newlineKind: normalizeNewlines,
|
|
64465
|
+
ensureNewlineAtEnd
|
|
64424
64466
|
}));
|
|
64425
64467
|
}
|
|
64426
64468
|
if (textRewriters.length === 0) {
|
|
@@ -65735,19 +65777,19 @@ const BaseClasses_1 = __webpack_require__(/*! ../parameters/BaseClasses */ 97145
|
|
|
65735
65777
|
*/
|
|
65736
65778
|
class AliasCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
65737
65779
|
constructor(options) {
|
|
65738
|
-
const toolFilename = options
|
|
65739
|
-
const targetActionName =
|
|
65740
|
-
const defaultParametersString =
|
|
65780
|
+
const { toolFilename, targetAction, defaultParameters: defaultParams = [], aliasName } = options;
|
|
65781
|
+
const targetActionName = targetAction.actionName;
|
|
65782
|
+
const defaultParametersString = defaultParams.join(' ');
|
|
65741
65783
|
const summary = `An alias for "${toolFilename} ${targetActionName}${defaultParametersString ? ` ${defaultParametersString}` : ''}".`;
|
|
65742
65784
|
super({
|
|
65743
|
-
actionName:
|
|
65785
|
+
actionName: aliasName,
|
|
65744
65786
|
summary,
|
|
65745
65787
|
documentation: `${summary} For more information on the aliased command, use ` +
|
|
65746
65788
|
`"${toolFilename} ${targetActionName} --help".`
|
|
65747
65789
|
});
|
|
65748
65790
|
this._parameterKeyMap = new Map();
|
|
65749
|
-
this.targetAction =
|
|
65750
|
-
this.defaultParameters =
|
|
65791
|
+
this.targetAction = targetAction;
|
|
65792
|
+
this.defaultParameters = defaultParams;
|
|
65751
65793
|
}
|
|
65752
65794
|
/** @internal */
|
|
65753
65795
|
_registerDefinedParameters(state) {
|
|
@@ -65888,13 +65930,14 @@ const ACTION_NAME_REGEXP = /^[a-z][a-z0-9]*([-:][a-z0-9]+)*$/;
|
|
|
65888
65930
|
class CommandLineAction extends CommandLineParameterProvider_1.CommandLineParameterProvider {
|
|
65889
65931
|
constructor(options) {
|
|
65890
65932
|
super();
|
|
65891
|
-
|
|
65892
|
-
|
|
65933
|
+
const { actionName, summary, documentation } = options;
|
|
65934
|
+
if (!ACTION_NAME_REGEXP.test(actionName)) {
|
|
65935
|
+
throw new Error(`Invalid action name "${actionName}". ` +
|
|
65893
65936
|
`The name must be comprised of lower-case words optionally separated by hyphens or colons.`);
|
|
65894
65937
|
}
|
|
65895
|
-
this.actionName =
|
|
65896
|
-
this.summary =
|
|
65897
|
-
this.documentation =
|
|
65938
|
+
this.actionName = actionName;
|
|
65939
|
+
this.summary = summary;
|
|
65940
|
+
this.documentation = documentation;
|
|
65898
65941
|
this._argumentParser = undefined;
|
|
65899
65942
|
}
|
|
65900
65943
|
/**
|