@dcl/sdk-commands 7.1.12-4983855939.commit-561a19a → 7.1.13-4986595831.commit-7b905bd
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.
@@ -57,7 +57,7 @@ async function buildScene(options, project) {
|
|
57
57
|
await (0, project_validations_1.installDependencies)(options.components, project.workingDirectory);
|
58
58
|
}
|
59
59
|
const watch = !!options.args['--watch'];
|
60
|
-
const { sceneJson } = await (0, bundle_1.bundleProject)(options.components, {
|
60
|
+
const { sceneJson, inputs } = await (0, bundle_1.bundleProject)(options.components, {
|
61
61
|
workingDirectory: project.workingDirectory,
|
62
62
|
watch,
|
63
63
|
single: options.args['--single'],
|
@@ -70,7 +70,7 @@ async function buildScene(options, project) {
|
|
70
70
|
options.components.analytics.track('Build scene', {
|
71
71
|
projectHash: await (0, project_files_1.b64HashingFunction)(project.workingDirectory),
|
72
72
|
coords,
|
73
|
-
isWorkspace:
|
73
|
+
isWorkspace: inputs.length > 1
|
74
74
|
});
|
75
75
|
}
|
76
76
|
exports.buildScene = buildScene;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/build/index.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AAEvB,2CAA8C;AAC9C,yEAAsG;AACtG,qEAA6D;AAC7D,6DAA8D;AAC9D,+CAAkD;AAClD,+DAAwE;AACxE,6EAAqE;AAQxD,QAAA,IAAI,GAAG,IAAA,kBAAW,EAAC;IAC9B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,SAAS;IACf,cAAc,EAAE,OAAO;IACvB,UAAU,EAAE,MAAM;IAClB,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,OAAO;IAC5B,oBAAoB,EAAE,OAAO;IAC7B,IAAI,EAAE,cAAc;IACpB,gBAAgB,EAAE,OAAO;IACzB,OAAO,EAAE,MAAM;CAChB,CAAC,CAAA;AAEF,SAAgB,IAAI,C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as';
|
2
|
-
import esbuild from 'esbuild';
|
3
2
|
import { CliComponents } from '../components';
|
4
3
|
export type BundleComponents = Pick<CliComponents, 'logger' | 'fs'>;
|
5
4
|
export type SceneJson = {
|
@@ -16,41 +15,16 @@ export type CompileOptions = {
|
|
16
15
|
customEntryPoint: boolean;
|
17
16
|
};
|
18
17
|
export declare function bundleProject(components: BundleComponents, options: CompileOptions, sceneJson: Scene): Promise<{
|
19
|
-
context: esbuild.BuildContext<{
|
20
|
-
entryPoints: string[];
|
21
|
-
bundle: true;
|
22
|
-
platform: "browser";
|
23
|
-
format: "cjs";
|
24
|
-
preserveSymlinks: false;
|
25
|
-
outfile: string | undefined;
|
26
|
-
outdir: string | undefined;
|
27
|
-
allowOverwrite: false;
|
28
|
-
sourcemap: "external" | "inline";
|
29
|
-
minify: boolean;
|
30
|
-
minifyIdentifiers: boolean;
|
31
|
-
minifySyntax: boolean;
|
32
|
-
minifyWhitespace: boolean;
|
33
|
-
treeShaking: true;
|
34
|
-
metafile: true;
|
35
|
-
absWorkingDir: string;
|
36
|
-
target: string;
|
37
|
-
external: string[];
|
38
|
-
sourceRoot: string;
|
39
|
-
define: {
|
40
|
-
document: string;
|
41
|
-
window: string;
|
42
|
-
DEBUG: string;
|
43
|
-
'globalThis.DEBUG': string;
|
44
|
-
'process.env.NODE_ENV': string;
|
45
|
-
};
|
46
|
-
tsconfig: string;
|
47
|
-
supported: {
|
48
|
-
'import-assertions': false;
|
49
|
-
'import-meta': false;
|
50
|
-
'dynamic-import': false;
|
51
|
-
hashbang: false;
|
52
|
-
};
|
53
|
-
plugins: esbuild.Plugin[];
|
54
|
-
}>;
|
55
18
|
sceneJson: Scene;
|
19
|
+
inputs: {
|
20
|
+
entrypoint: string;
|
21
|
+
outputFile: string;
|
22
|
+
}[];
|
56
23
|
}>;
|
24
|
+
type SingleProjectOptions = CompileOptions & {
|
25
|
+
tsconfig: string;
|
26
|
+
entrypoint: string;
|
27
|
+
outputFile: string;
|
28
|
+
};
|
29
|
+
export declare function bundleSingleProject(components: BundleComponents, options: SingleProjectOptions): Promise<void>;
|
30
|
+
export {};
|
package/dist/logic/bundle.js
CHANGED
@@ -5,7 +5,7 @@ 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.bundleProject = void 0;
|
8
|
+
exports.bundleSingleProject = exports.bundleProject = void 0;
|
9
9
|
const child_process_1 = __importDefault(require("child_process"));
|
10
10
|
const esbuild_1 = __importDefault(require("esbuild"));
|
11
11
|
const fp_future_1 = require("fp-future");
|
@@ -17,6 +17,36 @@ const beautiful_logs_1 = require("./beautiful-logs");
|
|
17
17
|
const error_1 = require("./error");
|
18
18
|
const composite_1 = require("./composite");
|
19
19
|
const MAX_STEP = 2;
|
20
|
+
/**
|
21
|
+
* Generate the entry-point code for a given original entry-point
|
22
|
+
* @param entrypointPath - file to be imported as original entry point
|
23
|
+
* @param forceCustomExport
|
24
|
+
* @returns the Typescript code
|
25
|
+
*/
|
26
|
+
function getEntrypointCode(entrypointPath, forceCustomExport) {
|
27
|
+
if (forceCustomExport)
|
28
|
+
return `;"use strict";export * from '${entrypointPath}'`;
|
29
|
+
return `// BEGIN AUTO GENERATED CODE "~sdk/scene-entrypoint"
|
30
|
+
"use strict";
|
31
|
+
import * as entrypoint from '${entrypointPath}'
|
32
|
+
import { engine } from '@dcl/sdk/ecs'
|
33
|
+
import * as sdk from '@dcl/sdk'
|
34
|
+
|
35
|
+
if ((entrypoint as any).main !== undefined) {
|
36
|
+
function _INTERNAL_startup_system() {
|
37
|
+
const maybePromise = (entrypoint as any).main()
|
38
|
+
if (maybePromise && typeof maybePromise === 'object' && typeof (maybePromise as unknown as Promise<unknown>).then === 'function') {
|
39
|
+
maybePromise.catch(console.error)
|
40
|
+
}
|
41
|
+
engine.removeSystem(_INTERNAL_startup_system)
|
42
|
+
}
|
43
|
+
engine.addSystem(_INTERNAL_startup_system, Infinity)
|
44
|
+
}
|
45
|
+
|
46
|
+
export * from '@dcl/sdk'
|
47
|
+
export * from '${entrypointPath}'
|
48
|
+
`;
|
49
|
+
}
|
20
50
|
async function bundleProject(components, options, sceneJson) {
|
21
51
|
const tsconfig = path_1.default.join(options.workingDirectory, 'tsconfig.json');
|
22
52
|
/* istanbul ignore if */
|
@@ -31,21 +61,34 @@ async function bundleProject(components, options, sceneJson) {
|
|
31
61
|
if (!(await components.fs.fileExists(tsconfig))) {
|
32
62
|
throw new error_1.CliError(`File ${tsconfig} must exist to compile the Typescript project`);
|
33
63
|
}
|
34
|
-
const
|
64
|
+
const entrypointSource = options.single ?? 'src/index.ts';
|
65
|
+
const entrypoints = (0, glob_1.globSync)(entrypointSource, { cwd: options.workingDirectory, absolute: true });
|
35
66
|
/* istanbul ignore if */
|
36
|
-
if (!
|
37
|
-
throw new error_1.CliError(`There are no input files to build: ${
|
38
|
-
const output = !options.single ? sceneJson.main : options.single.replace(/\.ts$/, '.js')
|
39
|
-
const outfile =
|
40
|
-
|
67
|
+
if (!entrypoints.length)
|
68
|
+
throw new error_1.CliError(`There are no input files to build: ${entrypointSource}`);
|
69
|
+
// const output = !options.single ? sceneJson.main : options.single.replace(/\.ts$/, '.js')
|
70
|
+
// const outfile = path.join(options.workingDirectory, output)
|
71
|
+
const inputs = options.single
|
72
|
+
? entrypoints.map((entrypoint) => ({ entrypoint, outputFile: entrypoint.replace(/\.ts$/, '.js') }))
|
73
|
+
: [{ entrypoint: entrypoints[0], outputFile: sceneJson.main }];
|
74
|
+
for (const input of inputs) {
|
75
|
+
await bundleSingleProject(components, {
|
76
|
+
...options,
|
77
|
+
tsconfig,
|
78
|
+
...input
|
79
|
+
});
|
80
|
+
}
|
81
|
+
return { sceneJson, inputs };
|
82
|
+
}
|
83
|
+
exports.bundleProject = bundleProject;
|
84
|
+
async function bundleSingleProject(components, options) {
|
85
|
+
(0, beautiful_logs_1.printProgressStep)(components.logger, `Bundling file ${log_1.colors.bold(options.entrypoint)}`, 1, MAX_STEP);
|
41
86
|
const context = await esbuild_1.default.context({
|
42
|
-
entryPoints: input,
|
43
87
|
bundle: true,
|
44
88
|
platform: 'browser',
|
45
89
|
format: 'cjs',
|
46
90
|
preserveSymlinks: false,
|
47
|
-
outfile:
|
48
|
-
outdir: input.length > 1 ? path_1.default.dirname(outfile) : undefined,
|
91
|
+
outfile: options.outputFile,
|
49
92
|
allowOverwrite: false,
|
50
93
|
sourcemap: options.production ? 'external' : 'inline',
|
51
94
|
minify: options.production,
|
@@ -58,7 +101,7 @@ async function bundleProject(components, options, sceneJson) {
|
|
58
101
|
target: 'es2020',
|
59
102
|
external: ['~system/*', '@dcl/inspector', '@dcl/inspector/*' /* ban importing the inspector from the SDK */],
|
60
103
|
// convert filesystem paths into file:// to enable VSCode debugger
|
61
|
-
sourceRoot: (0, url_1.pathToFileURL)(path_1.default.dirname(
|
104
|
+
sourceRoot: (0, url_1.pathToFileURL)(path_1.default.dirname(options.outputFile)).toString(),
|
62
105
|
define: {
|
63
106
|
document: 'undefined',
|
64
107
|
window: 'undefined',
|
@@ -66,26 +109,33 @@ async function bundleProject(components, options, sceneJson) {
|
|
66
109
|
'globalThis.DEBUG': options.production ? 'false' : 'true',
|
67
110
|
'process.env.NODE_ENV': JSON.stringify(options.production ? 'production' : 'development')
|
68
111
|
},
|
69
|
-
tsconfig:
|
112
|
+
tsconfig: options.tsconfig,
|
70
113
|
supported: {
|
71
114
|
'import-assertions': false,
|
72
115
|
'import-meta': false,
|
73
116
|
'dynamic-import': false,
|
74
117
|
hashbang: false
|
75
118
|
},
|
76
|
-
|
119
|
+
logOverride: {
|
120
|
+
'import-is-undefined': 'silent'
|
121
|
+
},
|
122
|
+
plugins: [compositeLoader(components, options)],
|
123
|
+
stdin: {
|
124
|
+
contents: getEntrypointCode(options.entrypoint, options.customEntryPoint),
|
125
|
+
resolveDir: path_1.default.dirname(options.entrypoint),
|
126
|
+
sourcefile: path_1.default.basename(options.entrypoint) + '.entry-point.ts',
|
127
|
+
loader: 'ts'
|
128
|
+
}
|
77
129
|
});
|
78
130
|
/* istanbul ignore if */
|
79
131
|
if (options.watch) {
|
80
132
|
await context.watch({});
|
81
|
-
(0, beautiful_logs_1.printProgressInfo)(components.logger, `Bundle saved ${log_1.colors.bold(
|
133
|
+
(0, beautiful_logs_1.printProgressInfo)(components.logger, `Bundle saved ${log_1.colors.bold(options.outputFile)}`);
|
82
134
|
}
|
83
135
|
else {
|
84
136
|
try {
|
85
|
-
|
86
|
-
(0, beautiful_logs_1.printProgressInfo)(components.logger, `Bundle saved ${log_1.colors.bold(
|
87
|
-
.filter((_) => _.endsWith('.js'))
|
88
|
-
.join(',') || outfile)}`);
|
137
|
+
await context.rebuild();
|
138
|
+
(0, beautiful_logs_1.printProgressInfo)(components.logger, `Bundle saved ${log_1.colors.bold(options.outputFile)}`);
|
89
139
|
}
|
90
140
|
catch (err) {
|
91
141
|
/* istanbul ignore next */
|
@@ -97,9 +147,8 @@ async function bundleProject(components, options, sceneJson) {
|
|
97
147
|
if (options.watch)
|
98
148
|
(0, beautiful_logs_1.printProgressInfo)(components.logger, `The compiler is watching for changes`);
|
99
149
|
await runTypeChecker(components, options);
|
100
|
-
return { context, sceneJson };
|
101
150
|
}
|
102
|
-
exports.
|
151
|
+
exports.bundleSingleProject = bundleSingleProject;
|
103
152
|
function runTypeChecker(components, options) {
|
104
153
|
const args = [
|
105
154
|
require.resolve('typescript/lib/tsc'),
|
@@ -137,6 +186,7 @@ function compositeLoader(components, options) {
|
|
137
186
|
let shouldReload = true;
|
138
187
|
let contents = `export const compositeFromLoader = {}`; // default exports nothing
|
139
188
|
let watchFiles = []; // no files to watch
|
189
|
+
let lastBuiltSuccessful = false;
|
140
190
|
return {
|
141
191
|
name: 'composite-loader',
|
142
192
|
setup(build) {
|
@@ -160,6 +210,10 @@ function compositeLoader(components, options) {
|
|
160
210
|
if (data.withErrors) {
|
161
211
|
(0, beautiful_logs_1.printWarning)(components.logger, 'Some composites are not included because of errors while compiling them. There can be unexpected behavior in the scene, check the errors and try to fix them.');
|
162
212
|
}
|
213
|
+
else if (!lastBuiltSuccessful) {
|
214
|
+
components.logger.log('Composites built without errors.');
|
215
|
+
}
|
216
|
+
lastBuiltSuccessful = !data.withErrors;
|
163
217
|
}
|
164
218
|
shouldReload = false;
|
165
219
|
}
|
@@ -172,21 +226,4 @@ function compositeLoader(components, options) {
|
|
172
226
|
}
|
173
227
|
};
|
174
228
|
}
|
175
|
-
function entryPointLoader(components, inputs, options) {
|
176
|
-
const escapedInputs = inputs.map(($) => $.replace(/\\/g, '\\\\'));
|
177
|
-
const filter = new RegExp(`(${escapedInputs.join('|')})`);
|
178
|
-
return {
|
179
|
-
name: 'entry-point-loader',
|
180
|
-
setup(build) {
|
181
|
-
build.onLoad({ filter }, async (args) => {
|
182
|
-
const exportSdk = options.customEntryPoint ? '' : `;export * from '@dcl/sdk';`;
|
183
|
-
const contents = exportSdk + (await components.fs.readFile(args.path));
|
184
|
-
return {
|
185
|
-
loader: 'ts',
|
186
|
-
contents
|
187
|
-
};
|
188
|
-
});
|
189
|
-
}
|
190
|
-
};
|
191
|
-
}
|
192
229
|
//# sourceMappingURL=bundle.js.map
|
package/dist/logic/bundle.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/logic/bundle.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,4EAA4E;;;;;;AAG5E,kEAAyC;AACzC,sDAA6B;AAC7B,yCAAkC;AAClC,+BAA+B;AAC/B,gDAAuB;AACvB,6BAAmC;AAEnC,2CAA0C;AAC1C,qDAAqF;AACrF,mCAAkC;AAClC,2CAA8C;AA0B9C,MAAM,QAAQ,GAAG,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/logic/bundle.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,4EAA4E;;;;;;AAG5E,kE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AC,CAAA;QACJ,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk-commands",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.1.
|
4
|
+
"version": "7.1.13-4986595831.commit-7b905bd",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"bin": {
|
7
7
|
"sdk-commands": "./dist/index.js"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"@dcl/ecs": "7.1.
|
10
|
+
"@dcl/ecs": "7.1.13-4986595831.commit-7b905bd",
|
11
11
|
"@dcl/hashing": "1.1.3",
|
12
|
-
"@dcl/inspector": "7.1.
|
12
|
+
"@dcl/inspector": "7.1.13-4986595831.commit-7b905bd",
|
13
13
|
"@dcl/linker-dapp": "0.7.0",
|
14
14
|
"@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be",
|
15
15
|
"@dcl/protocol": "1.0.0-4982615619.commit-96dba07",
|
@@ -65,5 +65,5 @@
|
|
65
65
|
"displayName": "SDK",
|
66
66
|
"tsconfig": "./tsconfig.json"
|
67
67
|
},
|
68
|
-
"commit": "
|
68
|
+
"commit": "7b905bd15f8e2cfd59367471bc4e56af6a75a078"
|
69
69
|
}
|