@nrwl/next 15.3.2 → 15.3.3
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
|
-
## [15.3.
|
|
6
|
+
## [15.3.3](https://github.com/nrwl/nx/compare/15.3.2...15.3.3) (2022-12-12)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/next
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/next",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.3",
|
|
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": "15.3.
|
|
39
|
-
"@nrwl/devkit": "15.3.
|
|
40
|
-
"@nrwl/jest": "15.3.
|
|
41
|
-
"@nrwl/linter": "15.3.
|
|
42
|
-
"@nrwl/react": "15.3.
|
|
43
|
-
"@nrwl/webpack": "15.3.
|
|
44
|
-
"@nrwl/workspace": "15.3.
|
|
38
|
+
"@nrwl/cypress": "15.3.3",
|
|
39
|
+
"@nrwl/devkit": "15.3.3",
|
|
40
|
+
"@nrwl/jest": "15.3.3",
|
|
41
|
+
"@nrwl/linter": "15.3.3",
|
|
42
|
+
"@nrwl/react": "15.3.3",
|
|
43
|
+
"@nrwl/webpack": "15.3.3",
|
|
44
|
+
"@nrwl/workspace": "15.3.3",
|
|
45
45
|
"@svgr/webpack": "^6.1.2",
|
|
46
46
|
"chalk": "4.1.0",
|
|
47
47
|
"dotenv": "~10.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"types": "./index.d.ts",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "486516ea1384d15ea74fe8334687355d1aa98f51"
|
|
61
61
|
}
|
|
@@ -5,16 +5,13 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const devkit_1 = require("@nrwl/devkit");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
7
|
const lock_file_1 = require("nx/src/lock-file/lock-file");
|
|
8
|
-
const create_package_json_1 = require("nx/src/utils/create-package-json");
|
|
9
8
|
function createPackageJson(options, context) {
|
|
10
9
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
const packageJson = (0,
|
|
10
|
+
const packageJson = (0, devkit_1.createPackageJson)(context.projectName, context.projectGraph, {
|
|
12
11
|
root: context.root,
|
|
12
|
+
// By default we remove devDependencies since this is a production build.
|
|
13
|
+
isProduction: options.includeDevDependenciesInPackageJson,
|
|
13
14
|
});
|
|
14
|
-
// By default we remove devDependencies since this is a production build.
|
|
15
|
-
if (!options.includeDevDependenciesInPackageJson) {
|
|
16
|
-
delete packageJson.devDependencies;
|
|
17
|
-
}
|
|
18
15
|
if (!packageJson.scripts) {
|
|
19
16
|
packageJson.scripts = {};
|
|
20
17
|
}
|
|
@@ -26,7 +23,7 @@ function createPackageJson(options, context) {
|
|
|
26
23
|
}
|
|
27
24
|
(0, devkit_1.writeJsonFile)(`${options.outputPath}/package.json`, packageJson);
|
|
28
25
|
// generate lock file
|
|
29
|
-
const prunedLockFile = (0,
|
|
26
|
+
const prunedLockFile = (0, devkit_1.createLockFile)(packageJson);
|
|
30
27
|
const lockFileName = (0, lock_file_1.getLockFileName)();
|
|
31
28
|
(0, fs_1.writeFileSync)(`${options.outputPath}/${lockFileName}`, prunedLockFile, {
|
|
32
29
|
encoding: 'utf-8',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-package-json.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/executors/build/lib/create-package-json.ts"],"names":[],"mappings":";;;;AACA,
|
|
1
|
+
{"version":3,"file":"create-package-json.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/executors/build/lib/create-package-json.ts"],"names":[],"mappings":";;;;AACA,yCAIsB;AACtB,2BAAmC;AACnC,0DAA6D;AAG7D,SAAsB,iBAAiB,CACrC,OAAgC,EAChC,OAAwB;;QAExB,MAAM,WAAW,GAAG,IAAA,0BAAmB,EACrC,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,YAAY,EACpB;YACE,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,yEAAyE;YACzE,YAAY,EAAE,OAAO,CAAC,mCAAmC;SAC1D,CACF,CAAC;QAEF,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;YACxB,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;SAC1B;QACD,WAAW,CAAC,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;QAEzC,MAAM,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC5E,IAAI,cAAc,EAAE;YAClB,WAAW,CAAC,YAAY,GAAG,WAAW,CAAC,YAAY,IAAI,EAAE,CAAC;YAC1D,WAAW,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;SACtE;QAED,IAAA,sBAAa,EAAC,GAAG,OAAO,CAAC,UAAU,eAAe,EAAE,WAAW,CAAC,CAAC;QAEjE,qBAAqB;QACrB,MAAM,cAAc,GAAG,IAAA,uBAAc,EAAC,WAAW,CAAC,CAAC;QACnD,MAAM,YAAY,GAAG,IAAA,2BAAe,GAAE,CAAC;QACvC,IAAA,kBAAa,EAAC,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,EAAE,EAAE,cAAc,EAAE;YACrE,QAAQ,EAAE,OAAO;SAClB,CAAC,CAAC;IACL,CAAC;CAAA;AAjCD,8CAiCC"}
|