@nx/next 16.8.0-beta.2 → 16.8.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "16.8.0-beta.2",
3
+ "version": "16.8.0-beta.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.22.7",
38
- "@nrwl/next": "16.8.0-beta.2",
39
- "@nx/devkit": "16.8.0-beta.2",
40
- "@nx/js": "16.8.0-beta.2",
41
- "@nx/linter": "16.8.0-beta.2",
42
- "@nx/react": "16.8.0-beta.2",
43
- "@nx/web": "16.8.0-beta.2",
44
- "@nx/workspace": "16.8.0-beta.2",
38
+ "@nrwl/next": "16.8.0-beta.3",
39
+ "@nx/devkit": "16.8.0-beta.3",
40
+ "@nx/js": "16.8.0-beta.3",
41
+ "@nx/linter": "16.8.0-beta.3",
42
+ "@nx/react": "16.8.0-beta.3",
43
+ "@nx/web": "16.8.0-beta.3",
44
+ "@nx/workspace": "16.8.0-beta.3",
45
45
  "@svgr/webpack": "^8.0.1",
46
46
  "chalk": "^4.1.0",
47
47
  "copy-webpack-plugin": "^10.2.4",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "type": "commonjs",
59
- "gitHead": "9bcc04742f9e1516d8c1ddbfb1907770c347876f"
59
+ "gitHead": "dcd48165a485bc8db57a1fb02b96a0772de3b7e9"
60
60
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.customServerSchematic = exports.customServerGenerator = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const devkit_1 = require("@nx/devkit");
6
+ const path_1 = require("path");
6
7
  function customServerGenerator(host, options) {
7
8
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
8
9
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -26,7 +27,7 @@ function customServerGenerator(host, options) {
26
27
  devkit_1.logger.warn(`Project ${options.project} has custom server targets already: build-custom-server, serve-custom-server. Remove these targets from project and try again.`);
27
28
  return;
28
29
  }
29
- (0, devkit_1.generateFiles)(host, (0, devkit_1.joinPathFragments)(__dirname, 'files'), project.root, Object.assign(Object.assign({}, options), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(project.root), projectRoot: project.root, tmpl: '' }));
30
+ (0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, 'files'), project.root, Object.assign(Object.assign({}, options), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(project.root), projectRoot: project.root, tmpl: '' }));
30
31
  project.targets.build.dependsOn = ['build-custom-server'];
31
32
  project.targets.serve.options.customServerTarget = `${options.project}:serve-custom-server`;
32
33
  project.targets.serve.configurations.development.customServerTarget = `${options.project}:serve-custom-server:development`;