@nx/js 21.3.5 → 21.3.7
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/js",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/preset-env": "^7.23.2",
|
|
40
40
|
"@babel/preset-typescript": "^7.22.5",
|
|
41
41
|
"@babel/runtime": "^7.22.6",
|
|
42
|
-
"@nx/devkit": "21.3.
|
|
43
|
-
"@nx/workspace": "21.3.
|
|
42
|
+
"@nx/devkit": "21.3.7",
|
|
43
|
+
"@nx/workspace": "21.3.7",
|
|
44
44
|
"@zkochan/js-yaml": "0.0.7",
|
|
45
45
|
"babel-plugin-const-enum": "^1.0.1",
|
|
46
46
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -198,13 +198,17 @@ function getProjectType(tree, projectRoot, projectType) {
|
|
|
198
198
|
return 'library';
|
|
199
199
|
if (tree.exists((0, devkit_1.joinPathFragments)(projectRoot, 'tsconfig.app.json')))
|
|
200
200
|
return 'application';
|
|
201
|
-
// If
|
|
201
|
+
// If it doesn't have any common library entry points, assume it is an application
|
|
202
202
|
const packageJsonPath = (0, devkit_1.joinPathFragments)(projectRoot, 'package.json');
|
|
203
203
|
const packageJson = tree.exists(packageJsonPath)
|
|
204
204
|
? (0, devkit_1.readJson)(tree, (0, devkit_1.joinPathFragments)(projectRoot, 'package.json'))
|
|
205
205
|
: null;
|
|
206
|
-
if (!packageJson?.exports
|
|
206
|
+
if (!packageJson?.exports &&
|
|
207
|
+
!packageJson?.main &&
|
|
208
|
+
!packageJson?.module &&
|
|
209
|
+
!packageJson?.bin) {
|
|
207
210
|
return 'application';
|
|
211
|
+
}
|
|
208
212
|
return 'library';
|
|
209
213
|
}
|
|
210
214
|
function getProjectSourceRoot(project, tree) {
|