nx-lifecycle 1.0.0 → 1.1.0

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 (48) hide show
  1. package/README.md +42 -4
  2. package/WHY-NX-LIFECYCLE.md +1 -1
  3. package/dist/bin.d.ts +1 -605
  4. package/dist/bin.js +1 -15
  5. package/dist/cli.d.ts +1 -5
  6. package/dist/cli.js +9 -22
  7. package/dist/commands/explain-command.d.ts +12 -0
  8. package/dist/commands/explain-command.js +57 -0
  9. package/dist/commands/lib/types.d.ts +0 -3
  10. package/dist/commands/lifecycle-command.d.ts +1 -11
  11. package/dist/commands/lifecycle-command.js +13 -22
  12. package/dist/executors/lifecycle/index.d.ts +1 -4
  13. package/dist/executors/lifecycle/index.js +1 -4
  14. package/dist/executors/lifecycle/lifecycle.d.ts +8 -9
  15. package/dist/executors/lifecycle/lifecycle.js +13 -20
  16. package/dist/lifecycle/explain.d.ts +68 -0
  17. package/dist/lifecycle/explain.js +160 -0
  18. package/dist/lifecycle/lifecycle-internal.d.ts +4 -12
  19. package/dist/lifecycle/lifecycle-internal.js +92 -109
  20. package/dist/lifecycle/normalizer.d.ts +13 -7
  21. package/dist/lifecycle/normalizer.js +29 -36
  22. package/dist/lifecycle/processor.d.ts +1 -3
  23. package/dist/lifecycle/processor.js +0 -2
  24. package/dist/plugin/index.d.ts +1 -277
  25. package/dist/plugin/index.js +1 -3
  26. package/dist/plugin/lifecycle-plugin.d.ts +18 -15
  27. package/dist/plugin/lifecycle-plugin.js +76 -89
  28. package/dist/plugin/schema.d.ts +2 -279
  29. package/dist/plugin/schema.js +0 -2
  30. package/dist/schemas/nx-json.d.ts +2 -153
  31. package/dist/schemas/nx-json.js +0 -2
  32. package/dist/schemas/project-json.d.ts +2 -153
  33. package/dist/schemas/project-json.js +0 -2
  34. package/package.json +16 -13
  35. package/dist/commands/index.d.ts +0 -755
  36. package/dist/commands/index.js +0 -14
  37. package/dist/commands/lib/dependencies.d.ts +0 -10
  38. package/dist/commands/lib/dependencies.js +0 -12
  39. package/dist/executors/lifecycle/container.d.ts +0 -603
  40. package/dist/executors/lifecycle/container.js +0 -8
  41. package/dist/lifecycle/dependencies.d.ts +0 -16
  42. package/dist/lifecycle/dependencies.js +0 -14
  43. package/dist/lifecycle/index.d.ts +0 -756
  44. package/dist/lifecycle/index.js +0 -25
  45. package/dist/plugin/container.d.ts +0 -855
  46. package/dist/plugin/container.js +0 -13
  47. package/dist/plugin/dependencies.d.ts +0 -860
  48. package/dist/plugin/dependencies.js +0 -9
@@ -1,119 +1,102 @@
1
+ import { readFile, writeFile } from 'node:fs/promises';
1
2
  import { deepEqual } from 'fast-equals';
