@minecraft/core-build-tasks 5.0.0 → 5.1.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 CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@minecraft/core-build-tasks",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 28 Apr 2025 17:15:09 GMT",
5
+ "date": "Fri, 23 May 2025 10:43:14 GMT",
6
+ "version": "5.1.0",
7
+ "tag": "@minecraft/core-build-tasks_v5.1.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "jake@xbox.com",
12
+ "package": "@minecraft/core-build-tasks",
13
+ "commit": "fe26c2ad6702cda34dbb1195a6882df3d27d3ab8",
14
+ "comment": "Added alias option to BundleTaskParameters"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 28 Apr 2025 17:15:23 GMT",
6
21
  "version": "5.0.0",
7
22
  "tag": "@minecraft/core-build-tasks_v5.0.0",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @minecraft/core-build-tasks
2
2
 
3
- <!-- This log was last generated on Mon, 28 Apr 2025 17:15:09 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Fri, 23 May 2025 10:43:14 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 5.1.0
8
+
9
+ Fri, 23 May 2025 10:43:14 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Added alias option to BundleTaskParameters (jake@xbox.com)
14
+
7
15
  ## 5.0.0
8
16
 
9
- Mon, 28 Apr 2025 17:15:09 GMT
17
+ Mon, 28 Apr 2025 17:15:23 GMT
10
18
 
11
19
  ### Major changes
12
20
 
package/lib/index.js CHANGED
@@ -44771,7 +44771,8 @@ function bundleTask(options) {
44771
44771
  sourcemap: isRequiredToLinkJs ? "external" : options.sourcemap,
44772
44772
  external: options.external,
44773
44773
  write: !isRequiredToMakeChanges,
44774
- dropLabels: options.dropLabels
44774
+ dropLabels: options.dropLabels,
44775
+ alias: options.alias
44775
44776
  });
44776
44777
  if (buildResult.errors.length === 0) {
44777
44778
  if (isRequiredToMakeChanges) {
@@ -15,6 +15,8 @@ export type BundleTaskParameters = {
15
15
  outputSourcemapPath?: string;
16
16
  /** Strip out statements with these labels. Documentation: https://esbuild.github.io/api/#drop-labels */
17
17
  dropLabels?: string[];
18
+ /** This feature lets you substitute one package (key) for another (value) when bundling. */
19
+ alias?: Record<string, string>;
18
20
  };
19
21
  export type PostProcessOutputFilesResult = {
20
22
  sourceMapDirectory: string;
package/lib-cjs/index.js CHANGED
@@ -44798,7 +44798,8 @@ function bundleTask(options) {
44798
44798
  sourcemap: isRequiredToLinkJs ? "external" : options.sourcemap,
44799
44799
  external: options.external,
44800
44800
  write: !isRequiredToMakeChanges,
44801
- dropLabels: options.dropLabels
44801
+ dropLabels: options.dropLabels,
44802
+ alias: options.alias
44802
44803
  });
44803
44804
  if (buildResult.errors.length === 0) {
44804
44805
  if (isRequiredToMakeChanges) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/core-build-tasks",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Common build tasks used for minecraft-scripting-libraries",
5
5
  "exports": {
6
6
  "import": "./lib/index.js",