@nx/esbuild 16.0.0-beta.4 → 16.0.0-beta.6
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/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "16.0.0-beta.
|
|
3
|
+
"version": "16.0.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for esbuild contains executors and generators that support building applications using esbuild",
|
|
6
6
|
"repository": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nrwl/esbuild": "16.0.0-beta.
|
|
33
|
-
"@nx/devkit": "16.0.0-beta.
|
|
34
|
-
"@nx/js": "16.0.0-beta.
|
|
32
|
+
"@nrwl/esbuild": "16.0.0-beta.6",
|
|
33
|
+
"@nx/devkit": "16.0.0-beta.6",
|
|
34
|
+
"@nx/js": "16.0.0-beta.6",
|
|
35
35
|
"chalk": "^4.1.0",
|
|
36
36
|
"dotenv": "~10.0.0",
|
|
37
37
|
"fast-glob": "3.2.7",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"types": "./index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "b719222d42a4e11bcdd537ef818c2bea130112f8"
|
|
55
55
|
}
|
|
@@ -53,174 +53,76 @@ function esbuildExecutor(_options, context) {
|
|
|
53
53
|
}
|
|
54
54
|
packageJsonResult = yield tslib_1.__await((0, js_1.copyPackageJson)(cpjOptions, context));
|
|
55
55
|
}
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
let hasTypeErrors = false;
|
|
61
|
-
const disposeFns = yield Promise.all(options.format.map((format, idx) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
const esbuildOptions = (0, build_esbuild_options_1.buildEsbuildOptions)(format, options, context);
|
|
63
|
-
const ctx = yield esbuild.context(Object.assign(Object.assign({}, esbuildOptions), { plugins: [
|
|
64
|
-
// Only emit info on one of the watch processes.
|
|
65
|
-
idx === 0
|
|
66
|
-
? {
|
|
67
|
-
name: 'nx-watch-plugin',
|
|
68
|
-
setup(build) {
|
|
69
|
-
build.onEnd((result) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
if (!options.skipTypeCheck) {
|
|
71
|
-
const { errors } = yield runTypeCheck(options, context);
|
|
72
|
-
hasTypeErrors = errors.length > 0;
|
|
73
|
-
}
|
|
74
|
-
const success = result.errors.length === 0 && !hasTypeErrors;
|
|
75
|
-
if (!success) {
|
|
76
|
-
devkit_1.logger.info(BUILD_WATCH_FAILED);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
devkit_1.logger.info(BUILD_WATCH_SUCCEEDED);
|
|
80
|
-
}
|
|
81
|
-
next({
|
|
82
|
-
success,
|
|
83
|
-
// Need to call getOutfile directly in the case of bundle=false and outfile is not set for esbuild.
|
|
84
|
-
outfile: (0, path_1.join)(context.root, (0, build_esbuild_options_1.getOutfile)(format, options, context)),
|
|
85
|
-
});
|
|
86
|
-
}));
|
|
87
|
-
},
|
|
88
|
-
}
|
|
89
|
-
: null,
|
|
90
|
-
].filter(Boolean) }));
|
|
91
|
-
yield ctx.watch();
|
|
92
|
-
return () => ctx.dispose();
|
|
93
|
-
})));
|
|
94
|
-
registerCleanupCallback(() => {
|
|
95
|
-
assetsResult === null || assetsResult === void 0 ? void 0 : assetsResult.stop();
|
|
96
|
-
packageJsonResult === null || packageJsonResult === void 0 ? void 0 : packageJsonResult.stop();
|
|
97
|
-
disposeFns.forEach((fn) => fn());
|
|
98
|
-
done(); // return from async iterable
|
|
99
|
-
});
|
|
100
|
-
}))))));
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
// Run type-checks first and bail if they don't pass.
|
|
104
|
-
if (!options.skipTypeCheck) {
|
|
105
|
-
const { errors } = yield tslib_1.__await(runTypeCheck(options, context));
|
|
106
|
-
if (errors.length > 0) {
|
|
107
|
-
yield yield tslib_1.__await({ success: false });
|
|
108
|
-
return yield tslib_1.__await(void 0);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// Emit a build event for each file format.
|
|
112
|
-
for (let i = 0; i < options.format.length; i++) {
|
|
113
|
-
const format = options.format[i];
|
|
56
|
+
if (options.watch) {
|
|
57
|
+
return yield tslib_1.__await(yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues((0, async_iterable_1.createAsyncIterable)(({ next, done }) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
let hasTypeErrors = false;
|
|
59
|
+
const disposeFns = yield Promise.all(options.format.map((format, idx) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
114
60
|
const esbuildOptions = (0, build_esbuild_options_1.buildEsbuildOptions)(format, options, context);
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
61
|
+
const ctx = yield esbuild.context(Object.assign(Object.assign({}, esbuildOptions), { plugins: [
|
|
62
|
+
// Only emit info on one of the watch processes.
|
|
63
|
+
idx === 0
|
|
64
|
+
? {
|
|
65
|
+
name: 'nx-watch-plugin',
|
|
66
|
+
setup(build) {
|
|
67
|
+
build.onEnd((result) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (!options.skipTypeCheck) {
|
|
69
|
+
const { errors } = yield runTypeCheck(options, context);
|
|
70
|
+
hasTypeErrors = errors.length > 0;
|
|
71
|
+
}
|
|
72
|
+
const success = result.errors.length === 0 && !hasTypeErrors;
|
|
73
|
+
if (!success) {
|
|
74
|
+
devkit_1.logger.info(BUILD_WATCH_FAILED);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
devkit_1.logger.info(BUILD_WATCH_SUCCEEDED);
|
|
78
|
+
}
|
|
79
|
+
next({
|
|
80
|
+
success,
|
|
81
|
+
// Need to call getOutfile directly in the case of bundle=false and outfile is not set for esbuild.
|
|
82
|
+
outfile: (0, path_1.join)(context.root, (0, build_esbuild_options_1.getOutfile)(format, options, context)),
|
|
83
|
+
});
|
|
84
|
+
}));
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
: null,
|
|
88
|
+
].filter(Boolean) }));
|
|
89
|
+
yield ctx.watch();
|
|
90
|
+
return () => ctx.dispose();
|
|
91
|
+
})));
|
|
92
|
+
registerCleanupCallback(() => {
|
|
93
|
+
assetsResult === null || assetsResult === void 0 ? void 0 : assetsResult.stop();
|
|
94
|
+
packageJsonResult === null || packageJsonResult === void 0 ? void 0 : packageJsonResult.stop();
|
|
95
|
+
disposeFns.forEach((fn) => fn());
|
|
96
|
+
done(); // return from async iterable
|
|
97
|
+
});
|
|
98
|
+
}))))));
|
|
130
99
|
}
|
|
131
100
|
else {
|
|
132
|
-
//
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const esbuildOptions = (0, build_esbuild_options_1.buildEsbuildOptions)(format, options, context);
|
|
139
|
-
const watch =
|
|
140
|
-
// Only emit info on one of the watch processes.
|
|
141
|
-
idx === 0
|
|
142
|
-
? {
|
|
143
|
-
onRebuild: (error, result) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
if (!options.skipTypeCheck) {
|
|
145
|
-
const { errors } = yield runTypeCheck(options, context);
|
|
146
|
-
hasTypeErrors = errors.length > 0;
|
|
147
|
-
}
|
|
148
|
-
const success = !error && !hasTypeErrors;
|
|
149
|
-
if (!success) {
|
|
150
|
-
devkit_1.logger.info(BUILD_WATCH_FAILED);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
devkit_1.logger.info(BUILD_WATCH_SUCCEEDED);
|
|
154
|
-
}
|
|
155
|
-
next({
|
|
156
|
-
success,
|
|
157
|
-
// Need to call getOutfile directly in the case of bundle=false and outfile is not set for esbuild.
|
|
158
|
-
// This field is needed for `@nx/js:node` executor to work.
|
|
159
|
-
outfile: (0, path_1.join)(context.root, (0, build_esbuild_options_1.getOutfile)(format, options, context)),
|
|
160
|
-
});
|
|
161
|
-
}),
|
|
162
|
-
}
|
|
163
|
-
: true;
|
|
164
|
-
try {
|
|
165
|
-
const result = yield esbuild.build(Object.assign(Object.assign({}, esbuildOptions), { watch }));
|
|
166
|
-
next({
|
|
167
|
-
success: true,
|
|
168
|
-
// Need to call getOutfile directly in the case of bundle=false and outfile is not set for esbuild.
|
|
169
|
-
outfile: (0, path_1.join)(context.root, (0, build_esbuild_options_1.getOutfile)(format, options, context)),
|
|
170
|
-
});
|
|
171
|
-
return result;
|
|
172
|
-
}
|
|
173
|
-
catch (_a) {
|
|
174
|
-
next({ success: false });
|
|
175
|
-
}
|
|
176
|
-
})));
|
|
177
|
-
registerCleanupCallback(() => {
|
|
178
|
-
assetsResult === null || assetsResult === void 0 ? void 0 : assetsResult.stop();
|
|
179
|
-
packageJsonResult === null || packageJsonResult === void 0 ? void 0 : packageJsonResult.stop();
|
|
180
|
-
results.forEach((r) => { var _a;
|
|
181
|
-
// result.stop() is no in esbuild 0.17.0+ but it exists in earlier versions
|
|
182
|
-
return (_a = r === null || r === void 0 ? void 0 : r['stop']) === null || _a === void 0 ? void 0 : _a.call(r); });
|
|
183
|
-
done();
|
|
184
|
-
});
|
|
185
|
-
if (!options.skipTypeCheck) {
|
|
186
|
-
const { errors } = yield runTypeCheck(options, context);
|
|
187
|
-
hasTypeErrors = errors.length > 0;
|
|
188
|
-
}
|
|
189
|
-
const success = results.every((r) => { var _a; return ((_a = r.errors) === null || _a === void 0 ? void 0 : _a.length) === 0; }) && !hasTypeErrors;
|
|
190
|
-
if (!success) {
|
|
191
|
-
devkit_1.logger.info(BUILD_WATCH_FAILED);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
devkit_1.logger.info(BUILD_WATCH_SUCCEEDED);
|
|
195
|
-
}
|
|
196
|
-
}))))));
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
// Run type-checks first and bail if they don't pass.
|
|
200
|
-
if (!options.skipTypeCheck) {
|
|
201
|
-
const { errors } = yield tslib_1.__await(runTypeCheck(options, context));
|
|
202
|
-
if (errors.length > 0) {
|
|
203
|
-
yield yield tslib_1.__await({ success: false });
|
|
204
|
-
return yield tslib_1.__await(void 0);
|
|
205
|
-
}
|
|
101
|
+
// Run type-checks first and bail if they don't pass.
|
|
102
|
+
if (!options.skipTypeCheck) {
|
|
103
|
+
const { errors } = yield tslib_1.__await(runTypeCheck(options, context));
|
|
104
|
+
if (errors.length > 0) {
|
|
105
|
+
yield yield tslib_1.__await({ success: false });
|
|
106
|
+
return yield tslib_1.__await(void 0);
|
|
206
107
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
yield yield tslib_1.__await({
|
|
219
|
-
success: buildResult.errors.length === 0,
|
|
220
|
-
// Need to call getOutfile directly in the case of bundle=false and outfile is not set for esbuild.
|
|
221
|
-
outfile: (0, path_1.join)(context.root, (0, build_esbuild_options_1.getOutfile)(format, options, context)),
|
|
222
|
-
});
|
|
108
|
+
}
|
|
109
|
+
// Emit a build event for each file format.
|
|
110
|
+
for (let i = 0; i < options.format.length; i++) {
|
|
111
|
+
const format = options.format[i];
|
|
112
|
+
const esbuildOptions = (0, build_esbuild_options_1.buildEsbuildOptions)(format, options, context);
|
|
113
|
+
const buildResult = yield tslib_1.__await(esbuild.build(esbuildOptions));
|
|
114
|
+
if (options.metafile) {
|
|
115
|
+
const filename = options.format.length === 1
|
|
116
|
+
? 'meta.json'
|
|
117
|
+
: `meta.${options.format[i]}.json`;
|
|
118
|
+
(0, fs_extra_1.writeJsonSync)((0, devkit_1.joinPathFragments)(options.outputPath, filename), buildResult.metafile);
|
|
223
119
|
}
|
|
120
|
+
yield yield tslib_1.__await({
|
|
121
|
+
success: buildResult.errors.length === 0,
|
|
122
|
+
// Need to call getOutfile directly in the case of bundle=false and outfile is not set for esbuild.
|
|
123
|
+
// This field is needed for `@nx/js:node` executor to work.
|
|
124
|
+
outfile: (0, path_1.join)(context.root, (0, build_esbuild_options_1.getOutfile)(format, options, context)),
|
|
125
|
+
});
|
|
224
126
|
}
|
|
225
127
|
}
|
|
226
128
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.impl.js","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/executors/esbuild/esbuild.impl.ts"],"names":[],"mappings":";;;;AAAA,yBAAuB;AACvB,+BAA+B;AAE/B,uCAAiE;AACjE,+BAOgB;AAChB,mCAAmC;AACnC,+CAAmD;AAGnD,uCAAqD;AACrD,wEAA0E;AAC1E,uEAIqC;AACrC,yEAAoE;AAEpE,+BAA4B;AAE5B,MAAM,kBAAkB,GAAG,KAAK,KAAK,CAAC,GAAG,CACvC,OAAO,CACR,oEAAoE,CAAC;AACtE,MAAM,qBAAqB,GAAG,KAAK,KAAK,CAAC,KAAK,CAC5C,OAAO,CACR,6CAA6C,CAAC;AAO/C,SAAuB,eAAe,CACpC,QAAgC,EAChC,OAAwB;;QAExB,MAAM,OAAO,GAAG,IAAA,4BAAgB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,OAAO,CAAC,gBAAgB;YAAE,IAAA,qBAAU,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAE7D,MAAM,YAAY,GAAG,sBAAM,IAAA,eAAU,EAAC,OAAO,EAAE,OAAO,CAAC,CAAA,CAAC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,oBAAoB,CAAC;aACrD;YAED,iBAAiB,GAAG,sBAAM,IAAA,oBAAe,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA,CAAC;SAChE;QAED,IAAI,
|
|
1
|
+
{"version":3,"file":"esbuild.impl.js","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/executors/esbuild/esbuild.impl.ts"],"names":[],"mappings":";;;;AAAA,yBAAuB;AACvB,+BAA+B;AAE/B,uCAAiE;AACjE,+BAOgB;AAChB,mCAAmC;AACnC,+CAAmD;AAGnD,uCAAqD;AACrD,wEAA0E;AAC1E,uEAIqC;AACrC,yEAAoE;AAEpE,+BAA4B;AAE5B,MAAM,kBAAkB,GAAG,KAAK,KAAK,CAAC,GAAG,CACvC,OAAO,CACR,oEAAoE,CAAC;AACtE,MAAM,qBAAqB,GAAG,KAAK,KAAK,CAAC,KAAK,CAC5C,OAAO,CACR,6CAA6C,CAAC;AAO/C,SAAuB,eAAe,CACpC,QAAgC,EAChC,OAAwB;;QAExB,MAAM,OAAO,GAAG,IAAA,4BAAgB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,OAAO,CAAC,gBAAgB;YAAE,IAAA,qBAAU,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAE7D,MAAM,YAAY,GAAG,sBAAM,IAAA,eAAU,EAAC,OAAO,EAAE,OAAO,CAAC,CAAA,CAAC;QAExD,MAAM,oBAAoB,GACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACpC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YACvE,IAAI,YAAY,EAAE;gBAChB,GAAG,CAAC,IAAI,CAAC;oBACP,IAAI;oBACJ,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,YAAY;iBACnB,CAAC,CAAC;aACJ;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE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