@nx/esbuild 23.0.0-beta.18 → 23.0.0-beta.19
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/package.json +4 -4
- package/src/generators/configuration/configuration.d.ts.map +1 -1
- package/src/generators/configuration/configuration.js +2 -0
- package/src/generators/init/init.d.ts.map +1 -1
- package/src/generators/init/init.js +3 -1
- package/src/generators/init/schema.json +1 -1
- package/src/utils/assert-supported-esbuild-version.d.ts +3 -0
- package/src/utils/assert-supported-esbuild-version.d.ts.map +1 -0
- package/src/utils/assert-supported-esbuild-version.js +8 -0
- package/src/utils/versions.d.ts +1 -0
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.19",
|
|
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": {
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"migrations": "./migrations.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nx/devkit": "23.0.0-beta.
|
|
36
|
-
"@nx/js": "23.0.0-beta.
|
|
35
|
+
"@nx/devkit": "23.0.0-beta.19",
|
|
36
|
+
"@nx/js": "23.0.0-beta.19",
|
|
37
37
|
"tinyglobby": "^0.2.12",
|
|
38
38
|
"picocolors": "^1.1.0",
|
|
39
39
|
"tsconfig-paths": "^4.1.2",
|
|
40
40
|
"tslib": "^2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"nx": "23.0.0-beta.
|
|
43
|
+
"nx": "23.0.0-beta.19"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"esbuild": ">=0.19.2 <1.0.0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,IAAI,EAGL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,IAAI,EAGL,MAAM,YAAY,CAAC;AAgBpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,mDAe9B;AAsMD,eAAe,sBAAsB,CAAC"}
|
|
@@ -8,8 +8,10 @@ const internal_2 = require("@nx/js/internal");
|
|
|
8
8
|
const posix_1 = require("node:path/posix");
|
|
9
9
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
10
10
|
const build_esbuild_options_1 = require("../../executors/esbuild/lib/build-esbuild-options");
|
|
11
|
+
const assert_supported_esbuild_version_1 = require("../../utils/assert-supported-esbuild-version");
|
|
11
12
|
const init_1 = require("../init/init");
|
|
12
13
|
async function configurationGenerator(tree, options) {
|
|
14
|
+
(0, assert_supported_esbuild_version_1.assertSupportedEsbuildVersion)(tree);
|
|
13
15
|
const task = await (0, init_1.esbuildInitGenerator)(tree, {
|
|
14
16
|
...options,
|
|
15
17
|
skipFormat: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAEjB,IAAI,EACL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAEjB,IAAI,EACL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAwBpE;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -3,15 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.esbuildInitGenerator = esbuildInitGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const internal_1 = require("@nx/js/internal");
|
|
6
|
+
const assert_supported_esbuild_version_1 = require("../../utils/assert-supported-esbuild-version");
|
|
6
7
|
const versions_1 = require("../../utils/versions");
|
|
7
8
|
async function esbuildInitGenerator(tree, schema) {
|
|
9
|
+
(0, assert_supported_esbuild_version_1.assertSupportedEsbuildVersion)(tree);
|
|
8
10
|
let installTask = () => { };
|
|
9
11
|
if (!schema.skipPackageJson) {
|
|
10
12
|
installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
11
13
|
'@nx/esbuild': versions_1.nxVersion,
|
|
12
14
|
esbuild: (0, devkit_1.getDependencyVersionFromPackageJson)(tree, 'esbuild') ??
|
|
13
15
|
internal_1.esbuildVersion,
|
|
14
|
-
}, undefined, schema.keepExistingVersions);
|
|
16
|
+
}, undefined, schema.keepExistingVersions ?? true);
|
|
15
17
|
}
|
|
16
18
|
if (!schema.skipFormat) {
|
|
17
19
|
await (0, devkit_1.formatFiles)(tree);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-supported-esbuild-version.d.ts","sourceRoot":"","sources":["../../../../../packages/esbuild/src/utils/assert-supported-esbuild-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAE9D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertSupportedEsbuildVersion = assertSupportedEsbuildVersion;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
function assertSupportedEsbuildVersion(tree) {
|
|
7
|
+
(0, internal_1.assertSupportedPackageVersion)(tree, 'esbuild', versions_1.minSupportedEsbuildVersion);
|
|
8
|
+
}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/esbuild/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/esbuild/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,eAAO,MAAM,0BAA0B,WAAW,CAAC"}
|
package/src/utils/versions.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tsLibVersion = exports.nxVersion = void 0;
|
|
3
|
+
exports.minSupportedEsbuildVersion = exports.tsLibVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
5
|
exports.tsLibVersion = '^2.3.0';
|
|
6
|
+
exports.minSupportedEsbuildVersion = '0.19.2';
|