@minecraft/core-build-tasks 1.1.1 → 1.1.2

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.
@@ -1,4 +1,5 @@
1
1
  import { parallel } from 'just-scripts';
2
+ import { BuildResult } from 'esbuild';
2
3
  export type BundleTaskParameters = {
3
4
  /** Initial script to be evaluated for the build. Documentation: https://esbuild.github.io/api/#entry-points */
4
5
  entryPoint: string;
@@ -8,7 +9,15 @@ export type BundleTaskParameters = {
8
9
  minifyWhitespace?: boolean;
9
10
  /** The output file for the bundle. Documentation: https://esbuild.github.io/api/#outfile */
10
11
  outfile: string;
11
- /** Flag to specify how to generate source map. Documentation: https://esbuild.github.io/api/#sourcemap */
12
+ /** Flag to specify to generate a source map file. Documentation: https://esbuild.github.io/api/#sourcemap*/
12
13
  sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both';
14
+ /** The output path for the source map file. Ignored if sourcemap is false or 'inline'. */
15
+ outputSourcemapPath?: string;
13
16
  };
17
+ export type PostProcessOutputFilesResult = {
18
+ sourceMapDirectory: string;
19
+ outputDirectory: string;
20
+ generatedFiles: Record<string, string>;
21
+ };
22
+ export declare function postProcessOutputFiles(options: BundleTaskParameters, buildResult: BuildResult): PostProcessOutputFilesResult | undefined;
14
23
  export declare function bundleTask(options: BundleTaskParameters): ReturnType<typeof parallel>;
@@ -5,19 +5,93 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  return (mod && mod.__esModule) ? mod : { "default": mod };
6
6
  };
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.bundleTask = void 0;
8
+ exports.bundleTask = exports.postProcessOutputFiles = void 0;
9
9
  const esbuild_1 = __importDefault(require("esbuild"));
