@rxap/schematics-ts-morph 19.0.1-dev.8 → 19.0.1

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,36 @@
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
+ ## [19.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.14...@rxap/schematics-ts-morph@19.0.1) (2025-02-13)
7
+
8
+ **Note:** Version bump only for package @rxap/schematics-ts-morph
9
+
10
+ ## [19.0.1-dev.14](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.13...@rxap/schematics-ts-morph@19.0.1-dev.14) (2025-02-13)
11
+
12
+ **Note:** Version bump only for package @rxap/schematics-ts-morph
13
+
14
+ ## [19.0.1-dev.13](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.12...@rxap/schematics-ts-morph@19.0.1-dev.13) (2025-02-11)
15
+
16
+ **Note:** Version bump only for package @rxap/schematics-ts-morph
17
+
18
+ ## [19.0.1-dev.12](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.11...@rxap/schematics-ts-morph@19.0.1-dev.12) (2025-02-11)
19
+
20
+ **Note:** Version bump only for package @rxap/schematics-ts-morph
21
+
22
+ ## [19.0.1-dev.11](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.10...@rxap/schematics-ts-morph@19.0.1-dev.11) (2025-02-10)
23
+
24
+ **Note:** Version bump only for package @rxap/schematics-ts-morph
25
+
26
+ ## [19.0.1-dev.10](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.9...@rxap/schematics-ts-morph@19.0.1-dev.10) (2025-02-07)
27
+
28
+ **Note:** Version bump only for package @rxap/schematics-ts-morph
29
+
30
+ ## [19.0.1-dev.9](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.8...@rxap/schematics-ts-morph@19.0.1-dev.9) (2025-02-03)
31
+
32
+ ### Bug Fixes
33
+
34
+ - add missing imports ([0ab3e7d](https://gitlab.com/rxap/packages/commit/0ab3e7d3384fc18cf07d68faeafeaeb6b274a43f))
35
+
6
36
  ## [19.0.1-dev.8](https://gitlab.com/rxap/packages/compare/@rxap/schematics-ts-morph@19.0.1-dev.7...@rxap/schematics-ts-morph@19.0.1-dev.8) (2025-01-30)
7
37
 
8
38
  **Note:** Version bump only for package @rxap/schematics-ts-morph
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
- "version": "19.0.1-dev.8",
2
+ "version": "19.0.1",
3
3
  "name": "@rxap/schematics-ts-morph",
4
+ "description": "This package provides utilities for manipulating TypeScript code using ts-morph, particularly for Angular and NestJS projects. It offers functions to add, coerce, and modify code elements like classes, methods, decorators, and imports. The package also includes specialized functions for working with Angular components, NestJS modules, and form definitions.\n",
4
5
  "license": "GPL-3.0-or-later",
5
6
  "dependencies": {
6
7
  "@angular-devkit/core": "19.1.4",
7
8
  "@angular-devkit/schematics": "19.1.4",
8
- "@nx/devkit": "20.4.0",
9
- "@rxap/schematics-utilities": "^19.0.1-dev.7",
10
- "@rxap/ts-morph": "^1.5.3-dev.3",
11
- "@rxap/utilities": "^16.4.2-dev.2",
12
- "@rxap/workspace-ts-morph": "^19.1.9-dev.8",
13
- "@rxap/workspace-utilities": "^19.6.1-dev.7",
9
+ "@nx/devkit": "20.4.2",
10
+ "@rxap/schematics-utilities": "^19.0.1",
11
+ "@rxap/ts-morph": "^1.5.3",
12
+ "@rxap/utilities": "^16.4.2",
13
+ "@rxap/workspace-ts-morph": "^19.1.9",
14
+ "@rxap/workspace-utilities": "^19.6.1",
14
15
  "colors": "^1.4.0",
15
16
  "handlebars": "^4.7.8",
16
17
  "ts-morph": "^18.0.0",
@@ -43,8 +44,9 @@
43
44
  "url": "https://gitlab.com/rxap/packages.git",
44
45
  "directory": "packages/schematic/ts-morph"
45
46
  },
47
+ "schematics": "./generators.json",
46
48
  "type": "commonjs",
47
- "gitHead": "46346e73f18714b44ad1c9dafb311abdab1c33f1",
49
+ "gitHead": "753c877fe1a5c2fcfa737310f6e99fd1371f9b4d",
48
50
  "types": "./src/index.d.ts",
49
51
  "main": "./src/index.js"
50
52
  }
@@ -0,0 +1,2 @@
1
+ declare const schematic: (generatorOptions: import("./schema").InitGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default schematic;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ const generator_1 = tslib_1.__importDefault(require("./generator"));
6
+ const schematic = (0, devkit_1.convertNxGenerator)(generator_1.default);
7
+ exports.default = schematic;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/generators/init/index.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,oEAAoC;AAEpC,MAAM,SAAS,GAAG,IAAA,2BAAkB,EAAC,mBAAS,CAAC,CAAC;AAChD,kBAAe,SAAS,CAAC"}
@@ -19,6 +19,10 @@ function CoerceDialogTableActionRule(options) {
19
19
  namedImports: ['MatDialog'],
20
20
  moduleSpecifier: '@angular/material/dialog',
21
21
  });
22
+ (0, ts_morph_1.CoerceImports)(sourceFile, {
23
+ namedImports: ['firstValueFrom'],
24
+ moduleSpecifier: 'rxjs',
25
+ });
22
26
  (0, ts_morph_1.CoerceImports)(sourceFile, {
23
27
  namedImports: [`${(0, schematics_utilities_1.classify)(type)}DialogComponent`],
24
28
  moduleSpecifier: `../../${(0, schematics_utilities_1.dasherize)(type)}-dialog/${(0, schematics_utilities_1.dasherize)(type)}-dialog.component`,
@@ -1 +1 @@
1
- {"version":3,"file":"coerce-dialog-table-action.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/coerce-dialog-table-action.ts"],"names":[],"mappings":";;AAiBA,kEA6CC;AA9DD,qEAGoC;AACpC,6CAIwB;AACxB,uCAAiC;AACjC,+DAG+B;AAI/B,SAAgB,2BAA2B,CAAC,OAA2C;IACrF,IAAI,EACF,gBAAgB,EAChB,SAAS,EACT,IAAI,GACL,GAAG,OAAO,CAAC;IACZ,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,IAAhB,gBAAgB,GAAK,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAC;IAGhC,OAAO,IAAA,2CAAqB,kCACvB,OAAO,KACV,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE;YAE1D,IAAA,oCAAyB,EAAC,UAAU,EAAE;gBACpC,cAAc,EAAE,WAAW;gBAC3B,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,gBAAK,CAAC,OAAO;gBACpB,MAAM,EAAE,iBAAM,CAAC,OAAO;aACvB,CAAC,CAAC;YAEH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,WAAW,CAAE;gBAC7B,eAAe,EAAE,0BAA0B;aAC5C,CAAC,CAAC;YAEH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,GAAI,IAAA,+BAAQ,EAAC,IAAI,CAAE,iBAAiB,CAAE;gBACtD,eAAe,EAAE,SAAU,IAAA,gCAAS,EAAC,IAAI,CAAE,WAAY,IAAA,gCAAS,EAAC,IAAI,CAAE,mBAAmB;aAC3F,CAAC,CAAC;YAEH,uBACE,UAAU,EAAE;oBACV,kCAAmC,IAAK,kBAAkB;oBAC1D,+BAA+B;oBAC/B,KAAM,IAAA,+BAAQ,EAAC,IAAI,CAAE,kBAAkB;oBACvC,wBAAwB;oBACxB,IAAI;oBACJ,2CAA2C;iBAC5C,EACD,UAAU,EAAE,eAAe,IACxB,gBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAC3D;QACJ,CAAC,IACD,CAAC;AAEL,CAAC"}
1
+ {"version":3,"file":"coerce-dialog-table-action.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/coerce-dialog-table-action.ts"],"names":[],"mappings":";;AAiBA,kEAkDC;AAnED,qEAGoC;AACpC,6CAIwB;AACxB,uCAAiC;AACjC,+DAG+B;AAI/B,SAAgB,2BAA2B,CAAC,OAA2C;IACrF,IAAI,EACF,gBAAgB,EAChB,SAAS,EACT,IAAI,GACL,GAAG,OAAO,CAAC;IACZ,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,IAAhB,gBAAgB,GAAK,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAC;IAGhC,OAAO,IAAA,2CAAqB,kCACvB,OAAO,KACV,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE;YAE1D,IAAA,oCAAyB,EAAC,UAAU,EAAE;gBACpC,cAAc,EAAE,WAAW;gBAC3B,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,gBAAK,CAAC,OAAO;gBACpB,MAAM,EAAE,iBAAM,CAAC,OAAO;aACvB,CAAC,CAAC;YAEH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,WAAW,CAAE;gBAC7B,eAAe,EAAE,0BAA0B;aAC5C,CAAC,CAAC;YAEH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,gBAAgB,CAAE;gBAClC,eAAe,EAAE,MAAM;aACxB,CAAC,CAAC;YAEH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,GAAI,IAAA,+BAAQ,EAAC,IAAI,CAAE,iBAAiB,CAAE;gBACtD,eAAe,EAAE,SAAU,IAAA,gCAAS,EAAC,IAAI,CAAE,WAAY,IAAA,gCAAS,EAAC,IAAI,CAAE,mBAAmB;aAC3F,CAAC,CAAC;YAEH,uBACE,UAAU,EAAE;oBACV,kCAAmC,IAAK,kBAAkB;oBAC1D,+BAA+B;oBAC/B,KAAM,IAAA,+BAAQ,EAAC,IAAI,CAAE,kBAAkB;oBACvC,wBAAwB;oBACxB,IAAI;oBACJ,2CAA2C;iBAC5C,EACD,UAAU,EAAE,eAAe,IACxB,gBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAC3D;QACJ,CAAC,IACD,CAAC;AAEL,CAAC"}