@nrwl/next 14.7.9 → 14.7.11
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [14.7.
|
|
6
|
+
## [14.7.11](https://github.com/nrwl/nx/compare/14.7.10...14.7.11) (2022-09-22)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/next
|
package/migrations.json
CHANGED
|
@@ -359,6 +359,23 @@
|
|
|
359
359
|
"alwaysAddToPackageJson": false
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
+
},
|
|
363
|
+
"14.7.10": {
|
|
364
|
+
"version": "14.7.10-beta.1",
|
|
365
|
+
"packages": {
|
|
366
|
+
"next": {
|
|
367
|
+
"version": "12.3.1",
|
|
368
|
+
"alwaysAddToPackageJson": false
|
|
369
|
+
},
|
|
370
|
+
"eslint-config-next": {
|
|
371
|
+
"version": "12.3.1",
|
|
372
|
+
"alwaysAddToPackageJson": false
|
|
373
|
+
},
|
|
374
|
+
"sass": {
|
|
375
|
+
"version": "1.55.0",
|
|
376
|
+
"alwaysAddToPackageJson": false
|
|
377
|
+
}
|
|
378
|
+
}
|
|
362
379
|
}
|
|
363
380
|
}
|
|
364
381
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/next",
|
|
3
|
-
"version": "14.7.
|
|
3
|
+
"version": "14.7.11",
|
|
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, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
38
|
-
"@nrwl/cypress": "14.7.
|
|
39
|
-
"@nrwl/devkit": "14.7.
|
|
40
|
-
"@nrwl/jest": "14.7.
|
|
41
|
-
"@nrwl/linter": "14.7.
|
|
42
|
-
"@nrwl/react": "14.7.
|
|
43
|
-
"@nrwl/webpack": "14.7.
|
|
44
|
-
"@nrwl/workspace": "14.7.
|
|
38
|
+
"@nrwl/cypress": "14.7.11",
|
|
39
|
+
"@nrwl/devkit": "14.7.11",
|
|
40
|
+
"@nrwl/jest": "14.7.11",
|
|
41
|
+
"@nrwl/linter": "14.7.11",
|
|
42
|
+
"@nrwl/react": "14.7.11",
|
|
43
|
+
"@nrwl/webpack": "14.7.11",
|
|
44
|
+
"@nrwl/workspace": "14.7.11",
|
|
45
45
|
"@svgr/webpack": "^6.1.2",
|
|
46
46
|
"chalk": "4.1.0",
|
|
47
47
|
"dotenv": "~10.0.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "e0e58349af1231eb73f3be38220128a0f8aba3b1"
|
|
60
60
|
}
|
|
@@ -16,18 +16,11 @@ const create_next_config_file_1 = require("./lib/create-next-config-file");
|
|
|
16
16
|
const check_project_1 = require("./lib/check-project");
|
|
17
17
|
const constants_1 = require("../../utils/constants");
|
|
18
18
|
function buildExecutor(options, context) {
|
|
19
|
-
var _a, _b;
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
var _d, _e;
|
|
20
21
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
22
|
// Cast to any to overwrite NODE_ENV
|
|
22
|
-
(
|
|
23
|
-
// Set `__NEXT_REACT_ROOT` based on installed ReactDOM version
|
|
24
|
-
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, 'package.json'));
|
|
25
|
-
const reactDomVersion = packageJson.dependencies['react-dom'];
|
|
26
|
-
const hasReact18 = reactDomVersion &&
|
|
27
|
-
(0, semver_1.gte)((0, version_utils_1.checkAndCleanWithSemver)('react-dom', reactDomVersion), '18.0.0');
|
|
28
|
-
if (hasReact18) {
|
|
29
|
-
(_b = process.env).__NEXT_REACT_ROOT || (_b.__NEXT_REACT_ROOT = 'true');
|
|
30
|
-
}
|
|
23
|
+
(_d = process.env).NODE_ENV || (_d.NODE_ENV = 'production');
|
|
31
24
|
let dependencies = [];
|
|
32
25
|
const root = (0, path_1.resolve)(context.root, options.root);
|
|
33
26
|
const libsDir = (0, path_1.join)(context.root, (0, devkit_1.workspaceLayout)().libsDir);
|
|
@@ -36,6 +29,18 @@ function buildExecutor(options, context) {
|
|
|
36
29
|
const result = (0, buildable_libs_utils_1.calculateProjectDependencies)(context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
|
|
37
30
|
dependencies = result.dependencies;
|
|
38
31
|
}
|
|
32
|
+
// Set `__NEXT_REACT_ROOT` based on installed ReactDOM version
|
|
33
|
+
const packageJsonPath = (0, path_1.join)(root, 'package.json');
|
|
34
|
+
const packageJson = (0, fs_extra_1.existsSync)(packageJsonPath)
|
|
35
|
+
? (0, devkit_1.readJsonFile)(packageJsonPath)
|
|
36
|
+
: undefined;
|
|
37
|
+
const rootPackageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_1.workspaceRoot, 'package.json'));
|
|
38
|
+
const reactDomVersion = (_b = (_a = packageJson === null || packageJson === void 0 ? void 0 : packageJson.dependencies) === null || _a === void 0 ? void 0 : _a['react-dom']) !== null && _b !== void 0 ? _b : (_c = rootPackageJson.dependencies) === null || _c === void 0 ? void 0 : _c['react-dom'];
|
|
39
|
+
const hasReact18 = reactDomVersion &&
|
|
40
|
+
(0, semver_1.gte)((0, version_utils_1.checkAndCleanWithSemver)('react-dom', reactDomVersion), '18.0.0');
|
|
41
|
+
if (hasReact18) {
|
|
42
|
+
(_e = process.env).__NEXT_REACT_ROOT || (_e.__NEXT_REACT_ROOT = 'true');
|
|
43
|
+
}
|
|
39
44
|
const config = yield (0, config_1.prepareConfig)(constants_1.PHASE_PRODUCTION_BUILD, options, context, dependencies, libsDir);
|
|
40
45
|
yield (0, build_1.default)(root, config);
|
|
41
46
|
if (!(0, fileutils_1.directoryExists)(options.outputPath)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/next/src/executors/build/build.impl.ts"],"names":[],"mappings":";;;AAAA,yBAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/next/src/executors/build/build.impl.ts"],"names":[],"mappings":";;;AAAA,yBAAuB;AACvB,yCAKsB;AACtB,2CAAoC;AACpC,+BAAqC;AACrC,uCAAuD;AACvD,mCAA6B;AAC7B,uEAA0E;AAC1E,6FAG4D;AAC5D,+EAAsF;AAEtF,+CAAmD;AACnD,mEAA8D;AAC9D,2EAAqE;AACrE,uDAA2D;AAE3D,qDAA+D;AAE/D,SAA8B,aAAa,CACzC,OAAgC,EAChC,OAAwB;;;;QAExB,oCAAoC;QACpC,MAAC,OAAO,CAAC,GAAW,EAAC,QAAQ,QAAR,QAAQ,GAAK,YAAY,EAAC;QAE/C,IAAI,YAAY,GAAoC,EAAE,CAAC;QACvD,MAAM,IAAI,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,IAAA,wBAAe,GAAE,CAAC,OAAO,CAAC,CAAC;QAE9D,IAAA,oCAAoB,EAAC,IAAI,C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,UAAU,CAAC,EAAE;YACxC,IAAA,gBAAK,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC3B;QAED,MAAM,IAAA,uCAAiB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1C,IAAA,8CAAoB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAA,mBAAQ,EAAC,IAAA,WAAI,EAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;QAEnE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;CAC1B;AA5DD,gCA4DC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const nextVersion = "12.
|
|
3
|
-
export declare const eslintConfigNextVersion = "12.
|
|
4
|
-
export declare const sassVersion = "1.
|
|
2
|
+
export declare const nextVersion = "12.3.1";
|
|
3
|
+
export declare const eslintConfigNextVersion = "12.3.1";
|
|
4
|
+
export declare const sassVersion = "1.55.0";
|
|
5
5
|
export declare const lessLoader = "11.0.0";
|
|
6
6
|
export declare const stylusLoader = "7.0.0";
|
|
7
7
|
export declare const emotionServerVersion = "11.10.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tsLibVersion = exports.babelPluginStyledComponentsVersion = exports.emotionServerVersion = exports.stylusLoader = exports.lessLoader = exports.sassVersion = exports.eslintConfigNextVersion = exports.nextVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
-
exports.nextVersion = '12.
|
|
6
|
-
exports.eslintConfigNextVersion = '12.
|
|
7
|
-
exports.sassVersion = '1.
|
|
5
|
+
exports.nextVersion = '12.3.1';
|
|
6
|
+
exports.eslintConfigNextVersion = '12.3.1';
|
|
7
|
+
exports.sassVersion = '1.55.0';
|
|
8
8
|
exports.lessLoader = '11.0.0';
|
|
9
9
|
exports.stylusLoader = '7.0.0';
|
|
10
10
|
exports.emotionServerVersion = '11.10.0';
|