@minecraft/core-build-tasks 1.2.1 → 3.0.1

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.
Files changed (51) hide show
  1. package/CHANGELOG.json +237 -0
  2. package/CHANGELOG.md +115 -0
  3. package/README.md +4 -2
  4. package/lib/index.js +41892 -22
  5. package/lib/tasks/helpers/getGameDeploymentRootPaths.d.ts +1 -1
  6. package/lib/tasks/index.d.ts +2 -1
  7. package/lib/tasks/publishRelease.d.ts +22 -0
  8. package/lib/tasks/zip.d.ts +1 -1
  9. package/lib-cjs/index.js +41919 -0
  10. package/package.json +19 -18
  11. package/lib/index.js.map +0 -1
  12. package/lib/index.test.js +0 -11
  13. package/lib/index.test.js.map +0 -1
  14. package/lib/platforms/MinecraftProduct.js +0 -15
  15. package/lib/platforms/MinecraftProduct.js.map +0 -1
  16. package/lib/platforms/index.js +0 -20
  17. package/lib/platforms/index.js.map +0 -1
  18. package/lib/setupEnvironment.js +0 -18
  19. package/lib/setupEnvironment.js.map +0 -1
  20. package/lib/tasks/api-extractor.js +0 -35
  21. package/lib/tasks/api-extractor.js.map +0 -1
  22. package/lib/tasks/bundle.js +0 -98
  23. package/lib/tasks/bundle.js.map +0 -1
  24. package/lib/tasks/bundle.test.js +0 -344
  25. package/lib/tasks/bundle.test.js.map +0 -1
  26. package/lib/tasks/clean.js +0 -26
  27. package/lib/tasks/clean.js.map +0 -1
  28. package/lib/tasks/cleanCollateral.js +0 -88
  29. package/lib/tasks/cleanCollateral.js.map +0 -1
  30. package/lib/tasks/copy.js +0 -41
  31. package/lib/tasks/copy.js.map +0 -1
  32. package/lib/tasks/coreLint.js +0 -64
  33. package/lib/tasks/coreLint.js.map +0 -1
  34. package/lib/tasks/helpers/copyFiles.js +0 -31
  35. package/lib/tasks/helpers/copyFiles.js.map +0 -1
  36. package/lib/tasks/helpers/getGameDeploymentRootPaths.js +0 -65
  37. package/lib/tasks/helpers/getGameDeploymentRootPaths.js.map +0 -1
  38. package/lib/tasks/helpers/getOrThrowFromProcess.js +0 -22
  39. package/lib/tasks/helpers/getOrThrowFromProcess.js.map +0 -1
  40. package/lib/tasks/helpers/index.js +0 -22
  41. package/lib/tasks/helpers/index.js.map +0 -1
  42. package/lib/tasks/index.js +0 -30
  43. package/lib/tasks/index.js.map +0 -1
  44. package/lib/tasks/updateWorld.js +0 -26
  45. package/lib/tasks/updateWorld.js.map +0 -1
  46. package/lib/tasks/vitest.js +0 -13
  47. package/lib/tasks/vitest.js.map +0 -1
  48. package/lib/tasks/watch.js +0 -62
  49. package/lib/tasks/watch.js.map +0 -1
  50. package/lib/tasks/zip.js +0 -82
  51. package/lib/tasks/zip.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import { MinecraftProduct } from '../../platforms';
1
+ import { MinecraftProduct } from '../../platforms/index';
2
2
  export declare function getGameDeploymentRootPaths(): Record<MinecraftProduct, string | undefined>;
3
3
  export declare function getTargetWorldPath(): string;
@@ -4,7 +4,8 @@ export * from './clean';
4
4
  export * from './cleanCollateral';
5
5
  export * from './copy';
6
6
  export * from './coreLint';
7
- export * from './helpers';
7
+ export * from './helpers/index';
8
+ export * from './publishRelease';
8
9
  export * from './vitest';
9
10
  export * from './updateWorld';
10
11
  export * from './watch';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Configuration for publishing the release
3
+ */
4
+ export type PublishReleaseTaskConfig = {
5
+ /**
6
+ * A custom message to include in the release
7
+ */
8
+ message: string;
9
+ /**
10
+ * Repo Owner/Organization
11
+ */
12
+ repoOwner: string;
13
+ /**
14
+ * Name of the repository
15
+ */
16
+ repoName: string;
17
+ /**
18
+ * GitHub token used for creating the release. If not specified, will attempt to use REPO_PAT environment variable
19
+ */
20
+ token?: string;
21
+ };
22
+ export declare function publishReleaseTask(config: PublishReleaseTaskConfig): () => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { CopyTaskParameters } from '.';
1
+ import { CopyTaskParameters } from './copy';
2
2
  import { TaskFunction, parallel } from 'just-scripts';
3
3
  export type ZipTaskParameters = CopyTaskParameters & {
4
4
  /**