@nx/next 22.6.4 → 22.6.5
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 +10 -10
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "22.6.
|
|
3
|
+
"version": "22.6.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"next": ">=14.0.0 <17.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nx/devkit": "22.6.
|
|
38
|
+
"@nx/devkit": "22.6.5",
|
|
39
39
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
40
40
|
"@svgr/webpack": "^8.1.0",
|
|
41
41
|
"copy-webpack-plugin": "^14.0.0",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"semver": "^7.6.3",
|
|
44
44
|
"tslib": "^2.3.0",
|
|
45
45
|
"webpack-merge": "^5.8.0",
|
|
46
|
-
"@nx/js": "22.6.
|
|
47
|
-
"@nx/eslint": "22.6.
|
|
48
|
-
"@nx/react": "22.6.
|
|
49
|
-
"@nx/web": "22.6.
|
|
50
|
-
"@nx/webpack": "22.6.
|
|
46
|
+
"@nx/js": "22.6.5",
|
|
47
|
+
"@nx/eslint": "22.6.5",
|
|
48
|
+
"@nx/react": "22.6.5",
|
|
49
|
+
"@nx/web": "22.6.5",
|
|
50
|
+
"@nx/webpack": "22.6.5",
|
|
51
51
|
"@phenomnomnominal/tsquery": "~6.1.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@nx/cypress": "22.6.
|
|
55
|
-
"@nx/playwright": "22.6.
|
|
56
|
-
"nx": "22.6.
|
|
54
|
+
"@nx/cypress": "22.6.5",
|
|
55
|
+
"@nx/playwright": "22.6.5",
|
|
56
|
+
"nx": "22.6.5"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/next/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAGlB,aAAa,EAOd,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/next/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAGlB,aAAa,EAOd,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAqBD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,iBAAiB,CA8BxD,CAAC;AAEF,eAAO,MAAM,aAAa,kCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -12,7 +12,6 @@ const fs_1 = require("fs");
|
|
|
12
12
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
13
13
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
14
14
|
const path_1 = require("path");
|
|
15
|
-
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
16
15
|
const nextConfigBlob = '**/next.config.{ts,js,cjs,mjs}';
|
|
17
16
|
function readTargetsCache(cachePath) {
|
|
18
17
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
@@ -38,8 +37,9 @@ exports.createNodes = [
|
|
|
38
37
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `next-${optionsHash}.json`);
|
|
39
38
|
const targetsCache = readTargetsCache(cachePath);
|
|
40
39
|
const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)();
|
|
40
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
|
|
41
41
|
try {
|
|
42
|
-
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, isTsSolutionSetup), configFiles, options, context);
|
|
42
|
+
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, isTsSolutionSetup, pmc), configFiles, options, context);
|
|
43
43
|
}
|
|
44
44
|
finally {
|
|
45
45
|
writeTargetsToCache(cachePath, targetsCache);
|
|
@@ -47,7 +47,7 @@ exports.createNodes = [
|
|
|
47
47
|
},
|
|
48
48
|
];
|
|
49
49
|
exports.createNodesV2 = exports.createNodes;
|
|
50
|
-
async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup) {
|
|
50
|
+
async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup, pmc) {
|
|
51
51
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
52
52
|
// Do not create a project if package.json and project.json isn't there.
|
|
53
53
|
const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
|
|
@@ -57,7 +57,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
57
57
|
}
|
|
58
58
|
options = normalizeOptions(options);
|
|
59
59
|
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
60
|
-
targetsCache[hash] ??= await buildNextTargets(configFilePath, projectRoot, options, context, isTsSolutionSetup);
|
|
60
|
+
targetsCache[hash] ??= await buildNextTargets(configFilePath, projectRoot, options, context, isTsSolutionSetup, pmc);
|
|
61
61
|
return {
|
|
62
62
|
projects: {
|
|
63
63
|
[projectRoot]: {
|
|
@@ -67,7 +67,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
67
67
|
},
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
async function buildNextTargets(nextConfigPath, projectRoot, options, context, isTsSolutionSetup) {
|
|
70
|
+
async function buildNextTargets(nextConfigPath, projectRoot, options, context, isTsSolutionSetup, pmc) {
|
|
71
71
|
const nextConfig = await getNextConfig(nextConfigPath, context);
|
|
72
72
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
73
73
|
const targets = {};
|