@rxap/ngx-oauth2-proxy 22.0.0-dev.0 → 22.0.0-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.
Files changed (91) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +5 -3
  3. package/compodoc/architecture.html +222 -0
  4. package/compodoc/changelog.html +80 -5
  5. package/compodoc/dependencies.html +108 -27
  6. package/compodoc/guards/oauth2ProxyGuard.html +293 -0
  7. package/compodoc/index.html +50 -8
  8. package/compodoc/injectables/GetOauth2ProxyUserProfileMethod.html +77 -17
  9. package/compodoc/injectables/Oauth2ProxyUserProfileDataSource.html +90 -11
  10. package/compodoc/interfaces/Oauth2ProxyUserProfile.html +153 -98
  11. package/compodoc/js/architecture-graph.js +288 -0
  12. package/compodoc/js/libs/bootstrap-native.js +4 -2
  13. package/compodoc/js/libs/jszip.min.js +13 -0
  14. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  15. package/compodoc/js/libs/tablesort.min.js +3 -3
  16. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  17. package/compodoc/js/libs/vis-network.min.js +78 -0
  18. package/compodoc/js/menu-wc.js +38 -12
  19. package/compodoc/js/menu.js +10 -11
  20. package/compodoc/js/routes/routes_index.js +1 -0
  21. package/compodoc/js/routes.js +142 -34
  22. package/compodoc/js/search/search-lunr.js +6 -8
  23. package/compodoc/js/search/search.js +118 -66
  24. package/compodoc/js/search/search_index.js +2 -2
  25. package/compodoc/js/tabs.js +98 -15
  26. package/compodoc/js/tree.js +44 -7
  27. package/compodoc/license.html +48 -6
  28. package/compodoc/llms.txt +52 -0
  29. package/compodoc/miscellaneous/functions.html +133 -9
  30. package/compodoc/miscellaneous/variables.html +50 -57
  31. package/compodoc/modules.html +44 -3
  32. package/compodoc/overview.html +62 -3
  33. package/compodoc/properties.html +45 -4
  34. package/compodoc/routes.html +227 -0
  35. package/compodoc/styles/compodoc.css +365 -44
  36. package/compodoc/styles/dark.css +16 -0
  37. package/compodoc/template-playground/default-templates.json +192 -0
  38. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  39. package/compodoc/template-playground/main.ts +9 -0
  40. package/compodoc/template-playground/template-editor.service.ts +173 -0
  41. package/compodoc/template-playground/template-playground.component.ts +614 -0
  42. package/compodoc/template-playground/template-playground.module.ts +29 -0
  43. package/compodoc/template-playground/zip-export.service.ts +86 -0
  44. package/compodoc/template-playground-app/app.js +1389 -0
  45. package/compodoc/template-playground-app/index.html +462 -0
  46. package/docs/documentation.json +1283 -742
  47. package/docs/html/assets/highlight.css +1 -1
  48. package/docs/html/assets/icons.js +1 -1
  49. package/docs/html/assets/icons.svg +1 -1
  50. package/docs/html/assets/main.js +5 -5
  51. package/docs/html/assets/navigation.js +1 -1
  52. package/docs/html/assets/search.js +1 -1
  53. package/docs/html/assets/style.css +265 -228
  54. package/docs/html/classes/GetOauth2ProxyUserProfileMethod.html +79 -3
  55. package/docs/html/classes/Oauth2ProxyUserProfileDataSource.html +730 -69
  56. package/docs/html/functions/provideOauth2Proxy.html +38 -1
  57. package/docs/html/functions/subscribeToLogoutEvent.html +42 -1
  58. package/docs/html/hierarchy.html +29 -0
  59. package/docs/html/index.html +44 -7
  60. package/docs/html/interfaces/Oauth2ProxyUserProfile.html +65 -5
  61. package/docs/html/modules.html +48 -1
  62. package/docs/html/variables/oauth2ProxyGuard.html +33 -0
  63. package/docs/markdown/README.md +6 -4
  64. package/docs/markdown/classes/GetOauth2ProxyUserProfileMethod.md +6 -6
  65. package/docs/markdown/classes/Oauth2ProxyUserProfileDataSource.md +156 -80
  66. package/docs/markdown/functions/provideOauth2Proxy.md +2 -2
  67. package/docs/markdown/functions/subscribeToLogoutEvent.md +3 -7
  68. package/docs/markdown/globals.md +6 -3
  69. package/docs/markdown/interfaces/Oauth2ProxyUserProfile.md +4 -4
  70. package/docs/markdown/variables/oauth2ProxyGuard.md +11 -0
  71. package/docs/wiki/Class.GetOauth2ProxyUserProfileMethod.md +5 -5
  72. package/docs/wiki/Class.Oauth2ProxyUserProfileDataSource.md +155 -79
  73. package/docs/wiki/Function.provideOauth2Proxy.md +1 -1
  74. package/docs/wiki/Function.subscribeToLogoutEvent.md +2 -6
  75. package/docs/wiki/Home.md +5 -3
  76. package/docs/wiki/Interface.Oauth2ProxyUserProfile.md +3 -3
  77. package/docs/wiki/Variable.oauth2ProxyGuard.md +7 -0
  78. package/docs/wiki/_Sidebar.md +4 -1
  79. package/docs/wiki/globals.md +5 -2
  80. package/generators.json +16 -0
  81. package/package.json +23 -25
  82. package/src/generators/init/generator.js +120 -0
  83. package/src/generators/init/index.js +6 -0
  84. package/src/generators/init/schema.json +8 -0
  85. package/src/generators/package.json +3 -0
  86. package/compodoc/js/libs/vis.min.js +0 -47
  87. package/compodoc/js/menu-wc_es5.js +0 -40
  88. package/docs/html/functions/oauth2ProxyGuard.html +0 -1
  89. package/docs/markdown/functions/oauth2ProxyGuard.md +0 -25
  90. package/docs/wiki/Function.oauth2ProxyGuard.md +0 -21
  91. package/theme.css +0 -1
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **provideOauth2Proxy**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:21](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L21)
7
+ Defined in: [oauth2-proxy/src/lib/provide-oauth2-proxy.ts:21](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L21)
8
8
 
