Skip to content

Commit 4d6dea8

Browse files
authoredOct 17, 2023
Change Nx detection to the new npm scope (#302)
1 parent 6cd5a1d commit 4d6dea8

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed
 
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"sourceRoot": "apps/b",
3+
"projectType": "application",
4+
"targets": {
5+
"build": {
6+
"executor": "@nx/next:build"
7+
},
8+
"serve": {
9+
"executor": "@nx/next:server"
10+
},
11+
"lint": {
12+
"executor": "@nx/linter:eslint"
13+
},
14+
"test": {
15+
"executor": "@js/cypress:cypress"
16+
}
17+
}
18+
}

‎fixtures/plugins/nx/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"nx": "nx"
55
},
66
"devDependencies": {
7+
"@nx/next": "*",
8+
"@nx/linter": "*",
9+
"@nx/cypress": "*",
710
"@nrwl/cypress": "*",
811
"@nrwl/devkit": "*",
912
"@nrwl/jest": "*",

‎src/plugins/nx/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { IsPluginEnabledCallback, GenericPluginCallback } from '../../types
88
export const NAME = 'Nx';
99

1010
/** @public */
11-
export const ENABLERS = ['nx', /^@nrwl\//];
11+
export const ENABLERS = ['nx', /^@nrwl\//, /^@nx\//];
1212

1313
export const isEnabled: IsPluginEnabledCallback = ({ dependencies }) => hasDependency(dependencies, ENABLERS);
1414

0 commit comments

Comments
 (0)
Please sign in to comment.