@nx/angular 16.7.0-beta.3 → 16.7.0-beta.4

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/generators.json CHANGED
@@ -42,7 +42,8 @@
42
42
  "convert-tslint-to-eslint": {
43
43
  "factory": "./src/generators/convert-tslint-to-eslint/compat",
44
44
  "schema": "./src/generators/convert-tslint-to-eslint/schema.json",
45
- "description": "Converts a project from TSLint to ESLint."
45
+ "description": "Converts a project from TSLint to ESLint.",
46
+ "x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint."
46
47
  },
47
48
  "init": {
48
49
  "factory": "./src/generators/init/init.compat#initSchematic",
@@ -194,7 +195,8 @@
194
195
  "convert-tslint-to-eslint": {
195
196
  "factory": "./src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint#conversionGenerator",
196
197
  "schema": "./src/generators/convert-tslint-to-eslint/schema.json",
197
- "description": "Converts a project from TSLint to ESLint."
198
+ "description": "Converts a project from TSLint to ESLint.",
199
+ "x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint."
198
200
  },
199
201
  "directive": {
200
202
  "factory": "./src/generators/directive/directive",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "16.7.0-beta.3",
3
+ "version": "16.7.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -66,14 +66,14 @@
66
66
  "migrations": "./migrations.json"
67
67
  },
68
68
  "dependencies": {
69
- "@nrwl/angular": "16.7.0-beta.3",
70
- "@nx/cypress": "16.7.0-beta.3",
71
- "@nx/devkit": "16.7.0-beta.3",
72
- "@nx/jest": "16.7.0-beta.3",
73
- "@nx/js": "16.7.0-beta.3",
74
- "@nx/linter": "16.7.0-beta.3",
75
- "@nx/webpack": "16.7.0-beta.3",
76
- "@nx/workspace": "16.7.0-beta.3",
69
+ "@nrwl/angular": "16.7.0-beta.4",
70
+ "@nx/cypress": "16.7.0-beta.4",
71
+ "@nx/devkit": "16.7.0-beta.4",
72
+ "@nx/jest": "16.7.0-beta.4",
73
+ "@nx/js": "16.7.0-beta.4",
74
+ "@nx/linter": "16.7.0-beta.4",
75
+ "@nx/webpack": "16.7.0-beta.4",
76
+ "@nx/workspace": "16.7.0-beta.4",
77
77
  "@phenomnomnominal/tsquery": "~5.0.1",
78
78
  "@typescript-eslint/type-utils": "^5.36.1",
79
79
  "chalk": "^4.1.0",
@@ -107,5 +107,5 @@
107
107
  "module": "fesm2022/nx-angular.mjs",
108
108
  "typings": "index.d.ts",
109
109
  "sideEffects": false,
110
- "gitHead": "118faf4e432667fd041954d96aa6c9c99fea5ebd"
110
+ "gitHead": "dcbba686b182737b66ebbfb9db372769e77ba005"
111
111
  }
@@ -1 +1,4 @@
1
+ /**
2
+ * @deprecated This generator will be removed in v17
3
+ */
1
4
  export declare const conversionSchematic: (generatorOptions: import("../../../../../build/packages/linter").ConvertTSLintToESLintSchema) => (tree: any, context: any) => Promise<any>;
@@ -4,4 +4,7 @@ exports.conversionSchematic = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const warn_for_schematic_usage_1 = require("../utils/warn-for-schematic-usage");
6
6
  const convert_tslint_to_eslint_1 = require("./convert-tslint-to-eslint");
7
+ /**
8
+ * @deprecated This generator will be removed in v17
9
+ */
7
10
  exports.conversionSchematic = (0, warn_for_schematic_usage_1.warnForSchematicUsage)((0, devkit_1.convertNxGenerator)(convert_tslint_to_eslint_1.conversionGenerator));
@@ -1,3 +1,6 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { ConvertTSLintToESLintSchema } from '@nx/linter';
3
+ /**
4
+ * @deprecated This generator will be removed in v17
5
+ */
3
6
  export declare function conversionGenerator(host: Tree, options: ConvertTSLintToESLintSchema): Promise<() => Promise<void>>;
@@ -6,6 +6,9 @@ const cypress_1 = require("@nx/cypress");
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const linter_1 = require("@nx/linter");
8
8
  const add_linting_1 = require("../add-linting/add-linting");
9
+ /**
10
+ * @deprecated This generator will be removed in v17
11
+ */
9
12
  function conversionGenerator(host, options) {
10
13
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
14
  /**
@@ -4,6 +4,7 @@
4
4
  "cli": "nx",
5
5
  "title": "Convert an Angular project from TSLint to ESLint",
6
6
  "description": "Convert an Angular project from TSLint to ESLint. NOTE: Does not work in `--dry-run mode`.",
7
+ "x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.",
7
8
  "examples": [
8
9
  {
9
10
  "command": "nx g convert-tslint-to-eslint myapp",
@@ -108,7 +108,7 @@ function getDecoratorMetadata(source, identifier, module) {
108
108
  exports.getDecoratorMetadata = getDecoratorMetadata;
109
109
  function _addSymbolToDecoratorMetadata(host, source, filePath, metadataField, expression, decoratorName) {
110
110
  const nodes = getDecoratorMetadata(source, decoratorName, '@angular/core');
111
- let node = nodes[0]; // tslint:disable-line:no-any
111
+ let node = nodes[0];
112
112
  // Find the decorator declaration.
113
113
  if (!node) {
114
114
  return source;
@@ -230,7 +230,7 @@ function _addSymbolToNgModuleMetadata(host, source, ngModulePath, metadataField,
230
230
  }
231
231
  function removeFromNgModule(host, source, modulePath, property) {
232
232
  const nodes = getDecoratorMetadata(source, 'NgModule', '@angular/core');
233
- let node = nodes[0]; // tslint:disable-line:no-any
233
+ let node = nodes[0];
234
234
  // Find the decorator declaration.
235
235
  if (!node) {
236
236
  return source;
@@ -362,7 +362,7 @@ function getBootstrapComponent(source, moduleClassName) {
362
362
  exports.getBootstrapComponent = getBootstrapComponent;
363
363
  function getMatchingProperty(source, property, identifier, module) {
364
364
  const nodes = getDecoratorMetadata(source, identifier, module);
365
- let node = nodes[0]; // tslint:disable-line:no-any
365
+ let node = nodes[0];
366
366
  if (!node)
367
367
  return null;
368
368
  // Get all the children property assignment of object literals.