@rushstack/package-extractor 0.8.1 → 0.9.0
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 +12 -0
- package/CHANGELOG.md +8 -1
- package/dist/package-extractor.d.ts +13 -19
- package/dist/scripts/create-links.js +23903 -93
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/AssetHandler.d.ts +50 -0
- package/lib/AssetHandler.d.ts.map +1 -0
- package/lib/AssetHandler.js +165 -0
- package/lib/AssetHandler.js.map +1 -0
- package/lib/PackageExtractor.d.ts +12 -19
- package/lib/PackageExtractor.d.ts.map +1 -1
- package/lib/PackageExtractor.js +80 -224
- package/lib/PackageExtractor.js.map +1 -1
- package/lib/Utils.d.ts +20 -0
- package/lib/Utils.d.ts.map +1 -1
- package/lib/Utils.js +36 -1
- package/lib/Utils.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/scripts/create-links.js +84 -110
- package/lib/scripts/create-links.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.9.0",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.9.0",
|
|
7
|
+
"date": "Mon, 16 Sep 2024 02:09:00 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Add a `files` field to the `extractor-metadata.json` file"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.8.1",
|
|
6
18
|
"tag": "@rushstack/package-extractor_v0.8.1",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 16 Sep 2024 02:09:00 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.9.0
|
|
6
|
+
Mon, 16 Sep 2024 02:09:00 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- Add a `files` field to the `extractor-metadata.json` file
|
|
4
11
|
|
|
5
12
|
## 0.8.1
|
|
6
13
|
Fri, 13 Sep 2024 00:11:43 GMT
|
|
@@ -47,6 +47,10 @@ export declare interface IExtractorMetadataJson {
|
|
|
47
47
|
* A list of all links that are part of the extracted project.
|
|
48
48
|
*/
|
|
49
49
|
links: ILinkInfo[];
|
|
50
|
+
/**
|
|
51
|
+
* A list of all files that are part of the extracted project.
|
|
52
|
+
*/
|
|
53
|
+
files: string[];
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
@@ -120,7 +124,7 @@ export declare interface IExtractorOptions {
|
|
|
120
124
|
* to create links on the server machine, after the files have been uploaded.
|
|
121
125
|
* "none": Do nothing; some other tool may create the links later, based on the extractor-metadata.json file.
|
|
122
126
|
*/
|
|
123
|
-
linkCreation?:
|
|
127
|
+
linkCreation?: LinkCreationMode;
|
|
124
128
|
/**
|
|
125
129
|
* The path to the generated link creation script. This is only used when {@link IExtractorOptions.linkCreation}
|
|
126
130
|
* is 'script'.
|
|
@@ -247,6 +251,13 @@ export declare interface IProjectInfoJson {
|
|
|
247
251
|
path: string;
|
|
248
252
|
}
|
|
249
253
|
|
|
254
|
+
/**
|
|
255
|
+
* The mode to use for link creation.
|
|
256
|
+
*
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
259
|
+
export declare type LinkCreationMode = 'default' | 'script' | 'none';
|
|
260
|
+
|
|
250
261
|
/**
|
|
251
262
|
* Manages the business logic for the "rush deploy" command.
|
|
252
263
|
*
|
|
@@ -270,33 +281,16 @@ export declare class PackageExtractor {
|
|
|
270
281
|
*/
|
|
271
282
|
private _collectFoldersAsync;
|
|
272
283
|
private _applyDependencyFilters;
|
|
273
|
-
/**
|
|
274
|
-
* Maps a file path from IExtractorOptions.sourceRootFolder to IExtractorOptions.targetRootFolder
|
|
275
|
-
*
|
|
276
|
-
* Example input: "C:\\MyRepo\\libraries\\my-lib"
|
|
277
|
-
* Example output: "C:\\MyRepo\\common\\deploy\\libraries\\my-lib"
|
|
278
|
-
*/
|
|
279
|
-
private _remapPathForExtractorFolder;
|
|
280
|
-
/**
|
|
281
|
-
* Maps a file path from IExtractorOptions.sourceRootFolder to relative path
|
|
282
|
-
*
|
|
283
|
-
* Example input: "C:\\MyRepo\\libraries\\my-lib"
|
|
284
|
-
* Example output: "libraries/my-lib"
|
|
285
|
-
*/
|
|
286
|
-
private _remapPathForExtractorMetadata;
|
|
287
284
|
/**
|
|
288
285
|
* Copy one package folder to the extractor target folder.
|
|
289
286
|
*/
|
|
290
287
|
private _extractFolderAsync;
|
|
291
|
-
/**
|
|
292
|
-
* Create a symlink as described by the ILinkInfo object.
|
|
293
|
-
*/
|
|
294
|
-
private _extractSymlinkAsync;
|
|
295
288
|
/**
|
|
296
289
|
* Write the common/deploy/deploy-metadata.json file.
|
|
297
290
|
*/
|
|
298
291
|
private _writeExtractorMetadataAsync;
|
|
299
292
|
private _makeBinLinksAsync;
|
|
293
|
+
private _writeCreateLinksScriptAsync;
|
|
300
294
|
}
|
|
301
295
|
|
|
302
296
|
export { }
|