9
9
  ## Returns
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **subscribeToLogoutEvent**(`pubSubService`): () => `void`
6
6
 
7
- Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L11)
7
+ Defined in: [oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L11)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -14,8 +14,4 @@ Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](h
14
14
 
15
15
  ## Returns
16
16
 
17
- `Function`
18
-
19
- ### Returns
20
-
21
- `void`
17
+ () => `void`
package/docs/wiki/Home.md CHANGED
@@ -15,15 +15,17 @@ Provides an Angular guard and utilities for integrating with an OAuth2 Proxy. It
15
15
 
16
16
  **Add the package to your workspace:**
17
17
  ```bash
18
- yarn add @rxap/ngx-oauth2-proxy
18
+ npm install @rxap/ngx-oauth2-proxy
19
19
  ```
20
+ With pnpm or yarn use `pnpm add` or `yarn add` instead of `npm install`.
21
+
20
22
  **Install peer dependencies:**
21
23
  ```bash
22
- yarn add @angular/common @angular/core @angular/router @rxap/config @rxap/data-source @rxap/ngx-pub-sub @rxap/pattern rxjs
24
+ npm install @angular/common @angular/core @angular/router @rxap/config @rxap/data-source @rxap/ngx-pub-sub @rxap/pattern rxjs
23
25
  ```
24
26
  **Execute the init generator:**
25
27
  ```bash
26
- yarn nx g @rxap/ngx-oauth2-proxy:init
28
+ nx g @rxap/ngx-oauth2-proxy:init
27
29
  ```
28
30
  # Generators
29
31
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: Oauth2ProxyUserProfile
4
4
 
5
- Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:10](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L10)
5
+ Defined in: [oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L10)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile
10
10
 
11
11
  > **email**: `string`
12
12
 
13
- Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:18](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L18)
13
+ Defined in: [oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:18](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L18)
14
14
 
15
15
  Email address of the user
16
16
 
@@ -20,6 +20,6 @@ Email address of the user
20
20
 
21
21
  > **user**: `string`
22
22
 
23
- Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:14](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L14)
23
+ Defined in: [oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:14](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L14)
24
24
 
25
25
  User Id of the user