2
- export class LifecycleInternal {
3
- #normalizer;
4
- #readFile;
5
- #writeFile;
6
- #formatFiles;
7
- #processNxAndProjectJsons;
8
- #assertNxJson;
9
- #assertProjectJson;
10
- #logger;
11
- lifecycleInternal;
12
- constructor(normalizer, readFile, writeFile, formatFiles, processNxAndProjectJsons, assertNxJson, assertProjectJson, logger){
13
- this.#normalizer = normalizer;
14
- this.#readFile = readFile;
15
- this.#writeFile = writeFile;
16
- this.#formatFiles = formatFiles;
17
- this.#processNxAndProjectJsons = processNxAndProjectJsons;
18
- this.#assertNxJson = assertNxJson;
19
- this.#assertProjectJson = assertProjectJson;
20
- this.#logger = logger;
21
- this.lifecycleInternal = this.#lifecycleInternal.bind(this);
22
- }
23
- async #lifecycleInternal(options, context) {
24
- const normalized = await this.#normalizer.normalizeOptions(options, context);
25
- const { nxJson, projectJsons } = await this.#loadJsonConfigs(normalized);
26
- this.#warnUndeclaredBindings(normalized.bindings, projectJsons.map(({ data })=>data));
27
- const { processedNxJson, processedProjectJsons } = this.#processNxAndProjectJsons({
28
- nxJson: nxJson.data,
29
- projectJsons: projectJsons.map(({ data })=>data),
30
- options: normalized
31
- });
32
- await this.#saveJsonConfigs({
33
- jsons: [
34
- {
35
- ...nxJson,
36
- processed: processedNxJson
37
- },
38
- ...projectJsons.map((projectJson, i)=>({
39
- ...projectJson,
40
- processed: processedProjectJsons[i]
41
- }))
42
- ],
43
- options: normalized
3
+ import { formatFiles } from 'format-file';
4
+ import { assertNxJson, assertProjectJson } from '#schemas';
5
+ import { normalizeOptions } from './normalizer.js';
6
+ import { processNxAndProjectJsons } from './processor.js';
7
+ const loadJsonConfigs = async ({ nxJsonPath, packageJsonPaths })=>{
8
+ const [rawNxJson, ...rawProjectJsons] = await Promise.all([
9
+ readFile(nxJsonPath, 'utf8'),
10
+ ...packageJsonPaths.map(async ({ name, path })=>({
11
+ name,
12
+ path,
13
+ rawData: await readFile(path, 'utf8')
14
+ }))
15
+ ]);
16
+ const parsedNxJson = JSON.parse(rawNxJson);
17
+ try {
18
+ assertNxJson(parsedNxJson);
19
+ } catch (err) {
20
+ throw new Error('Failed to parse nx.json', {
21
+ cause: err
44
22
  });
45
23
  }
46
- async #loadJsonConfigs({ nxJsonPath, packageJsonPaths }) {
47
- const [rawNxJson, ...rawProjectJsons] = await Promise.all([
48
- this.#readFile(nxJsonPath, 'utf8'),
49
- ...packageJsonPaths.map(async ({ name, path })=>({
50
- name,
51
- path,
52
- rawData: await this.#readFile(path, 'utf8')
53
- }))
54
- ]);
55
- const parsedNxJson = JSON.parse(rawNxJson);
56
- try {
57
- this.#assertNxJson(parsedNxJson);
58
- } catch (err) {
59
- throw new Error('Failed to parse nx.json', {
60
- cause: err
61
- });
62
- }
63
- return {
64
- nxJson: {
65
- name: 'nx.json',
66
- path: nxJsonPath,
67
- data: parsedNxJson
68
- },
69
- projectJsons: rawProjectJsons.map(({ name, path, rawData })=>{
70
- const data = JSON.parse(rawData);
71
- try {
72
- this.#assertProjectJson(data);
73
- } catch (err) {
74
- throw new Error(`Failed to parse ${path}`, {
75
- cause: err
76
- });
77
- }
78
- return {
79
- name,
80
- path,
81
- data
82
- };
83
- })
84
- };
85
- }
86
- #warnUndeclaredBindings(bindings, projectJsons) {
87
- const declaredTargets = new Set(projectJsons.flatMap((projectJson)=>Object.keys(projectJson.targets ?? {})));
88
- for (const targetName of Object.keys(bindings)){
89
- if (!declaredTargets.has(targetName)) {
90
- this.#logger.warn(`Bound target ${targetName} is not declared in any project.json. Is it a typo?`);
24
+ return {
25
+ nxJson: {
26
+ name: 'nx.json',
27
+ path: nxJsonPath,
28
+ data: parsedNxJson
29
+ },
30
+ projectJsons: rawProjectJsons.map(({ name, path, rawData })=>{
31
+ const data = JSON.parse(rawData);
32
+ try {
33
+ assertProjectJson(data);
34
+ } catch (err) {
35
+ throw new Error(`Failed to parse ${path}`, {
36
+ cause: err
37
+ });
91
38
  }
39
+ return {
40
+ name,
41
+ path,
42
+ data
43
+ };
44
+ })
45
+ };
46
+ };
47
+ const warnUndeclaredBindings = (bindings, projectJsons)=>{
48
+ const declaredTargets = new Set(projectJsons.flatMap((projectJson)=>Object.keys(projectJson.targets ?? {})));
49
+ for (const targetName of Object.keys(bindings)){
50
+ if (!declaredTargets.has(targetName)) {
51
+ console.warn(`Bound target ${targetName} is not declared in any project.json. Is it a typo?`);
92
52
  }
93
53
  }
94
- async #saveJsonConfigs({ jsons, options }) {
95
- const filesToUpdate = [];
96
- for (const { path, data, processed } of jsons){
97
- if (deepEqual(data, processed)) {
98
- continue;
99
- }
100
- if (options.check) {
101
- throw new Error(`File ${path} is not up to date`);
102
- }
103
- filesToUpdate.push({
104
- path,
105
- processed
106
- });
54
+ };
55
+ const saveJsonConfigs = async ({ jsons, options })=>{
56
+ const filesToUpdate = [];
57
+ for (const { path, data, processed } of jsons){
58
+ if (deepEqual(data, processed)) {
59
+ continue;
107
60
  }
108
- await Promise.all(filesToUpdate.map(async ({ path, processed })=>{
109
- this.#logger.info(`Updating ${path}`);
110
- if (options.dryRun) {
111
- return;
112
- }
113
- return this.#writeFile(path, JSON.stringify(processed), 'utf8');
114
- }));
115
- await this.#formatFiles(filesToUpdate.map((file)=>file.path));
61
+ if (options.check) {
62
+ throw new Error(`File ${path} is not up to date`);
63
+ }
64
+ filesToUpdate.push({
65
+ path,
66
+ processed
67
+ });
116
68
  }
117
- }
69
+ for (const { path } of filesToUpdate){
70
+ console.info(`Updating ${path}`);
71
+ }
72
+ if (options.dryRun) {
73
+ return;
74
+ }
75
+ await Promise.all(filesToUpdate.map(async ({ path, processed })=>writeFile(path, JSON.stringify(processed), 'utf8')));
76
+ await formatFiles(filesToUpdate.map((file)=>file.path));
77
+ };
78
+ export const lifecycleInternal = async (options, context)=>{
79
+ const normalized = await normalizeOptions(options, context);
80
+ const { nxJson, projectJsons } = await loadJsonConfigs(normalized);
81
+ warnUndeclaredBindings(normalized.bindings, projectJsons.map(({ data })=>data));
82
+ const { processedNxJson, processedProjectJsons } = processNxAndProjectJsons({
83
+ nxJson: nxJson.data,
84
+ projectJsons: projectJsons.map(({ data })=>data),
85
+ options: normalized
86
+ });
87
+ await saveJsonConfigs({
88
+ jsons: [
89
+ {
90
+ ...nxJson,
91
+ processed: processedNxJson
92
+ },
93
+ ...projectJsons.map((projectJson, i)=>({
94
+ ...projectJson,
95
+ processed: processedProjectJsons[i]
96
+ }))
97
+ ],
98
+ options: normalized
99
+ });
100
+ };
118
101
 
119
102
  //# sourceMappingURL=lifecycle-internal.js.map
@@ -1,5 +1,3 @@
1
- import type { readFile as ReadFile } from 'node:fs/promises';
2
- import type { ParseCwd } from 'parse-cwd';
3
1
  import type { LifecycleOptions, LifecycleOptionsOrConfig } from './schema.js';
4
2
  import type { NxContext } from './types.js';
5
3
  export interface NormalizedOptions {
@@ -13,13 +11,21 @@ export interface NormalizedOptions {
13
11
  stages: LifecycleOptions['stages'];
14
12
  bindings: LifecycleOptions['bindings'];
15
13
  }
14
+ /**
15
+ * Options passed directly, or loaded from a config file.
16
+ *
17
+ * @param options - options, or where to load them from
18
+ * @returns stages and bindings, with any options passed directly
19
+ * @throws {Error} when the config file is invalid
20
+ */
21
+ export declare const loadOptions: (options: LifecycleOptionsOrConfig) => Promise<LifecycleOptions>;
16
22
  /**
17
23
  * Standardizes the options passed to this executor,
18
24
  * based on input, reasonable defaults, and project state.
25
+ *
26
+ * @param options - options provided directly, or where to load them from
27
+ * @param context - workspace root and projects
28
+ * @returns options with defaults and file paths resolved
19
29
  */
20
- export declare class Normalizer {
21
- #private;
22
- constructor(isCI: () => boolean, parseCwd: ParseCwd, readFile: typeof ReadFile);
23
- normalizeOptions(options: LifecycleOptionsOrConfig, context: NxContext): Promise<NormalizedOptions>;
24
- }
30
+ export declare const normalizeOptions: (options: LifecycleOptionsOrConfig, context: NxContext) => Promise<NormalizedOptions>;
25
31
  //# sourceMappingURL=normalizer.d.ts.map
@@ -1,44 +1,37 @@
1
+ import { readFile } from 'node:fs/promises';
1
2
  import Path from 'node:path';
3
+ import { isCI } from 'ci-info';
4
+ import { parseCwd } from 'parse-cwd';
2
5
  import { isLifecycleOptions } from './schema.js';
3
- export class Normalizer {
4
- #isCI;
5
- #parseCwd;
6
- #readFile;
7
- constructor(isCI, parseCwd, readFile){
8
- this.#isCI = isCI;
9
- this.#parseCwd = parseCwd;
10
- this.#readFile = readFile;
6
+ export const loadOptions = async (options)=>{
7
+ if ('stages' in options) {
8
+ return options;
11
9
  }
12
- async normalizeOptions(options, context) {
13
- const loadedOptions = await this.#loadOptions(options);
10
+ const cwd = await parseCwd(options.cwd);
11
+ const configFile = Path.join(cwd, options.configFile ?? './lifecycle.json');
12
+ const loadedConfig = await readFile(configFile, 'utf8');
13
+ const parsedConfig = JSON.parse(loadedConfig);
14
+ if (isLifecycleOptions(parsedConfig)) {
14
15
  return {
15
- check: loadedOptions.check ?? this.#isCI(),
16
- dryRun: loadedOptions.dryRun ?? false,
17
- nxJsonPath: Path.join(context.root, 'nx.json'),
18
- packageJsonPaths: context.projects.map((project)=>({
19
- name: project.name,
20
- path: Path.join(context.root, project.root, 'project.json')
21
- })),
22
- stages: loadedOptions.stages,
23
- bindings: loadedOptions.bindings
16
+ ...parsedConfig,
17
+ ...options
24
18
  };
25
19
  }
26
- async #loadOptions(options) {
27
- if ('stages' in options) {
28
- return options;
29
- }
30
- const cwd = await this.#parseCwd(options.cwd);
31
- const configFile = Path.join(cwd, options.configFile ?? './lifecycle.json');
32
- const loadedConfig = await this.#readFile(configFile, 'utf8');
33
- const parsedConfig = JSON.parse(loadedConfig);
34
- if (isLifecycleOptions(parsedConfig)) {
35
- return {
36
- ...parsedConfig,
37
- ...options
38
- };
39
- }
40
- throw new Error(`Invalid config loaded from ${configFile}`);
41
- }
42
- }
20
+ throw new Error(`Invalid config loaded from ${configFile}`);
21
+ };
22
+ export const normalizeOptions = async (options, context)=>{
23
+ const loadedOptions = await loadOptions(options);
24
+ return {
25
+ check: loadedOptions.check ?? isCI,
26
+ dryRun: loadedOptions.dryRun ?? false,
27
+ nxJsonPath: Path.join(context.root, 'nx.json'),
28
+ packageJsonPaths: context.projects.map((project)=>({
29
+ name: project.name,
30
+ path: Path.join(context.root, project.root, 'project.json')
31
+ })),
32
+ stages: loadedOptions.stages,
33
+ bindings: loadedOptions.bindings
34
+ };
35
+ };
43
36
 
44
37
  //# sourceMappingURL=normalizer.js.map
@@ -39,7 +39,7 @@ export interface LifecyclePlan {
39
39
  * @throws if stages or bindings are inconsistent
40
40
  */
41
41
  export declare const planLifecycle: (options: ProcessorOptions) => LifecyclePlan;
42
- export type NxAndProjectJsonProcessor = ({ nxJson, projectJsons, options, }: {
42
+ export declare const processNxAndProjectJsons: ({ nxJson, projectJsons, options, }: {
43
43
  nxJson: NxJson;
44
44
  projectJsons: ProjectJson[];
45
45
  options: ProcessorOptions;
@@ -47,7 +47,5 @@ export type NxAndProjectJsonProcessor = ({ nxJson, projectJsons, options, }: {
47
47
  processedNxJson: NxJson;
48
48
  processedProjectJsons: ProjectJson[];
49
49
  };
50
- export declare const nxAndProjectJsonProcessorIdentifier: import("haywire").HaywireId<NxAndProjectJsonProcessor, null, null, false, false, false, false, false>;
51
- export declare const processNxAndProjectJsons: NxAndProjectJsonProcessor;
52
50
  export {};
53
51
  //# sourceMappingURL=processor.d.ts.map
@@ -1,4 +1,3 @@
1
- import { identifier } from 'haywire';
2
1
  import { isEmpty } from '#schemas';
3
2
  import { NOOP_EXECUTOR } from './constants.js';
4
3
  const calculateTargets = ({ stages })=>{
@@ -207,7 +206,6 @@ const processProjectJson = ({ projectJson, lifecycleTargets, registeredTargets,
207
206
  targets: processedTargets
208
207
  };
209
208
  };
210
- export const nxAndProjectJsonProcessorIdentifier = identifier();
211
209
  export const processNxAndProjectJsons = ({ nxJson, projectJsons, options })=>{
212
210
  const { lifecycleTargets, registeredTargets } = planLifecycle(options);
213
211
  const targetsToRemove = calculateTargetsToRemove({
@@ -3,281 +3,5 @@ export type { LifecyclePluginOptions } from './schema.js';
3
3
  * Plugin name, as Nx can't attach one to an ES module.
4
4
  */
5
5
  export declare const name = "nx-lifecycle";
6
- export declare const createNodes: import("@nx/devkit").CreateNodes<Partial<{
7
- stages: Record<string, Partial<{
8
- dependsOn: (string | (Partial<{
9
- dependencies: boolean;
10
- projects: never;
11
- }> & Partial<{
12
- target: string;
13
- params: string;
14
- }> & Required<Pick<{
15
- target: string;
16
- params: string;
17
- }, "target">>) | (string & Partial<{
18
- dependencies: boolean;
19
- projects: never;
20
- }> & Partial<{
21
- target: string;
22
- params: string;
23
- }> & Required<Pick<{
24
- target: string;
25
- params: string;
26
- }, "target">>) | (Partial<{
27
- dependencies: boolean;
28
- projects: never;
29
- }> & Partial<{
30
- target: string;
31
- params: string;
32
- }> & Required<Pick<{
33
- target: string;
34
- params: string;
35
- }, "target">> & string) | (Partial<{
36
- dependencies: never;
37
- projects: string | string[];
38
- }> & Required<Pick<{
39
- dependencies: never;
40
- projects: string | string[];
41
- }, "projects">> & Partial<{
42
- target: string;
43
- params: string;
44
- }> & Required<Pick<{
45
- target: string;
46
- params: string;
47
- }, "target">>) | (string & Partial<{
48
- dependencies: never;
49
- projects: string | string[];
50
- }> & Required<Pick<{
51
- dependencies: never;
52
- projects: string | string[];
53
- }, "projects">> & Partial<{
54
- target: string;
55
- params: string;
56
- }> & Required<Pick<{
57
- target: string;
58
- params: string;
59
- }, "target">>) | (Partial<{
60
- dependencies: never;
61
- projects: string | string[];
62
- }> & Required<Pick<{
63
- dependencies: never;
64
- projects: string | string[];
65
- }, "projects">> & Partial<{
66
- target: string;
67
- params: string;
68
- }> & Required<Pick<{
69
- target: string;
70
- params: string;
71
- }, "target">> & string))[];
72
- hooks: string[];
73
- }>>;
74
- bindings: Record<string, string>;
75
- }> & Required<Pick<{
76
- stages: Record<string, Partial<{
77
- dependsOn: (string | (Partial<{
78
- dependencies: boolean;
79
- projects: never;
80
- }> & Partial<{
81
- target: string;
82
- params: string;
83
- }> & Required<Pick<{
84
- target: string;
85
- params: string;
86
- }, "target">>) | (string & Partial<{
87
- dependencies: boolean;
88
- projects: never;
89
- }> & Partial<{
90
- target: string;
91
- params: string;
92
- }> & Required<Pick<{
93
- target: string;
94
- params: string;
95
- }, "target">>) | (Partial<{
96
- dependencies: boolean;
97
- projects: never;
98
- }> & Partial<{
99
- target: string;
100
- params: string;
101
- }> & Required<Pick<{
102
- target: string;
103
- params: string;
104
- }, "target">> & string) | (Partial<{
105
- dependencies: never;
106
- projects: string | string[];
107
- }> & Required<Pick<{
108
- dependencies: never;
109
- projects: string | string[];
110
- }, "projects">> & Partial<{
111
- target: string;
112
- params: string;
113
- }> & Required<Pick<{
114
- target: string;
115
- params: string;
116
- }, "target">>) | (string & Partial<{
117
- dependencies: never;
118
- projects: string | string[];
119
- }> & Required<Pick<{
120
- dependencies: never;
121
- projects: string | string[];
122
- }, "projects">> & Partial<{
123
- target: string;
124
- params: string;
125
- }> & Required<Pick<{
126
- target: string;
127
- params: string;
128
- }, "target">>) | (Partial<{
129
- dependencies: never;
130
- projects: string | string[];
131
- }> & Required<Pick<{
132
- dependencies: never;
133
- projects: string | string[];
134
- }, "projects">> & Partial<{
135
- target: string;
136
- params: string;
137
- }> & Required<Pick<{
138
- target: string;
139
- params: string;
140
- }, "target">> & string))[];
141
- hooks: string[];
142
- }>>;
143
- bindings: Record<string, string>;
144
- }, "bindings" | "stages">>>, createDependencies: (options: (Partial<{
145
- stages: Record<string, Partial<{
146
- dependsOn: (string | (Partial<{
147
- dependencies: boolean;
148
- projects: never;
149
- }> & Partial<{
150
- target: string;
151
- params: string;
152
- }> & Required<Pick<{
153
- target: string;
154
- params: string;
155
- }, "target">>) | (string & Partial<{
156
- dependencies: boolean;
157
- projects: never;
158
- }> & Partial<{
159
- target: string;
160
- params: string;
161
- }> & Required<Pick<{
162
- target: string;
163
- params: string;
164
- }, "target">>) | (Partial<{
165
- dependencies: boolean;
166
- projects: never;
167
- }> & Partial<{
168
- target: string;
169
- params: string;
170
- }> & Required<Pick<{
171
- target: string;
172
- params: string;
173
- }, "target">> & string) | (Partial<{
174
- dependencies: never;
175
- projects: string | string[];
176
- }> & Required<Pick<{
177
- dependencies: never;
178
- projects: string | string[];
179
- }, "projects">> & Partial<{
180
- target: string;
181
- params: string;
182
- }> & Required<Pick<{
183
- target: string;
184
- params: string;
185
- }, "target">>) | (string & Partial<{
186
- dependencies: never;
187
- projects: string | string[];
188
- }> & Required<Pick<{
189
- dependencies: never;
190
- projects: string | string[];
191
- }, "projects">> & Partial<{
192
- target: string;
193
- params: string;
194
- }> & Required<Pick<{
195
- target: string;
196
- params: string;
197
- }, "target">>) | (Partial<{
198
- dependencies: never;
199
- projects: string | string[];
200
- }> & Required<Pick<{
201
- dependencies: never;
202
- projects: string | string[];
203
- }, "projects">> & Partial<{
204
- target: string;
205
- params: string;
206
- }> & Required<Pick<{
207
- target: string;
208
- params: string;
209
- }, "target">> & string))[];
210
- hooks: string[];
211
- }>>;
212
- bindings: Record<string, string>;
213
- }> & Required<Pick<{
214
- stages: Record<string, Partial<{
215
- dependsOn: (string | (Partial<{
216
- dependencies: boolean;
217
- projects: never;
218
- }> & Partial<{
219
- target: string;
220
- params: string;
221
- }> & Required<Pick<{
222
- target: string;
223
- params: string;
224
- }, "target">>) | (string & Partial<{
225
- dependencies: boolean;
226
- projects: never;
227
- }> & Partial<{
228
- target: string;
229
- params: string;
230
- }> & Required<Pick<{
231
- target: string;
232
- params: string;
233
- }, "target">>) | (Partial<{
234
- dependencies: boolean;
235
- projects: never;
236
- }> & Partial<{
237
- target: string;
238
- params: string;
239
- }> & Required<Pick<{
240
- target: string;
241
- params: string;
242
- }, "target">> & string) | (Partial<{
243
- dependencies: never;
244
- projects: string | string[];
245
- }> & Required<Pick<{
246
- dependencies: never;
247
- projects: string | string[];
248
- }, "projects">> & Partial<{
249
- target: string;
250
- params: string;
251
- }> & Required<Pick<{
252
- target: string;
253
- params: string;
254
- }, "target">>) | (string & Partial<{
255
- dependencies: never;
256
- projects: string | string[];
257
- }> & Required<Pick<{
258
- dependencies: never;
259
- projects: string | string[];
260
- }, "projects">> & Partial<{
261
- target: string;
262
- params: string;
263
- }> & Required<Pick<{
264
- target: string;
265
- params: string;
266
- }, "target">>) | (Partial<{
267
- dependencies: never;
268
- projects: string | string[];
269
- }> & Required<Pick<{
270
- dependencies: never;
271
- projects: string | string[];
272
- }, "projects">> & Partial<{
273
- target: string;
274
- params: string;
275
- }> & Required<Pick<{
276
- target: string;
277
- params: string;
278
- }, "target">> & string))[];
279
- hooks: string[];
280
- }>>;
281
- bindings: Record<string, string>;
282
- }, "bindings" | "stages">>) | undefined, context: import("@nx/devkit").CreateDependenciesContext) => [];
6
+ export { createDependencies, createNodes } from './lifecycle-plugin.js';
283
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,4 @@
1
- import { lifecyclePluginContainer } from './container.js';
2
- import { LifecyclePlugin } from './lifecycle-plugin.js';
3
1
  export const name = 'nx-lifecycle';
4
- export const { createNodes, createDependencies } = lifecyclePluginContainer.get(LifecyclePlugin);
2
+ export { createDependencies, createNodes } from './lifecycle-plugin.js';
5
3
 
6
4
  //# sourceMappingURL=index.js.map