10
+ const fs_1 = __importDefault(require("fs"));
11
+ const path_1 = __importDefault(require("path"));
12
+ const MAP_EXTENSION = '.map';
13
+ function isRequiredToMakeAnyFileChange(sourcemap) {
14
+ return sourcemap !== false && sourcemap !== 'inline';
15
+ }
16
+ function isRequiredToLinkJsFile(sourcemap) {
17
+ return sourcemap === true || sourcemap === 'linked';
18
+ }
19
+ function linkSourceMaps(sourceMapDirectory, outputDirectory, options, outputFiles) {
20
+ const generatedFiles = {};
21
+ for (const element of outputFiles) {
22
+ if (element.path.endsWith(MAP_EXTENSION)) {
23
+ const parsedPath = path_1.default.parse(element.path);
24
+ const sourceMapFilePath = path_1.default.join(sourceMapDirectory, parsedPath.base);
25
+ const sourceMapContent = JSON.parse(element.text);
26
+ // Add JS file location.
27
+ sourceMapContent.file = path_1.default
28
+ .relative(sourceMapDirectory, path_1.default.join(outputDirectory, parsedPath.name))
29
+ .replace(/\\/g, '/');
30
+ generatedFiles[sourceMapFilePath] = JSON.stringify(sourceMapContent);
31
+ }
32
+ else if (isRequiredToLinkJsFile(options.sourcemap)) {
33
+ // Link to the source map file.
34
+ const dir = path_1.default.parse(element.path).dir;
35
+ const targetSourceMap = path_1.default
36
+ .join(path_1.default.relative(dir, sourceMapDirectory), path_1.default.parse(element.path).base)
37
+ .replace(/\\/g, '/');
38
+ generatedFiles[element.path] = element.text + `\n//# sourceMappingURL=${targetSourceMap}${MAP_EXTENSION}\n`;
39
+ }
40
+ else {
41
+ generatedFiles[element.path] = element.text;
42
+ }
43
+ }
44
+ return generatedFiles;
45
+ }
46
+ function writeFiles(postProcessOutputFilesResult) {
47
+ fs_1.default.mkdirSync(postProcessOutputFilesResult.outputDirectory, { recursive: true });
48
+ if (postProcessOutputFilesResult.sourceMapDirectory !== postProcessOutputFilesResult.outputDirectory) {
49
+ fs_1.default.mkdirSync(postProcessOutputFilesResult.sourceMapDirectory, { recursive: true });
50
+ }
51
+ for (const path of Object.keys(postProcessOutputFilesResult.generatedFiles)) {
52
+ fs_1.default.writeFileSync(path, postProcessOutputFilesResult.generatedFiles[path]);
53
+ }
54
+ }
55
+ function postProcessOutputFiles(options, buildResult) {
56
+ if (!buildResult.outputFiles) {
57
+ return undefined;
58
+ }
59
+ const outputDirectory = path_1.default.parse(options.outfile).dir;
60
+ const sourceMapDirectory = path_1.default.resolve(options.outputSourcemapPath ?? outputDirectory);
61
+ const generatedFiles = linkSourceMaps(sourceMapDirectory, outputDirectory, options, buildResult.outputFiles);
62
+ return { sourceMapDirectory, outputDirectory, generatedFiles: generatedFiles };
63
+ }
64
+ exports.postProcessOutputFiles = postProcessOutputFiles;
10
65
  function bundleTask(options) {
11
- return async () => {
12
- return esbuild_1.default.build({
66
+ return () => {
67
+ const isRequiredToMakeChanges = isRequiredToMakeAnyFileChange(options.sourcemap);
68
+ const isRequiredToLinkJs = isRequiredToLinkJsFile(options.sourcemap);
69
+ const buildResult = esbuild_1.default.buildSync({
13
70
  entryPoints: [options.entryPoint],
14
71
  bundle: true,
15
72
  format: 'esm',
16
73
  minifyWhitespace: options.minifyWhitespace,
17
74
  outfile: options.outfile,
18
- sourcemap: options.sourcemap,
75
+ sourcemap: isRequiredToLinkJs ? 'external' : options.sourcemap,
19
76
  external: options.external,
77
+ write: !isRequiredToMakeChanges,
20
78
  });
79
+ if (buildResult.errors.length === 0) {
80
+ if (isRequiredToMakeChanges) {
81
+ if (!buildResult.outputFiles) {
82
+ process.exitCode = 1;
83
+ return Promise.reject(new Error('No output files were generated, check that your entrypoint file is configured correctly.'));
84
+ }
85
+ const result = postProcessOutputFiles(options, buildResult);
86
+ if (result) {
87
+ writeFiles(result);
88
+ }
89
+ }
90
+ process.exitCode = 0;
91
+ return Promise.resolve();
92
+ }
93
+ process.exitCode = 1;
94
+ return Promise.reject(new Error(buildResult.errors.join('\n')));
21
95
  };
22
96
  }
23
97
  exports.bundleTask = bundleTask;
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/tasks/bundle.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;;;AAGlC,sDAA8B;AAmB9B,SAAgB,UAAU,CAAC,OAA6B;IACpD,OAAO,KAAK,IAAI,EAAE;QACd,OAAO,iBAAO,CAAC,KAAK,CAAC;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,CAAC,uBAAuB;SAClC,CAAC,CAAC;QAEH,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;YACjC,IAAI,uBAAuB,EAAE;gBACzB,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE;oBAC1B,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;oBACrB,OAAO,OAAO,CAAC,MAAM,CACjB,IAAI,KAAK,CACL,0FAA0F,CAC7F,CACJ,CAAC;iBACL;gBAED,MAAM,MAAM,GAAG,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;gBAC5D,IAAI,MAAM,EAAE;oBACR,UAAU,CAAC,MAAM,CAAC,CAAC;iBACtB;aACJ;YAED,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YACrB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC5B;QAED,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC;AACN,CAAC;AAvCD,gCAuCC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,344 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ var __importDefault = (this && this.__importDefault) || function (mod) {
5
+ return (mod && mod.__esModule) ? mod : { "default": mod };
6
+ };
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ const vitest_1 = require("vitest");
9
+ const bundle_1 = require("./bundle");
10
+ const path_1 = __importDefault(require("path"));
11
+ function _createParameters(sourcemap, outputFile, outputSourcemapPath) {
12
+ return {
13
+ options: {
14
+ entryPoint: '',
15
+ outfile: outputFile,
16
+ sourcemap: sourcemap,
17
+ outputSourcemapPath: outputSourcemapPath,
18
+ },
19
+ buildResult: {
20
+ outputFiles: [
21
+ { path: outputFile, contents: new Uint8Array(), hash: '', text: '' },
22
+ {
23
+ path: 'main.js.map',
24
+ contents: new Uint8Array(),
25
+ hash: '',
26
+ text: '{"version":3,"sources":["../../scripts/main.ts"],"sourcesContent":[""],"mappings":";AAAA,SAAS,OAAO;","names":[]}',
27
+ },
28
+ ],
29
+ errors: [],
30
+ warnings: [],
31
+ metafile: { inputs: {}, outputs: {} },
32
+ mangleCache: {},
33
+ },
34
+ };
35
+ }
36
+ (0, vitest_1.describe)('postProcessOutputFiles with source map files at different path', () => {
37
+ (0, vitest_1.it)('sourcemap `true` - Dictionary populated correctly', () => {
38
+ const sourcemap = true;
39
+ const debugPath = path_1.default.resolve('./dist/debug');
40
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
41
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
42
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/debug');
43
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
44
+ const expectedOutputFilePath = outputFile;
45
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/debug/main.js.map');
46
+ const expectedSourceMappingURL = '\n//# sourceMappingURL=../debug/main.js.map\n';
47
+ const expectedSourceMapFile = '../scripts/main.js';
48
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
49
+ (0, vitest_1.expect)(result).toBeDefined();
50
+ if (result) {
51
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
52
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
53
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
54
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
55
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
56
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
57
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
58
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
59
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
60
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
61
+ }
62
+ });
63
+ (0, vitest_1.it)('sourcemap `linked` - Dictionary populated correctly', () => {
64
+ const sourcemap = 'linked';
65
+ const debugPath = path_1.default.resolve('./dist/debug');
66
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
67
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
68
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/debug');
69
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
70
+ const expectedOutputFilePath = outputFile;
71
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/debug/main.js.map');
72
+ const expectedSourceMappingURL = '\n//# sourceMappingURL=../debug/main.js.map\n';
73
+ const expectedSourceMapFile = '../scripts/main.js';
74
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
75
+ (0, vitest_1.expect)(result).toBeDefined();
76
+ if (result) {
77
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
78
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
79
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
80
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
81
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
82
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
83
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
84
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
85
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
86
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
87
+ }
88
+ });
89
+ (0, vitest_1.it)('sourcemap `external` - Dictionary populated correctly', () => {
90
+ const sourcemap = 'external';
91
+ const debugPath = path_1.default.resolve('./dist/debug');
92
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
93
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
94
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/debug');
95
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
96
+ const expectedOutputFilePath = outputFile;
97
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/debug/main.js.map');
98
+ const expectedSourceMappingURL = '';
99
+ const expectedSourceMapFile = '../scripts/main.js';
100
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
101
+ (0, vitest_1.expect)(result).toBeDefined();
102
+ if (result) {
103
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
104
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
105
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
106
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
107
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
108
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
109
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
110
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
111
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
112
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
113
+ }
114
+ });
115
+ (0, vitest_1.it)('sourcemap `both` - Dictionary populated correctly', () => {
116
+ const sourcemap = 'both';
117
+ const debugPath = path_1.default.resolve('./dist/debug');
118
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
119
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
120
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/debug');
121
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
122
+ const expectedOutputFilePath = outputFile;
123
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/debug/main.js.map');
124
+ const expectedSourceMappingURL = '';
125
+ const expectedSourceMapFile = '../scripts/main.js';
126
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
127
+ (0, vitest_1.expect)(result).toBeDefined();
128
+ if (result) {
129
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
130
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
131
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
132
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
133
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
134
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
135
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
136
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
137
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
138
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
139
+ }
140
+ });
141
+ (0, vitest_1.it)('sourcemap `inline` - Dictionary populated correctly', () => {
142
+ const sourcemap = 'inline';
143
+ const debugPath = path_1.default.resolve('./dist/debug');
144
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
145
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
146
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/debug');
147
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
148
+ const expectedOutputFilePath = outputFile;
149
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/debug/main.js.map');
150
+ const expectedSourceMappingURL = '';
151
+ const expectedSourceMapFile = '../scripts/main.js';
152
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
153
+ (0, vitest_1.expect)(result).toBeDefined();
154
+ if (result) {
155
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
156
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
157
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
158
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
159
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
160
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
161
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
162
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
163
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
164
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
165
+ }
166
+ });
167
+ });
168
+ (0, vitest_1.describe)('postProcessOutputFiles with source map files at same path', () => {
169
+ (0, vitest_1.it)('sourcemap `true` - Dictionary populated correctly using undefined', () => {
170
+ const sourcemap = true;
171
+ const debugPath = undefined;
172
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
173
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
174
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/scripts');
175
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
176
+ const expectedOutputFilePath = outputFile;
177
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/scripts/main.js.map');
178
+ const expectedSourceMappingURL = '\n//# sourceMappingURL=main.js.map\n';
179
+ const expectedSourceMapFile = 'main.js';
180
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
181
+ (0, vitest_1.expect)(result).toBeDefined();
182
+ if (result) {
183
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
184
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
185
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
186
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
187
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
188
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
189
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
190
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
191
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
192
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
193
+ }
194
+ });
195
+ (0, vitest_1.it)('sourcemap `true` - Dictionary populated correctly using same path explicitly', () => {
196
+ const sourcemap = true;
197
+ const debugPath = path_1.default.resolve('./dist/scripts');
198
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
199
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
200
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/scripts');
201
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
202
+ const expectedOutputFilePath = outputFile;
203
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/scripts/main.js.map');
204
+ const expectedSourceMappingURL = '\n//# sourceMappingURL=main.js.map\n';
205
+ const expectedSourceMapFile = 'main.js';
206
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
207
+ (0, vitest_1.expect)(result).toBeDefined();
208
+ if (result) {
209
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
210
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
211
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
212
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
213
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
214
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
215
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
216
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
217
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
218
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
219
+ }
220
+ });
221
+ (0, vitest_1.it)('sourcemap `linked` - Dictionary populated correctly using undefined', () => {
222
+ const sourcemap = 'linked';
223
+ const debugPath = undefined;
224
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
225
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
226
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/scripts');
227
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
228
+ const expectedOutputFilePath = outputFile;
229
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/scripts/main.js.map');
230
+ const expectedSourceMappingURL = '\n//# sourceMappingURL=main.js.map\n';
231
+ const expectedSourceMapFile = 'main.js';
232
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
233
+ (0, vitest_1.expect)(result).toBeDefined();
234
+ if (result) {
235
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
236
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
237
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
238
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
239
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
240
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
241
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
242
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
243
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
244
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
245
+ }
246
+ });
247
+ (0, vitest_1.it)('sourcemap `external` - Dictionary populated correctly using undefined', () => {
248
+ const sourcemap = 'external';
249
+ const debugPath = undefined;
250
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
251
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
252
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/scripts');
253
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
254
+ const expectedOutputFilePath = outputFile;
255
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/scripts/main.js.map');
256
+ const expectedSourceMappingURL = '';
257
+ const expectedSourceMapFile = 'main.js';
258
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
259
+ (0, vitest_1.expect)(result).toBeDefined();
260
+ if (result) {
261
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
262
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
263
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
264
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
265
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
266
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
267
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
268
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
269
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
270
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
271
+ }
272
+ });
273
+ (0, vitest_1.it)('sourcemap `both` - Dictionary populated correctly using undefined', () => {
274
+ const sourcemap = 'both';
275
+ const debugPath = undefined;
276
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
277
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
278
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/scripts');
279
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
280
+ const expectedOutputFilePath = outputFile;
281
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/scripts/main.js.map');
282
+ const expectedSourceMappingURL = '';
283
+ const expectedSourceMapFile = 'main.js';
284
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
285
+ (0, vitest_1.expect)(result).toBeDefined();
286
+ if (result) {
287
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
288
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
289
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
290
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
291
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
292
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
293
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
294
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
295
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
296
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
297
+ }
298
+ });
299
+ (0, vitest_1.it)('sourcemap `inline` - Dictionary populated correctly using undefined', () => {
300
+ const sourcemap = 'inline';
301
+ const debugPath = undefined;
302
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
303
+ const parameters = _createParameters(sourcemap, outputFile, debugPath);
304
+ const expectedSourceMapDirectory = path_1.default.resolve('./dist/scripts');
305
+ const expectedOutputDirectory = path_1.default.resolve('./dist/scripts');
306
+ const expectedOutputFilePath = outputFile;
307
+ const expectedSourceMapFilePath = path_1.default.resolve('./dist/scripts/main.js.map');
308
+ const expectedSourceMappingURL = '';
309
+ const expectedSourceMapFile = 'main.js';
310
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
311
+ (0, vitest_1.expect)(result).toBeDefined();
312
+ if (result) {
313
+ (0, vitest_1.expect)(result.outputDirectory).toBe(expectedOutputDirectory);
314
+ (0, vitest_1.expect)(result.sourceMapDirectory).toBe(expectedSourceMapDirectory);
315
+ (0, vitest_1.expect)(Object.keys(result.generatedFiles).length).toBe(2);
316
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBeDefined();
317
+ (0, vitest_1.expect)(result.generatedFiles[expectedOutputFilePath]).toBe(expectedSourceMappingURL);
318
+ (0, vitest_1.expect)(result.generatedFiles[expectedSourceMapFilePath]).toBeDefined();
319
+ const sourceMap = JSON.parse(result.generatedFiles[expectedSourceMapFilePath]);
320
+ (0, vitest_1.expect)(sourceMap).toBeDefined();
321
+ (0, vitest_1.expect)(sourceMap.file).toBeDefined();
322
+ (0, vitest_1.expect)(sourceMap.file).toBe(expectedSourceMapFile);
323
+ }
324
+ });
325
+ });
326
+ (0, vitest_1.describe)('postProcessOutputFiles with no files', () => {
327
+ (0, vitest_1.it)('sourcemap `true` - Returns undefined', () => {
328
+ const sourcemap = true;
329
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
330
+ const parameters = _createParameters(sourcemap, outputFile, undefined);
331
+ parameters.buildResult.outputFiles = undefined;
332
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
333
+ (0, vitest_1.expect)(result).toBeUndefined();
334
+ });
335
+ (0, vitest_1.it)('sourcemap `false` - Returns undefined', () => {
336
+ const sourcemap = false;
337
+ const outputFile = path_1.default.resolve('./dist/scripts/main.js');
338
+ const parameters = _createParameters(sourcemap, outputFile, undefined);
339
+ parameters.buildResult.outputFiles = undefined;
340
+ const result = (0, bundle_1.postProcessOutputFiles)(parameters.options, parameters.buildResult);
341
+ (0, vitest_1.expect)(result).toBeUndefined();
342
+ });
343
+ });
344
+ //# sourceMappingURL=bundle.test.js.map
@@ -0,0 +1 @@
1
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,UAAU,GAAG,iBAAiB,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;QACvE,UAAU,CAAC,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAA,+BAAsB,EAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;QAElF,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "@minecraft/core-build-tasks",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Common build tasks used for minecraft-scripting-libraries",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "author": "Raphael Landaverde (rlanda@microsoft.com)",
8
+ "contributors": [
9
+ {
10
+ "name": "Francisco Alejandro Garcia Cebada",
11
+ "email": "frgarc@mojang.com"
12
+ }
13
+ ],
8
14
  "scripts": {
9
15
  "build-tools": "just-scripts build-tools",
10
16
  "clean-tools": "just-scripts clean-tools",