@@ -0,0 +1,7 @@
1
+ [@rxap/ngx-oauth2-proxy](../wiki/globals) / oauth2ProxyGuard
2
+
3
+ # Variable: oauth2ProxyGuard
4
+
5
+ > `const` **oauth2ProxyGuard**: `CanActivateFn`
6
+
7
+ Defined in: [oauth2-proxy/src/lib/oauth2-proxy.guard.ts:14](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts#L14)
@@ -9,8 +9,11 @@
9
9
 
10
10
  - [Oauth2ProxyUserProfile](../wiki/Interface.Oauth2ProxyUserProfile)
11
11
 
12
+ ### Variables
13
+
14
+ - [oauth2ProxyGuard](../wiki/Variable.oauth2ProxyGuard)
15
+
12
16
  ### Functions
13
17
 
14
- - [oauth2ProxyGuard](../wiki/Function.oauth2ProxyGuard)
15
18
  - [provideOauth2Proxy](../wiki/Function.provideOauth2Proxy)
16
19
  - [subscribeToLogoutEvent](../wiki/Function.subscribeToLogoutEvent)
@@ -1,4 +1,4 @@
1
- # @rxap/ngx-oauth2-proxy v22.0.0-dev.0
1
+ # @rxap/ngx-oauth2-proxy v22.0.0-dev.2
2
2
 
3
3
  ## Classes
4
4
 
@@ -9,8 +9,11 @@
9
9
 
10
10
  - [Oauth2ProxyUserProfile](../wiki/Interface.Oauth2ProxyUserProfile)
11
11
 
12
+ ## Variables
13
+
14
+ - [oauth2ProxyGuard](../wiki/Variable.oauth2ProxyGuard)
15
+
12
16
  ## Functions
13
17
 
14
- - [oauth2ProxyGuard](../wiki/Function.oauth2ProxyGuard)
15
18
  - [provideOauth2Proxy](../wiki/Function.provideOauth2Proxy)
16
19
  - [subscribeToLogoutEvent](../wiki/Function.subscribeToLogoutEvent)
@@ -0,0 +1,16 @@
1
+ {
2
+ "generators": {
3
+ "init": {
4
+ "factory": "./src/generators/init/generator",
5
+ "schema": "./src/generators/init/schema.json",
6
+ "description": "Initialize the package in the workspace"
7
+ }
8
+ },
9
+ "schematics": {
10
+ "init": {
11
+ "factory": "./src/generators/init/index",
12
+ "schema": "./src/generators/init/schema.json",
13
+ "description": "Initialize the package in the workspace"
14
+ }
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "version": "22.0.0-dev.0",
2
+ "version": "22.0.0-dev.2",
3
3
  "name": "@rxap/ngx-oauth2-proxy",
4
4
  "description": "Provides an Angular guard and utilities for integrating with an OAuth2 Proxy. It includes a guard to protect routes, a method to fetch user profile information, and a data source for managing the user profile. Also provides an app initializer to subscribe to logout events.\n",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
7
  "@nx/devkit": "24.0.6",
8
- "tslib": "2.6.2"
8
+ "tslib": "2.9.1"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^22.3.0",
12
- "@angular/core": "^22.3.0",
13
- "@angular/router": "^22.3.0",
14
- "@rxap/config": "^22.0.0-dev.0",
15
- "@rxap/data-source": "^22.0.0-dev.0",
16
- "@rxap/ngx-pub-sub": "^22.0.0-dev.0",
17
- "@rxap/pattern": "^1.1.16",
18
- "rxjs": "^7.8.2"
11
+ "@angular/common": "^22.0.0",
12
+ "@angular/core": "^22.0.0",
13
+ "@angular/router": "^22.0.0",
14
+ "@rxap/config": "^22.0.0-dev.2",
15
+ "@rxap/data-source": "^22.0.0-dev.2",
16
+ "@rxap/ngx-pub-sub": "^22.0.0-dev.2",
17
+ "@rxap/pattern": "^1.1.17-dev.1",
18
+ "rxjs": "^7.0.0"
19
19
  },
20
20
  "author": {
21
21
  "name": "Merzough Münker",
@@ -67,49 +67,48 @@
67
67
  },
68
68
  {
69
69
  "package": "@rxap/config",
70
- "version": "22.0.0-dev.0"
70
+ "version": "22.0.0-dev.2"
71
71
  },
72
72
  {
73
73
  "package": "@rxap/data-source",
74
- "version": "22.0.0-dev.0"
74
+ "version": "22.0.0-dev.2"
75
75
  },
76
76
  {
77
77
  "package": "@rxap/data-structure-tree",
78
- "version": "1.1.19"
78
+ "version": "1.1.20-dev.1"
79
79
  },
80
80
  {
81
81
  "package": "@rxap/definition",
82
- "version": "22.0.0-dev.0"
82
+ "version": "22.0.0-dev.2"
83
83
  },
84
84
  {
85
85
  "package": "@rxap/environment",
86
- "version": "22.0.0-dev.0"
86
+ "version": "22.0.0-dev.2"
87
87
  },
88
88
  {
89
89
  "package": "@rxap/ngx-pub-sub",
90
- "version": "22.0.0-dev.0"
90
+ "version": "22.0.0-dev.2"
91
91
  },
92
92
  {
93
93
  "package": "@rxap/pattern",
94
- "version": "1.1.16"
94
+ "version": "1.1.17-dev.1"
95
95
  },
96
96
  {
97
97
  "package": "@rxap/reflect-metadata",
98
- "version": "1.0.18"
98
+ "version": "1.0.19-dev.1"
99
99
  },
100
100
  {
101
101
  "package": "@rxap/rxjs",
102
- "version": "1.1.18"
102
+ "version": "1.1.19-dev.1"
103
103
  },
104
104
  {
105
105
  "package": "@rxap/utilities",
106
- "version": "16.5.2"
106
+ "version": "16.5.3-dev.1"
107
107
  }
108
108
  ]
109
109
  },
