@nx/esbuild 16.5.0 → 16.6.0-beta.0
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/generators.json +8 -6
- package/index.d.ts +2 -1
- package/index.js +6 -1
- package/package.json +5 -5
- package/src/generators/configuration/configuration.d.ts +5 -0
- package/src/generators/{esbuild-project/esbuild-project.js → configuration/configuration.js} +5 -5
- package/src/generators/{esbuild-project → configuration}/schema.json +1 -1
- package/src/generators/esbuild-project/esbuild-project.d.ts +0 -5
- /package/src/generators/{esbuild-project → configuration}/schema.d.ts +0 -0
package/generators.json
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"description": "Initialize the `@nrwl/esbuild` plugin.",
|
|
9
9
|
"hidden": true
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"configuration": {
|
|
12
|
+
"aliases": ["esbuild-project"],
|
|
13
|
+
"factory": "./src/generators/configuration/configuration#compat",
|
|
14
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
14
15
|
"description": "Add esbuild configuration to a project.",
|
|
15
16
|
"hidden": true
|
|
16
17
|
}
|
|
@@ -23,9 +24,10 @@
|
|
|
23
24
|
"aliases": ["ng-add"],
|
|
24
25
|
"hidden": true
|
|
25
26
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"configuration": {
|
|
28
|
+
"aliases": ["esbuild-project"],
|
|
29
|
+
"factory": "./src/generators/configuration/configuration",
|
|
30
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
29
31
|
"description": "Add esbuild configuration to a project.",
|
|
30
32
|
"hidden": true
|
|
31
33
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { configurationGenerator } from './src/generators/configuration/configuration';
|
|
2
|
+
export { configurationGenerator };
|
|
1
3
|
export * from './src/generators/init/init';
|
|
2
|
-
export * from './src/generators/esbuild-project/esbuild-project';
|
|
3
4
|
export * from './src/utils/versions';
|
package/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configurationGenerator = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const configuration_1 = require("./src/generators/configuration/configuration");
|
|
6
|
+
Object.defineProperty(exports, "configurationGenerator", { enumerable: true, get: function () { return configuration_1.configurationGenerator; } });
|
|
7
|
+
// Exported for backwards compatibility in case a plugin is using the old name.
|
|
8
|
+
/** @deprecated Use `configurationGenerator` instead. */
|
|
9
|
+
const esbuildProjectGenerator = configuration_1.configurationGenerator;
|
|
4
10
|
tslib_1.__exportStar(require("./src/generators/init/init"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./src/generators/esbuild-project/esbuild-project"), exports);
|
|
6
11
|
tslib_1.__exportStar(require("./src/utils/versions"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.6.0-beta.0",
|
|
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.
|
|
33
|
-
"@nx/devkit": "16.
|
|
34
|
-
"@nx/js": "16.
|
|
32
|
+
"@nrwl/esbuild": "16.6.0-beta.0",
|
|
33
|
+
"@nx/devkit": "16.6.0-beta.0",
|
|
34
|
+
"@nx/js": "16.6.0-beta.0",
|
|
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": "5a7ffb93c9e84bffbf52f6ae9c6c1e3b8edb9d35"
|
|
55
55
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Tree } from '@nx/devkit';
|
|
2
|
+
import { EsBuildProjectSchema } from './schema';
|
|
3
|
+
export declare function configurationGenerator(tree: Tree, options: EsBuildProjectSchema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
|
+
export declare const compat: (generatorOptions: EsBuildProjectSchema) => (tree: any, context: any) => Promise<any>;
|
|
5
|
+
export default configurationGenerator;
|
package/src/generators/{esbuild-project/esbuild-project.js → configuration/configuration.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.compat = exports.configurationGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
|
|
7
7
|
const init_1 = require("../init/init");
|
|
8
|
-
function
|
|
8
|
+
function configurationGenerator(tree, options) {
|
|
9
9
|
var _a;
|
|
10
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const task = yield (0, init_1.esbuildInitGenerator)(tree, Object.assign(Object.assign({}, options), { skipFormat: true }));
|
|
@@ -16,7 +16,7 @@ function esbuildProjectGenerator(tree, options) {
|
|
|
16
16
|
return task;
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.configurationGenerator = configurationGenerator;
|
|
20
20
|
function checkForTargetConflicts(tree, options) {
|
|
21
21
|
var _a;
|
|
22
22
|
if (options.skipValidation)
|
|
@@ -97,5 +97,5 @@ function getTsConfigFile(tree, options) {
|
|
|
97
97
|
}
|
|
98
98
|
return options.tsConfig;
|
|
99
99
|
}
|
|
100
|
-
exports.
|
|
101
|
-
exports.default =
|
|
100
|
+
exports.compat = (0, devkit_1.convertNxGenerator)(configurationGenerator);
|
|
101
|
+
exports.default = configurationGenerator;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Tree } from '@nx/devkit';
|
|
2
|
-
import { EsBuildProjectSchema } from './schema';
|
|
3
|
-
export declare function esbuildProjectGenerator(tree: Tree, options: EsBuildProjectSchema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
|
-
export declare const esbuildProjectSchematic: (generatorOptions: EsBuildProjectSchema) => (tree: any, context: any) => Promise<any>;
|
|
5
|
-
export default esbuildProjectGenerator;
|
|
File without changes
|