@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
package/CHANGELOG.json ADDED
@@ -0,0 +1,237 @@
1
+ {
2
+ "name": "@minecraft/core-build-tasks",
3
+ "entries": [
4
+ {
5
+ "date": "Thu, 09 Jan 2025 19:53:11 GMT",
6
+ "version": "3.0.1",
7
+ "tag": "@minecraft/core-build-tasks_v3.0.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "rlanda@microsoft.com",
12
+ "package": "@minecraft/core-build-tasks",
13
+ "commit": "331b29c12a12be91d7702b3b38e78308b2fc30c3",
14
+ "comment": "Accidentally made the release a draft by default, fixed that"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 09 Jan 2025 19:25:04 GMT",
21
+ "version": "3.0.0",
22
+ "tag": "@minecraft/core-build-tasks_v3.0.0",
23
+ "comments": {
24
+ "major": [
25
+ {
26
+ "author": "rlanda@microsoft.com",
27
+ "package": "@minecraft/core-build-tasks",
28
+ "commit": "55a4e19212d882da876f3ed1918198c2ba2868b9",
29
+ "comment": "Export both ESM and CJS, but exclusively use CJS for just task configuration. Pre-bundle most dependencies to deal with ESM exclusive dependencies.\nTo leverage the new tasks, use a `just.config.cts` file to rely on CommonJS imports."
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Wed, 25 Dec 2024 16:02:44 GMT",
36
+ "version": "1.2.1",
37
+ "tag": "@minecraft/core-build-tasks_v1.2.1",
38
+ "comments": {
39
+ "patch": [
40
+ {
41
+ "author": "maescool@gmail.com",
42
+ "package": "@minecraft/core-build-tasks",
43
+ "commit": "acd85662a8c51479fef9c02e6a527ad8e1eece88",
44
+ "comment": "Fix: Make cleanTask synchronous This is to prevent it removing files when you 'copyFiles' to the same path directly after. This happens when using 'updateWorldTask' 'cleanCollateralTask' also is synchronous"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Tue, 03 Dec 2024 15:02:46 GMT",
51
+ "version": "1.2.0",
52
+ "tag": "@minecraft/core-build-tasks_v1.2.0",
53
+ "comments": {
54
+ "minor": [
55
+ {
56
+ "author": "rlanda@microsoft.com",
57
+ "package": "@minecraft/core-build-tasks",
58
+ "commit": "29d380a45b7db2e742f3a87002c3671f3e89f9b7",
59
+ "comment": "Tweak tsconfig so it's friendly to commonjs alongside ESM"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Tue, 26 Nov 2024 21:33:22 GMT",
66
+ "version": "1.1.7",
67
+ "tag": "@minecraft/core-build-tasks_v1.1.7",
68
+ "comments": {
69
+ "patch": [
70
+ {
71
+ "author": "rlanda@microsoft.com",
72
+ "package": "@minecraft/core-build-tasks",
73
+ "commit": "9d6cb505cd0dc9faf8ea80ed3660a84c92c914fd",
74
+ "comment": "build(dependabot): bump dotenv from 16.4.1 to 16.4.5"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "date": "Mon, 25 Nov 2024 23:28:43 GMT",
81
+ "version": "1.1.6",
82
+ "tag": "@minecraft/core-build-tasks_v1.1.6",
83
+ "comments": {
84
+ "none": [
85
+ {
86
+ "author": "rlanda@microsoft.com",
87
+ "package": "@minecraft/core-build-tasks",
88
+ "commit": "85b9345de0665a5179eea162ec53c219e9ca3bc9",
89
+ "comment": "Sync packages after failed publish"
90
+ }
91
+ ],
92
+ "patch": [
93
+ {
94
+ "author": "rlanda@microsoft.com",
95
+ "package": "@minecraft/core-build-tasks",
96
+ "commit": "85b9345de0665a5179eea162ec53c219e9ca3bc9",
97
+ "comment": "build(dependabot): bump just-scripts from 2.2.1 to 2.3.2"
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ {
103
+ "date": "Thu, 09 May 2024 22:54:01 GMT",
104
+ "version": "1.1.4",
105
+ "tag": "@minecraft/core-build-tasks_v1.1.4",
106
+ "comments": {
107
+ "none": [
108
+ {
109
+ "author": "frgarc@microsoft.com",
110
+ "package": "@minecraft/core-build-tasks",
111
+ "commit": "75c0d9f3bc2ab86da6d1e12567303ce664c0758a",
112
+ "comment": "- Adding basic linting to core-build-tasks"
113
+ }
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ "date": "Mon, 18 Mar 2024 23:32:29 GMT",
119
+ "version": "1.1.4",
120
+ "tag": "@minecraft/core-build-tasks_v1.1.4",
121
+ "comments": {
122
+ "patch": [
123
+ {
124
+ "author": "thomas@gamemodeone.com",
125
+ "package": "@minecraft/core-build-tasks",
126
+ "commit": "5187ed5b3382e15c6362f76fc91142125cf3b345",
127
+ "comment": "Add support for spaces in the path to the eslint config file"
128
+ },
129
+ {
130
+ "author": "thomas@gamemodeone.com",
131
+ "package": "@minecraft/core-build-tasks",
132
+ "commit": "5187ed5b3382e15c6362f76fc91142125cf3b345",
133
+ "comment": "Added repo link to package.json"
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ {
139
+ "date": "Mon, 04 Mar 2024 21:57:32 GMT",
140
+ "version": "1.1.3",
141
+ "tag": "@minecraft/core-build-tasks_v1.1.3",
142
+ "comments": {
143
+ "patch": [
144
+ {
145
+ "author": "frgarc@microsoft.com",
146
+ "package": "@minecraft/core-build-tasks",
147
+ "commit": "32d36cd582a1f6258301b94e24ffa3cfcd1c1350",
148
+ "comment": "- Moving webpack to dev dependencies"
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "date": "Fri, 01 Mar 2024 22:57:50 GMT",
155
+ "version": "1.1.2",
156
+ "tag": "@minecraft/core-build-tasks_v1.1.2",
157
+ "comments": {
158
+ "patch": [
159
+ {
160
+ "author": "frgarc@microsoft.com",
161
+ "package": "@minecraft/core-build-tasks",
162
+ "commit": "7ff14879535d14eca032d3dd51df457e9e0b03f2",
163
+ "comment": "Support for source map files creation at different path"
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ {
169
+ "date": "Thu, 29 Feb 2024 20:11:07 GMT",
170
+ "version": "1.1.1",
171
+ "tag": "@minecraft/core-build-tasks_v1.1.1",
172
+ "comments": {
173
+ "patch": [
174
+ {
175
+ "author": "frgarc@microsoft.com",
176
+ "package": "@minecraft/core-build-tasks",
177
+ "commit": "945df920a7423e35485211c5c9055441e42a1ac0",
178
+ "comment": "Support for ESLint Flat Config"
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ {
184
+ "date": "Tue, 27 Feb 2024 00:08:06 GMT",
185
+ "version": "1.1.0",
186
+ "tag": "@minecraft/core-build-tasks_v1.1.0",
187
+ "comments": {
188
+ "minor": [
189
+ {
190
+ "author": "frgarc@microsoft.com",
191
+ "package": "@minecraft/core-build-tasks",
192
+ "commit": "c1fb5000f9b01b0a625ff06b48e78672bdfc2aaa",
193
+ "comment": "Adding new tasks: bundle, cleanCollateral, copy, updateWorld, mcaddon, watch"
194
+ }
195
+ ]
196
+ }
197
+ },
198
+ {
199
+ "date": "Mon, 29 Jan 2024 19:08:51 GMT",
200
+ "version": "1.0.1",
201
+ "tag": "@minecraft/core-build-tasks_v1.0.1",
202
+ "comments": {
203
+ "patch": [
204
+ {
205
+ "author": "rlanda@microsoft.com",
206
+ "package": "@minecraft/core-build-tasks",
207
+ "commit": "4685c0cbe1a9d0c9d84e61f66a6cde577042ec2d",
208
+ "comment": "README fixes"
209
+ }
210
+ ]
211
+ }
212
+ },
213
+ {
214
+ "date": "Mon, 29 Jan 2024 18:22:45 GMT",
215
+ "version": "1.0.0",
216
+ "tag": "@minecraft/core-build-tasks_v1.0.0",
217
+ "comments": {
218
+ "patch": [
219
+ {
220
+ "author": "rlanda@microsoft.com",
221
+ "package": "@minecraft/core-build-tasks",
222
+ "commit": "019bdc8a1ba57bcdc289a978dd49c959728cbe9e",
223
+ "comment": "Trim down package contents for publish. Ensure right exports. Fixing version specifications."
224
+ }
225
+ ],
226
+ "major": [
227
+ {
228
+ "author": "rlanda@microsoft.com",
229
+ "package": "@minecraft/core-build-tasks",
230
+ "commit": "019bdc8a1ba57bcdc289a978dd49c959728cbe9e",
231
+ "comment": "Initial implementation of a @minecraft/math library with support for two paradigms. Added test and lint support, and also migrated lint rule for command suggestions to this repo. Started the creation of shared build tools."
232
+ }
233
+ ]
234
+ }
235
+ }
236
+ ]
237
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,115 @@
1
+ # Change Log - @minecraft/core-build-tasks
2
+
3
+ <!-- This log was last generated on Thu, 09 Jan 2025 19:53:11 GMT and should not be manually modified. -->
4
+
5
+ <!-- Start content -->
6
+
7
+ ## 3.0.1
8
+
9
+ Thu, 09 Jan 2025 19:53:11 GMT
10
+
11
+ ### Patches
12
+
13
+ - Accidentally made the release a draft by default, fixed that (rlanda@microsoft.com)
14
+
15
+ ## 3.0.0
16
+
17
+ Thu, 09 Jan 2025 19:25:04 GMT
18
+
19
+ ### Major changes
20
+
21
+ - Export both ESM and CJS, but exclusively use CJS for just task configuration. Pre-bundle most dependencies to deal with ESM exclusive dependencies.
22
+ To leverage the new tasks, use a `just.config.cts` file to rely on CommonJS imports. (rlanda@microsoft.com)
23
+
24
+ ## 1.2.1
25
+
26
+ Wed, 25 Dec 2024 16:02:44 GMT
27
+
28
+ ### Patches
29
+
30
+ - Fix: Make cleanTask synchronous This is to prevent it removing files when you 'copyFiles' to the same path directly after. This happens when using 'updateWorldTask' 'cleanCollateralTask' also is synchronous (maescool@gmail.com)
31
+
32
+ ## 1.2.0
33
+
34
+ Tue, 03 Dec 2024 15:02:46 GMT
35
+
36
+ ### Minor changes
37
+
38
+ - Tweak tsconfig so it's friendly to commonjs alongside ESM (rlanda@microsoft.com)
39
+
40
+ ## 1.1.7
41
+
42
+ Tue, 26 Nov 2024 21:33:22 GMT
43
+
44
+ ### Patches
45
+
46
+ - build(dependabot): bump dotenv from 16.4.1 to 16.4.5 (rlanda@microsoft.com)
47
+
48
+ ## 1.1.6
49
+
50
+ Mon, 25 Nov 2024 23:28:43 GMT
51
+
52
+ ### Patches
53
+
54
+ - build(dependabot): bump just-scripts from 2.2.1 to 2.3.2 (rlanda@microsoft.com)
55
+
56
+ ## 1.1.4
57
+
58
+ Mon, 18 Mar 2024 23:32:29 GMT
59
+
60
+ ### Patches
61
+
62
+ - Add support for spaces in the path to the eslint config file (thomas@gamemodeone.com)
63
+ - Added repo link to package.json (thomas@gamemodeone.com)
64
+
65
+ ## 1.1.3
66
+
67
+ Mon, 04 Mar 2024 21:57:32 GMT
68
+
69
+ ### Patches
70
+
71
+ - - Moving webpack to dev dependencies (frgarc@microsoft.com)
72
+
73
+ ## 1.1.2
74
+
75
+ Fri, 01 Mar 2024 22:57:50 GMT
76
+
77
+ ### Patches
78
+
79
+ - Support for source map files creation at different path (frgarc@microsoft.com)
80
+
81
+ ## 1.1.1
82
+
83
+ Thu, 29 Feb 2024 20:11:07 GMT
84
+
85
+ ### Patches
86
+
87
+ - Support for ESLint Flat Config (frgarc@microsoft.com)
88
+
89
+ ## 1.1.0
90
+
91
+ Tue, 27 Feb 2024 00:08:06 GMT
92
+
93
+ ### Minor changes
94
+
95
+ - Adding new tasks: bundle, cleanCollateral, copy, updateWorld, mcaddon, watch (frgarc@microsoft.com)
96
+
97
+ ## 1.0.1
98
+
99
+ Mon, 29 Jan 2024 19:08:51 GMT
100
+
101
+ ### Patches
102
+
103
+ - README fixes (rlanda@microsoft.com)
104
+
105
+ ## 1.0.0
106
+
107
+ Mon, 29 Jan 2024 18:22:45 GMT
108
+
109
+ ### Major changes
110
+
111
+ - Initial implementation of a @minecraft/math library with support for two paradigms. Added test and lint support, and also migrated lint rule for command suggestions to this repo. Started the creation of shared build tools. (rlanda@microsoft.com)
112
+
113
+ ### Patches
114
+
115
+ - Trim down package contents for publish. Ensure right exports. Fixing version specifications. (rlanda@microsoft.com)
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Core Build Tasks
2
2
 
3
- This package contains common build tasks used within the minecraft-scripting-libraries build, but can be used in other repositories as well. If a task is used by `just` in multiple packages, it is moved into this package to reduce duplication.
3
+ This package contains common build tasks used within the minecraft-scripting-libraries build, but can be used in other repositories as well. The tasks are designed to be used with the [just](https://microsoft.github.io/just/tasks/) task runner, as this is the task runner integrated into all of the minecraft starter kits and libraries. If a task is used by `just` in multiple packages, it is moved into this package to reduce duplication.
4
4
 
5
- This subdirectory only runs the `build` step, and more specifically, only runs `tsc` today since this package itself defines build tasks, so it must be kept lightweight.
5
+ This subdirectory primarily runs the `build` step, and more specifically, only runs `tsc` today since this package itself defines build tasks, so it must be kept lightweight. After build tooling is built, subsequent lint and test can be run on this directory.
6
+
7
+ Note, this package builds using both CommonJS modules and ESM because the just task runner expects imports to support common JS. We support ESM as well in the event these tasks are used in a different environment.