110
110
  "publishConfig": {
111
- "access": "public",
112
- "directory": "../../../dist/packages/angular/oauth2-proxy"
111
+ "access": "public"
113
112
  },
114
113
  "repository": {
115
114
  "type": "git",
@@ -127,8 +126,7 @@
127
126
  ".": {
128
127
  "types": "./types/rxap-ngx-oauth2-proxy.d.ts",
129
128
  "default": "./fesm2022/rxap-ngx-oauth2-proxy.mjs"
130
- },
131
- "./theme": "./theme.css"
129
+ }
132
130
  },
133
131
  "type": "module"
134
- }
132
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initGenerator = initGenerator;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const fs_1 = require("fs");
6
+ const path_1 = require("path");
7
+ /**
8
+ * Resolves the directory of a package installed in the workspace. The lookup starts at the
9
+ * workspace root, not at this package: with an isolated node_modules layout (pnpm) or Yarn PnP
10
+ * the peer is not resolvable from here. The plain node_modules path is the fallback for packages
11
+ * whose `exports` map hides their package.json.
12
+ */
13
+ function resolvePackageDir(root, packageName) {
14
+ try {
15
+ return (0, path_1.dirname)(require.resolve(`${packageName}/package.json`, { paths: [root] }));
16
+ }
17
+ catch {
18
+ return (0, path_1.join)(root, 'node_modules', ...packageName.split('/'));
19
+ }
20
+ }
21
+ async function initGenerator(tree, options) {
22
+ // The package's own package.json lives on disk next to the compiled generator
23
+ // (inside node_modules when installed), which the virtual Tree does not track.
24
+ // Read it directly from the physical filesystem.
25
+ const packageJsonFilePath = (0, path_1.join)(__dirname, '..', '..', '..', 'package.json');
26
+ if (!(0, fs_1.existsSync)(packageJsonFilePath)) {
27
+ console.error('package.json not found in: ' + packageJsonFilePath);
28
+ return;
29
+ }
30
+ const { peerDependencies, name: packageName } = JSON.parse((0, fs_1.readFileSync)(packageJsonFilePath, 'utf-8'));
31
+ console.log(`Coerce peer dependencies for package: ${packageName}`);
32
+ if (!peerDependencies || !Object.keys(peerDependencies).length) {
33
+ console.log('No peer dependencies found');
34
+ return;
35
+ }
36
+ console.log(`Peer dependencies: ${Object.keys(peerDependencies).join(', ')}`);
37
+ const rootPackageJson = JSON.parse(tree.read('package.json', 'utf-8'));
38
+ let isDevDependency = !!rootPackageJson.devDependencies?.[packageName];
39
+ if (isDevDependency &&
40
+ [/^@rxap\/ngx/, /^@rxap\/nest/].some((rx) => rx.test(packageName))) {
41
+ rootPackageJson.dependencies ??= {};
42
+ rootPackageJson.dependencies[packageName] =
43
+ rootPackageJson.devDependencies[packageName];
44
+ delete rootPackageJson.devDependencies[packageName];
45
+ isDevDependency = false;
46
+ tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
47
+ }
48
+ if (!isDevDependency &&
49
+ [
50
+ /^@rxap\/plugin/,
51
+ /^@rxap\/workspace/,
52
+ /@rxap\/schematic/,
53
+ ].some((rx) => rx.test(packageName))) {
54
+ rootPackageJson.devDependencies ??= {};
55
+ rootPackageJson.devDependencies[packageName] =
56
+ rootPackageJson.dependencies[packageName];
57
+ delete rootPackageJson.dependencies[packageName];
58
+ isDevDependency = true;
59
+ tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
60
+ }
61
+ const missingPeerDependencies = Object.entries(peerDependencies)
62
+ .filter(([dep]) => !rootPackageJson.dependencies?.[dep] &&
63
+ !rootPackageJson.devDependencies?.[dep])
64
+ .reduce((acc, [dep, version]) => ({ ...acc, [dep]: version }), {});
65
+ if (!Object.keys(missingPeerDependencies).length) {
66
+ console.log('No missing peer dependencies');
67
+ return;
68
+ }
69
+ if (isDevDependency) {
70
+ (0, devkit_1.addDependenciesToPackageJson)(tree, {}, missingPeerDependencies);
71
+ }
72
+ else {
73
+ (0, devkit_1.addDependenciesToPackageJson)(tree, missingPeerDependencies, {});
74
+ }
75
+ await (0, devkit_1.formatFiles)(tree);
76
+ (0, devkit_1.installPackagesTask)(tree);
77
+ for (const peer of Object.keys(missingPeerDependencies)) {
78
+ console.log(`Peer dependency ${peer} added to package.json`);
79
+ // node_modules is physical and excluded from the virtual Tree, so read the
80
+ // peer files from disk.
81
+ const peerPackageDir = resolvePackageDir(tree.root, peer);
82
+ const peerPackageJsonFilePath = (0, path_1.join)(peerPackageDir, 'package.json');
83
+ if (!(0, fs_1.existsSync)(peerPackageJsonFilePath)) {
84
+ console.log(`Peer dependency ${peer} has no package.json`);
85
+ continue;
86
+ }
87
+ const { generators, schematics } = JSON.parse((0, fs_1.readFileSync)(peerPackageJsonFilePath, 'utf-8'));
88
+ if (!generators && !schematics) {
89
+ console.log(`Peer dependency ${peer} has no generators or schematics`);
90
+ continue;
91
+ }
92
+ const configFile = generators || schematics;
93
+ const configFilePath = (0, path_1.join)(peerPackageDir, configFile);
94
+ if (!(0, fs_1.existsSync)(configFilePath)) {
95
+ console.log(`Peer dependency ${peer} has no generators or schematics file`);
96
+ continue;
97
+ }
98
+ const config = JSON.parse((0, fs_1.readFileSync)(configFilePath, 'utf-8'));
99
+ if (!config.generators?.init) {
100
+ console.log(`Peer dependency ${peer} has no init generator`);
101
+ continue;
102
+ }
103
+ const initGeneratorFilePath = config.generators.init.factory;
104
+ const fullInitGeneratorFilePath = (0, path_1.join)(peerPackageDir, initGeneratorFilePath) + '.js';
105
+ if (!(0, fs_1.existsSync)(fullInitGeneratorFilePath)) {
106
+ console.log(`Peer dependency ${peer} has no init generator file: ` +
107
+ fullInitGeneratorFilePath);
108
+ continue;
109
+ }
110
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
111
+ const initGenerator = require((0, path_1.join)(peerPackageDir, initGeneratorFilePath))?.default;
112
+ if (typeof initGenerator !== 'function') {
113
+ console.log(`Peer dependency ${peer} has no init generator function`);
114
+ continue;
115
+ }
116
+ console.log(`Run init generator for peer dependency ${peer}`);
117
+ await initGenerator(tree, options);
118
+ }
119
+ }
120
+ exports.default = initGenerator;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ const schematic = (0, devkit_1.convertNxGenerator)(generator_1.default);
6
+ exports.default = schematic;
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "Init",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {},
7
+ "required": []
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }