@nx/node 19.6.1 → 19.6.2

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/README.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # Nx: Smart Monorepos · Fast CI
24
24
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
25
+ Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
26
26
 
27
27
  ## Getting Started
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/node",
3
- "version": "19.6.1",
3
+ "version": "19.6.2",
4
4
  "private": false,
5
5
  "description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
6
6
  "repository": {
@@ -32,11 +32,11 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "tslib": "^2.3.0",
35
- "@nx/devkit": "19.6.1",
36
- "@nx/jest": "19.6.1",
37
- "@nx/js": "19.6.1",
38
- "@nx/eslint": "19.6.1",
39
- "@nrwl/node": "19.6.1"
35
+ "@nx/devkit": "19.6.2",
36
+ "@nx/jest": "19.6.2",
37
+ "@nx/js": "19.6.2",
38
+ "@nx/eslint": "19.6.2",
39
+ "@nrwl/node": "19.6.2"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -30,6 +30,7 @@ function getWebpackBuildConfig(project, options) {
30
30
  tsConfig: (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json'),
31
31
  assets: [(0, devkit_1.joinPathFragments)(project.sourceRoot, 'assets')],
32
32
  webpackConfig: (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'webpack.config.js'),
33
+ generatePackageJson: true,
33
34
  },
34
35
  configurations: {
35
36
  development: {},
@@ -185,6 +186,9 @@ function addProxy(tree, options) {
185
186
  }
186
187
  (0, devkit_1.updateProjectConfiguration)(tree, options.frontendProject, projectConfig);
187
188
  }
189
+ else {
190
+ devkit_1.logger.warn(`Skip updating proxy for frontend project "${options.frontendProject}" since "serve" target is not found in project.json. For more information, see: https://nx.dev/recipes/node/application-proxies.`);
191
+ }
188
192
  }
189
193
  async function addLintingToApplication(tree, options) {
190
194
  const lintTask = await (0, eslint_1.lintProjectGenerator)(tree, {
@@ -15,6 +15,7 @@ module.exports = {
15
15
  assets: <%- JSON.stringify(webpackPluginOptions.assets) %>,
16
16
  optimization: false,
17
17
  outputHashing: 'none',
18
+ generatePackageJson: true,
18
19
  })
19
20
  ],
20
21
  };
@@ -1,5 +1,5 @@
1
1
  import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
2
- import type { Linter } from '@nx/eslint';
2
+ import type { Linter, LinterType } from '@nx/eslint';
3
3
 
4
4
  export interface Schema {
5
5
  name: string;
@@ -9,7 +9,7 @@ export interface Schema {
9
9
  projectNameAndRootFormat?: ProjectNameAndRootFormat;
10
10
  unitTestRunner?: 'jest' | 'none';
11
11
  e2eTestRunner?: 'jest' | 'none';
12
- linter?: Linter;
12
+ linter?: Linter | LinterType;
13
13
  tags?: string;
14
14
  frontendProject?: string;
15
15
  swcJest?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
2
- import type { Linter } from '@nx/eslint';
2
+ import type { Linter, LinterType } from '@nx/eslint';
3
3
 
4
4
  export interface Schema {
5
5
  name: string;
@@ -10,7 +10,7 @@ export interface Schema {
10
10
  skipFormat?: boolean;
11
11
  tags?: string;
12
12
  unitTestRunner?: 'jest' | 'none';
13
- linter?: Linter;
13
+ linter?: Linter | LinterType;
14
14
  buildable?: boolean;
15
15
  publishable?: boolean;
16
16
  importPath?: string;