@nx/esbuild 17.0.0-beta.1 → 17.0.0-beta.4
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/executors.json +0 -7
- package/generators.json +0 -14
- package/package.json +6 -6
- package/src/executors/esbuild/esbuild.impl.js +0 -1
- package/src/executors/esbuild/schema.d.ts +0 -1
- package/src/generators/configuration/configuration.d.ts +0 -1
- package/src/generators/configuration/configuration.js +1 -2
- package/src/generators/init/init.d.ts +0 -1
- package/src/generators/init/init.js +1 -2
- package/src/executors/esbuild/compat.d.ts +0 -2
- package/src/executors/esbuild/compat.js +0 -5
package/executors.json
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"builders": {
|
|
3
|
-
"esbuild": {
|
|
4
|
-
"implementation": "./src/executors/esbuild/compat",
|
|
5
|
-
"schema": "./src/executors/esbuild/schema.json",
|
|
6
|
-
"description": "Bundle a package using EsBuild."
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
2
|
"executors": {
|
|
10
3
|
"esbuild": {
|
|
11
4
|
"implementation": "./src/executors/esbuild/esbuild.impl",
|
package/generators.json
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Nx esbuild",
|
|
3
3
|
"version": "0.1",
|
|
4
|
-
"schematics": {
|
|
5
|
-
"init": {
|
|
6
|
-
"factory": "./src/generators/init/init#esbuildInitSchematic",
|
|
7
|
-
"schema": "./src/generators/init/schema.json",
|
|
8
|
-
"description": "Initialize the `@nrwl/esbuild` plugin.",
|
|
9
|
-
"hidden": true
|
|
10
|
-
},
|
|
11
|
-
"configuration": {
|
|
12
|
-
"aliases": ["esbuild-project"],
|
|
13
|
-
"factory": "./src/generators/configuration/configuration#compat",
|
|
14
|
-
"schema": "./src/generators/configuration/schema.json",
|
|
15
|
-
"description": "Add esbuild configuration to a project."
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
4
|
"generators": {
|
|
19
5
|
"init": {
|
|
20
6
|
"factory": "./src/generators/init/init#esbuildInitGenerator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "17.0.0-beta.
|
|
3
|
+
"version": "17.0.0-beta.4",
|
|
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": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"url": "https://github.com/nrwl/nx/issues"
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://nx.dev",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"generators": "./generators.json",
|
|
26
|
+
"executors": "./executors.json",
|
|
27
27
|
"ng-update": {
|
|
28
28
|
"requirements": {},
|
|
29
29
|
"migrations": "./migrations.json"
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"fs-extra": "^11.1.0",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
36
|
"tsconfig-paths": "^4.1.2",
|
|
37
|
-
"@nx/devkit": "17.0.0-beta.
|
|
38
|
-
"@nx/js": "17.0.0-beta.
|
|
39
|
-
"@nrwl/esbuild": "17.0.0-beta.
|
|
37
|
+
"@nx/devkit": "17.0.0-beta.4",
|
|
38
|
+
"@nx/js": "17.0.0-beta.4",
|
|
39
|
+
"@nrwl/esbuild": "17.0.0-beta.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"esbuild": "~0.19.2"
|
|
@@ -50,7 +50,6 @@ async function* esbuildExecutor(_options, context) {
|
|
|
50
50
|
generateLockfile: true,
|
|
51
51
|
outputFileExtensionForCjs: (0, build_esbuild_options_1.getOutExtension)('cjs', options),
|
|
52
52
|
excludeLibsInPackageJson: !options.thirdParty,
|
|
53
|
-
updateBuildableProjectDepsInPackageJson: externalDependencies.length > 0,
|
|
54
53
|
};
|
|
55
54
|
// If we're bundling third-party packages, then any extra deps from external should be the only deps in package.json
|
|
56
55
|
if (options.thirdParty && externalDependencies.length > 0) {
|
|
@@ -6,7 +6,6 @@ type Compiler = 'babel' | 'swc';
|
|
|
6
6
|
export interface EsBuildExecutorOptions {
|
|
7
7
|
additionalEntryPoints?: string[];
|
|
8
8
|
assets: (AssetGlob | string)[];
|
|
9
|
-
buildableProjectDepsInPackageJsonType?: 'dependencies' | 'peerDependencies';
|
|
10
9
|
bundle?: boolean;
|
|
11
10
|
deleteOutputPath?: boolean;
|
|
12
11
|
dependenciesFieldType?: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Tree } from '@nx/devkit';
|
|
2
2
|
import { EsBuildProjectSchema } from './schema';
|
|
3
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
4
|
export default configurationGenerator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.configurationGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
|
|
6
6
|
const init_1 = require("../init/init");
|
|
@@ -103,5 +103,4 @@ function getTsConfigFile(tree, options) {
|
|
|
103
103
|
}
|
|
104
104
|
return options.tsConfig;
|
|
105
105
|
}
|
|
106
|
-
exports.compat = (0, devkit_1.convertNxGenerator)(configurationGenerator);
|
|
107
106
|
exports.default = configurationGenerator;
|
|
@@ -2,4 +2,3 @@ import { Tree } from '@nx/devkit';
|
|
|
2
2
|
import { Schema } from './schema';
|
|
3
3
|
export declare function esbuildInitGenerator(tree: Tree, schema: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
4
|
export default esbuildInitGenerator;
|
|
5
|
-
export declare const esbuildInitSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.esbuildInitGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("@nx/js/src/utils/versions");
|
|
6
6
|
const versions_2 = require("../../utils/versions");
|
|
@@ -16,4 +16,3 @@ async function esbuildInitGenerator(tree, schema) {
|
|
|
16
16
|
}
|
|
17
17
|
exports.esbuildInitGenerator = esbuildInitGenerator;
|
|
18
18
|
exports.default = esbuildInitGenerator;
|
|
19
|
-
exports.esbuildInitSchematic = (0, devkit_1.convertNxGenerator)(esbuildInitGenerator);
|