@nx/esbuild 20.4.0-canary.20250114-6181592 → 20.4.0-canary.20250115-0ae8665
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/esbuild",
|
3
|
-
"version": "20.4.0-canary.
|
3
|
+
"version": "20.4.0-canary.20250115-0ae8665",
|
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": {
|
@@ -31,9 +31,9 @@
|
|
31
31
|
"migrations": "./migrations.json"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@nx/devkit": "20.4.0-canary.
|
35
|
-
"@nx/js": "20.4.0-canary.
|
36
|
-
"
|
34
|
+
"@nx/devkit": "20.4.0-canary.20250115-0ae8665",
|
35
|
+
"@nx/js": "20.4.0-canary.20250115-0ae8665",
|
36
|
+
"tinyglobby": "^0.2.10",
|
37
37
|
"picocolors": "^1.1.0",
|
38
38
|
"tsconfig-paths": "^4.1.2",
|
39
39
|
"tslib": "^2.3.0"
|
@@ -4,7 +4,7 @@ exports.getEntryPoints = getEntryPoints;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const fs = require("fs");
|
6
6
|
const path = require("path");
|
7
|
-
const
|
7
|
+
const tinyglobby_1 = require("tinyglobby");
|
8
8
|
function getEntryPoints(projectName, context, options = {}) {
|
9
9
|
const entryPoints = options.initialEntryPoints
|
10
10
|
? new Set(options.initialEntryPoints)
|
@@ -36,12 +36,11 @@ function getEntryPoints(projectName, context, options = {}) {
|
|
36
36
|
// Workspace projects may not be a TS project, so skip reading source files if tsconfig is not found.
|
37
37
|
if (foundTsConfig) {
|
38
38
|
const tsconfig = (0, devkit_1.readJsonFile)(path.join(project.data.root, foundTsConfig));
|
39
|
-
const projectFiles =
|
40
|
-
.sync(tsconfig.include ?? [], {
|
39
|
+
const projectFiles = (0, tinyglobby_1.globSync)(tsconfig.include ?? [], {
|
41
40
|
cwd: project.data.root,
|
42
41
|
ignore: tsconfig.exclude ?? [],
|
43
|
-
|
44
|
-
|
42
|
+
expandDirectories: false,
|
43
|
+
}).map((f) => path.join(project.data.root, f));
|
45
44
|
projectFiles.forEach((f) => entryPoints.add(f));
|
46
45
|
options?.onProjectFilesMatched?.(projectName, projectFiles);
|
47
46
|
}
|