@rxap/generator-ts-morph 1.0.1-dev.1 → 1.0.1-dev.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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
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
+ ## 1.0.1-dev.2 (2023-08-01)
7
+
8
+ ### Bug Fixes
9
+
10
+ - restructure and merge mono repos packages, schematics, plugins and nest ([a057d77](https://gitlab.com/rxap/packages/commit/a057d77ca2acf9426a03a497da8532f8a2fe2c86))
11
+ - update package dependency versions ([45bd022](https://gitlab.com/rxap/packages/commit/45bd022d755c0c11f7d0bcc76d26b39928007941))
12
+
6
13
  ## [1.0.1-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/generator-ts-morph@1.0.1-dev.0...@rxap/generator-ts-morph@1.0.1-dev.1) (2023-07-10)
7
14
 
8
15
  ### Bug Fixes
package/README.md CHANGED
@@ -15,3 +15,7 @@
15
15
  ```bash
16
16
  yarn add @rxap/generator-ts-morph
17
17
  ```
18
+ **Install peer dependencies:**
19
+ ```bash
20
+ yarn add
21
+ ```
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@rxap/generator-ts-morph",
3
- "version": "1.0.1-dev.1",
3
+ "version": "1.0.1-dev.2",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
- "@nx/devkit": "^16.5.0",
7
- "ts-morph": "^18.0.0"
6
+ "@rxap/workspace-ts-morph": "^0.0.2-dev.0",
7
+ "@rxap/node-utilities": "1.0.1-dev.2",
8
+ "@rxap/utilities": "16.0.0-dev.4",
9
+ "@rxap/workspace-utilities": "0.1.0-dev.0"
8
10
  },
9
11
  "dependencies": {
12
+ "ignore": "^5.2.4",
13
+ "semver": "^7.3.5",
14
+ "ts-morph": "18.0.0",
10
15
  "tslib": "2.5.3"
11
16
  },
12
17
  "publishConfig": {
@@ -14,7 +19,10 @@
14
19
  "directory": "../../../dist/packages/generator/ts-morph"
15
20
  },
16
21
  "keywords": [
17
- "rxap"
22
+ "rxap",
23
+ "packages",
24
+ "generator",
25
+ "ts-morph"
18
26
  ],
19
27
  "homepage": "https:/gitlab.com/rxap/packages/packages/generator/ts-morph",
20
28
  "bugs": {
@@ -32,9 +40,14 @@
32
40
  "email": "mmuenker@digitaix.com"
33
41
  },
34
42
  "nx-migrations": {
35
- "packageGroup": []
43
+ "packageGroup": [
44
+ {
45
+ "package": "@rxap/workspace-ts-morph",
46
+ "version": "0.0.2-dev.0"
47
+ }
48
+ ]
36
49
  },
37
- "gitHead": "9ad96f2d4db9225ab199d03fc172efff52609d5d",
50
+ "gitHead": "ed3a0788894aa734ec2a8e9e957cf73cabe033d6",
38
51
  "main": "./src/index.js",
39
52
  "types": "./src/index.d.ts"
40
53
  }
@@ -1,10 +1,5 @@
1
- import { Tree } from '@nx/devkit';
2
- import { Project } from 'ts-morph';
1
+ import { AddDir as _AddDir } from '@rxap/workspace-ts-morph';
3
2
  /**
4
- * Adds all files recursively from a specify path to the project.
5
- * @param tree A nx Tree instance
6
- * @param directoryPath A directory path
7
- * @param project A ts-morph Project instance
8
- * @param filter A filter function base on the pathFragment and dirEntry
3
+ * @deprecated import from the @rxap/workspace-ts-morph package
9
4
  */
10
- export declare function AddDir(tree: Tree, directoryPath: string, project: Project, filter?: ((fileName: string, dirPath: string) => boolean)): void;
5
+ export declare const AddDir: typeof _AddDir;
@@ -1,29 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddDir = void 0;
4
- const path_1 = require("path");
4
+ const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
5
5
  /**
6
- * Adds all files recursively from a specify path to the project.
7
- * @param tree A nx Tree instance
8
- * @param directoryPath A directory path
9
- * @param project A ts-morph Project instance
10
- * @param filter A filter function base on the pathFragment and dirEntry
6
+ * @deprecated import from the @rxap/workspace-ts-morph package
11
7
  */
12
- function AddDir(tree, directoryPath, project, filter = path => path.endsWith('.ts')) {
13
- if (tree.isFile(directoryPath)) {
14
- throw new Error(`The path '${directoryPath}' does not point to a dir entry`);
15
- }
16
- for (const fileName of tree.children(directoryPath)
17
- .filter(fileOrDirectoryName => tree.isFile((0, path_1.join)(directoryPath, fileOrDirectoryName)))
18
- .filter(fileName => filter(fileName, directoryPath))) {
19
- const filePath = (0, path_1.join)(directoryPath, fileName);
20
- if (!project.getSourceFile(filePath)) {
21
- project.createSourceFile(filePath, tree.read(filePath).toString('utf-8'));
22
- }
23
- }
24
- for (const dirName of tree.children(directoryPath).filter(pf => !tree.isFile((0, path_1.join)(directoryPath, pf)))) {
25
- AddDir(tree, (0, path_1.join)(directoryPath, dirName), project, filter);
26
- }
27
- }
28
- exports.AddDir = AddDir;
8
+ exports.AddDir = workspace_ts_morph_1.AddDir;
29
9
  //# sourceMappingURL=add-dir.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-dir.js","sourceRoot":"","sources":["../../../../../../packages/generator/ts-morph/src/lib/add-dir.ts"],"names":[],"mappings":";;;AAEA,+BAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,MAAM,CACpB,IAAU,EACV,aAAqB,EACrB,OAAgB,EAChB,SAA2D,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;IAEvF,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;QAC9B,MAAM,IAAI,KAAK,CAAC,aAAc,aAAc,iCAAiC,CAAC,CAAC;KAChF;IACD,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC;SACvB,MAAM,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC,CAAC;SACpF,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM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