@anarchitects/nx-typeorm 0.1.0 → 0.2.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.
package/README.md CHANGED
@@ -6,6 +6,7 @@ It provides:
6
6
  - `nx add` / `init` setup for minimal TypeORM dependencies.
7
7
  - `bootstrap` scaffolding for app runtime datasource wiring and library
8
8
  infrastructure-persistence templates.
9
+ - name-first scaffold generators for TypeORM file creation workflows.
9
10
  - inferred database targets via `createNodesV2`.
10
11
  - thin executors that wrap TypeORM CLI workflows.
11
12
 
@@ -80,6 +81,51 @@ The generated helper rejects mixed mode (setting `DATABASE_URL` together with
80
81
  `TYPEORM_*` connection variables) and throws clear validation errors when
81
82
  required variables are missing.
82
83
 
84
+ ### Scaffolding generators
85
+
86
+ These are convenience wrappers around existing executors. They are invoked
87
+ manually via `nx g` and are not inferred targets.
88
+
89
+ `migration-create` (alias: `migration`)
90
+
91
+ ```bash
92
+ nx g @anarchitects/nx-typeorm:migration-create --project=api --name="add users"
93
+ nx g @anarchitects/nx-typeorm:migration --project=api --name="add users"
94
+ ```
95
+
96
+ - required: `--project`, `--name`
97
+ - optional: `--directory` (relative to project root), `--outputJs`, `--esm`,
98
+ `--timestamp`, `--args`
99
+ - default output directory:
100
+ - app: `tools/typeorm/migrations`
101
+ - lib: `src/infrastructure-persistence/migrations`
102
+
103
+ `entity-create` (alias: `entity`)
104
+
105
+ ```bash
106
+ nx g @anarchitects/nx-typeorm:entity-create --project=api --name="user profile"
107
+ nx g @anarchitects/nx-typeorm:entity --project=api --name="user profile"
108
+ ```
109
+
110
+ - required: `--project`, `--name`
111
+ - optional: `--directory` (relative to project root), `--args`
112
+ - default output directory:
113
+ - app: `src/entities`
114
+ - lib: `src/infrastructure-persistence/entities`
115
+
116
+ `subscriber-create` (alias: `subscriber`)
117
+
118
+ ```bash
119
+ nx g @anarchitects/nx-typeorm:subscriber-create --project=api --name="user subscriber"
120
+ nx g @anarchitects/nx-typeorm:subscriber --project=api --name="user subscriber"
121
+ ```
122
+
123
+ - required: `--project`, `--name`
124
+ - optional: `--directory` (relative to project root), `--args`
125
+ - default output directory:
126
+ - app: `src/subscribers`
127
+ - lib: `src/infrastructure-persistence/subscribers`
128
+
83
129
  ## Inferred Targets
84
130
 
85
131
  When TypeORM files are detected, the plugin infers:
@@ -125,16 +171,19 @@ nx run api:db:seed --file tools/typeorm/seeds/index.ts
125
171
  `generate` supports `--check` and compatibility alias `--driftCheck` (mapped to
126
172
  TypeORM check mode).
127
173
 
128
- CLI executors (`generate`, `run`, `revert`) select the TypeORM runner at
129
- runtime:
174
+ Datasource-backed CLI executors (`generate`, `run`, `revert`,
175
+ `migration-show`, `schema-sync`, `schema-log`, `schema-drop`, `query`,
176
+ `cache-clear`) select the TypeORM runner at runtime:
130
177
 
131
178
  - `moduleSystem=auto` (default): detect by nearest `package.json` `type`,
132
179
  then project tsconfig module mode, then fall back to CommonJS.
133
180
  - `moduleSystem=commonjs`: force `typeorm-ts-node-commonjs`.
134
181
  - `moduleSystem=esm`: force `typeorm-ts-node-esm`.
135
182
 
136
- When `dataSource` is omitted, migration-oriented executors (`generate`, `run`,
137
- `revert`) and `ensure-schema` infer it from the project with this priority:
183
+ When `dataSource` is omitted, datasource-backed executors (`generate`, `run`,
184
+ `revert`, `migration-show`, `schema-sync`, `schema-log`, `schema-drop`,
185
+ `query`, `cache-clear`) and `ensure-schema` infer it from the project with
186
+ this priority:
138
187
 
139
188
  1. `tools/typeorm/datasource.migrations.ts`
140
189
  2. `tools/typeorm/datasource.migrations.js`
@@ -147,6 +196,10 @@ Override inference at any time with `--dataSource=<relative-or-absolute-path>`.
147
196
 
148
197
  ## TypeORM CLI Coverage
149
198
 
199
+ Inference is intentionally limited to convention-safe operational commands.
200
+ Scaffolding/meta commands (`migration:create`, `entity:create`,
201
+ `subscriber:create`, `version`, `init`) are executor-only and not inferred.
202
+
150
203
  | TypeORM CLI command | nx-typeorm executor | Inferred target |
151
204
  | -------------------- | ------------------- | --------------- |
152
205
  | `migration:create` | `migration-create` | no |
@@ -165,7 +218,8 @@ Override inference at any time with `--dataSource=<relative-or-absolute-path>`.
165
218
  | `init` | `init` | no |
166
219
 
167
220
  Manual-only executors are available for explicit wiring in `project.json`.
168
- This includes risky commands like `query` and `schema:drop`.
221
+ This includes risky commands (`query`, `schema:drop`) and non-inferred
222
+ scaffolding/meta commands from the table above.
169
223
 
170
224
  Example manual targets:
171
225
 
@@ -0,0 +1,4 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ import type { EntityCreateGeneratorSchema } from './schema.js';
3
+ export default function entityCreateGenerator(tree: Tree, options: EntityCreateGeneratorSchema): Promise<void>;
4
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/generators/entity-create/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAA8B,qBAAqB,CACjD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,2BAA2B,iBAuBrC"}
@@ -0,0 +1,70 @@
1
+ import { joinPathFragments, readProjectConfiguration, } from '@nx/devkit';
2
+ import { isAbsolute, posix } from 'node:path';
3
+ import createEntity from '../../executors/entity-create/executor.js';
4
+ import { normalizeName } from '../../utils/shared.js';
5
+ export default async function entityCreateGenerator(tree, options) {
6
+ const projectName = requireOption(options.project, 'project');
7
+ const entityName = normalizeName(requireOption(options.name, 'name'));
8
+ const projectConfig = readProjectConfiguration(tree, projectName);
9
+ const targetDirectory = resolveTargetDirectory(projectConfig.projectType, options.directory);
10
+ const context = createExecutorContext(tree, projectName);
11
+ const result = await createEntity({
12
+ projectRoot: projectConfig.root,
13
+ path: joinPathFragments(targetDirectory, entityName),
14
+ args: options.args,
15
+ }, context);
16
+ if (!result.success) {
17
+ throw new Error('TypeORM entity:create failed.');
18
+ }
19
+ }
20
+ function resolveTargetDirectory(projectType, directory) {
21
+ if (!directory) {
22
+ return projectType === 'application'
23
+ ? 'src/entities'
24
+ : 'src/infrastructure-persistence/entities';
25
+ }
26
+ return normalizeRelativeDirectory(directory);
27
+ }
28
+ function normalizeRelativeDirectory(directory) {
29
+ const trimmedDirectory = directory.trim();
30
+ if (trimmedDirectory.length === 0) {
31
+ throw new Error('Provide a non-empty directory when using the directory option.');
32
+ }
33
+ if (isAbsolute(trimmedDirectory)) {
34
+ throw new Error('The directory option must be relative to the project root.');
35
+ }
36
+ const normalizedDirectory = posix
37
+ .normalize(trimmedDirectory.replace(/\\/g, '/').replace(/^\.\//, ''))
38
+ .replace(/^\.\//, '');
39
+ if (normalizedDirectory.length === 0 ||
40
+ normalizedDirectory === '.' ||
41
+ normalizedDirectory === '..' ||
42
+ normalizedDirectory.startsWith('../')) {
43
+ throw new Error('The directory option must stay within the project root.');
44
+ }
45
+ return normalizedDirectory;
46
+ }
47
+ function requireOption(value, optionName) {
48
+ const trimmed = value?.trim();
49
+ if (!trimmed) {
50
+ throw new Error(`Provide a value for the ${optionName} option.`);
51
+ }
52
+ return trimmed;
53
+ }
54
+ function createExecutorContext(tree, projectName) {
55
+ const projectConfig = readProjectConfiguration(tree, projectName);
56
+ return {
57
+ root: tree.root,
58
+ projectName,
59
+ projectsConfigurations: {
60
+ version: 2,
61
+ projects: {
62
+ [projectName]: {
63
+ root: projectConfig.root,
64
+ projectType: projectConfig.projectType,
65
+ targets: projectConfig.targets ?? {},
66
+ },
67
+ },
68
+ },
69
+ };
70
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "title": "TypeORM Entity Create Generator",
4
+ "type": "object",
5
+ "properties": {
6
+ "project": {
7
+ "type": "string",
8
+ "description": "Name of the existing Nx project to scaffold an entity for."
9
+ },
10
+ "name": {
11
+ "type": "string",
12
+ "description": "Entity name. Spaces are normalized to hyphens."
13
+ },
14
+ "directory": {
15
+ "type": "string",
16
+ "description": "Optional directory relative to the project root where the entity should be created."
17
+ },
18
+ "args": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "string"
22
+ },
23
+ "description": "Additional CLI arguments passed through to TypeORM."
24
+ }
25
+ },
26
+ "required": ["project", "name"],
27
+ "additionalProperties": false
28
+ }
@@ -0,0 +1,4 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ import type { MigrationCreateGeneratorSchema } from './schema.js';
3
+ export default function migrationCreateGenerator(tree: Tree, options: MigrationCreateGeneratorSchema): Promise<void>;
4
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/generators/migration-create/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAOpB,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAElE,wBAA8B,wBAAwB,CACpD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,8BAA8B,iBA2BxC"}
@@ -0,0 +1,72 @@
1
+ import { readProjectConfiguration, } from '@nx/devkit';
2
+ import { isAbsolute, join, posix } from 'node:path';
3
+ import createMigration from '../../executors/migration-create/executor.js';
4
+ import { defaultMigrationsDirectory, normalizeName, } from '../../utils/shared.js';
5
+ export default async function migrationCreateGenerator(tree, options) {
6
+ const projectName = requireOption(options.project, 'project');
7
+ const migrationName = normalizeName(requireOption(options.name, 'name'));
8
+ const projectConfig = readProjectConfiguration(tree, projectName);
9
+ const targetDirectory = resolveMigrationDirectory(projectConfig.root, projectConfig.projectType, options.directory);
10
+ const targetPath = join(targetDirectory, migrationName);
11
+ const context = createExecutorContext(tree, projectName);
12
+ const result = await createMigration({
13
+ path: targetPath,
14
+ outputJs: options.outputJs,
15
+ esm: options.esm,
16
+ timestamp: options.timestamp,
17
+ args: options.args,
18
+ }, context);
19
+ if (!result.success) {
20
+ throw new Error('TypeORM migration:create failed.');
21
+ }
22
+ }
23
+ function resolveMigrationDirectory(projectRoot, projectType, directory) {
24
+ if (!directory) {
25
+ return defaultMigrationsDirectory(projectRoot, projectType);
26
+ }
27
+ const normalizedDirectory = normalizeRelativeDirectory(directory);
28
+ return join(projectRoot, normalizedDirectory);
29
+ }
30
+ function normalizeRelativeDirectory(directory) {
31
+ const trimmedDirectory = directory.trim();
32
+ if (trimmedDirectory.length === 0) {
33
+ throw new Error('Provide a non-empty directory when using the directory option.');
34
+ }
35
+ if (isAbsolute(trimmedDirectory)) {
36
+ throw new Error('The directory option must be relative to the project root.');
37
+ }
38
+ const normalizedDirectory = posix
39
+ .normalize(trimmedDirectory.replace(/\\/g, '/').replace(/^\.\//, ''))
40
+ .replace(/^\.\//, '');
41
+ if (normalizedDirectory.length === 0 ||
42
+ normalizedDirectory === '.' ||
43
+ normalizedDirectory === '..' ||
44
+ normalizedDirectory.startsWith('../')) {
45
+ throw new Error('The directory option must stay within the project root.');
46
+ }
47
+ return normalizedDirectory;
48
+ }
49
+ function requireOption(value, optionName) {
50
+ const trimmed = value?.trim();
51
+ if (!trimmed) {
52
+ throw new Error(`Provide a value for the ${optionName} option.`);
53
+ }
54
+ return trimmed;
55
+ }
56
+ function createExecutorContext(tree, projectName) {
57
+ const projectConfig = readProjectConfiguration(tree, projectName);
58
+ return {
59
+ root: tree.root,
60
+ projectName,
61
+ projectsConfigurations: {
62
+ version: 2,
63
+ projects: {
64
+ [projectName]: {
65
+ root: projectConfig.root,
66
+ projectType: projectConfig.projectType,
67
+ targets: projectConfig.targets ?? {},
68
+ },
69
+ },
70
+ },
71
+ };
72
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "title": "TypeORM Migration Create Generator",
4
+ "type": "object",
5
+ "properties": {
6
+ "project": {
7
+ "type": "string",
8
+ "description": "Name of the existing Nx project to scaffold a migration for."
9
+ },
10
+ "name": {
11
+ "type": "string",
12
+ "description": "Migration name. Spaces are normalized to hyphens."
13
+ },
14
+ "directory": {
15
+ "type": "string",
16
+ "description": "Optional directory relative to the project root where the migration should be created."
17
+ },
18
+ "outputJs": {
19
+ "type": "boolean",
20
+ "description": "Generate JavaScript migration output."
21
+ },
22
+ "esm": {
23
+ "type": "boolean",
24
+ "description": "Generate ESM migration output."
25
+ },
26
+ "timestamp": {
27
+ "type": "number",
28
+ "description": "Custom migration timestamp."
29
+ },
30
+ "args": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ },
35
+ "description": "Additional CLI arguments passed through to TypeORM."
36
+ }
37
+ },
38
+ "required": ["project", "name"],
39
+ "additionalProperties": false
40
+ }
@@ -0,0 +1,4 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ import type { SubscriberCreateGeneratorSchema } from './schema.js';
3
+ export default function subscriberCreateGenerator(tree: Tree, options: SubscriberCreateGeneratorSchema): Promise<void>;
4
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/generators/subscriber-create/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAEnE,wBAA8B,yBAAyB,CACrD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,iBAuBzC"}
@@ -0,0 +1,70 @@
1
+ import { joinPathFragments, readProjectConfiguration, } from '@nx/devkit';
2
+ import { isAbsolute, posix } from 'node:path';
3
+ import createSubscriber from '../../executors/subscriber-create/executor.js';
4
+ import { normalizeName } from '../../utils/shared.js';
5
+ export default async function subscriberCreateGenerator(tree, options) {
6
+ const projectName = requireOption(options.project, 'project');
7
+ const subscriberName = normalizeName(requireOption(options.name, 'name'));
8
+ const projectConfig = readProjectConfiguration(tree, projectName);
9
+ const targetDirectory = resolveTargetDirectory(projectConfig.projectType, options.directory);
10
+ const context = createExecutorContext(tree, projectName);
11
+ const result = await createSubscriber({
12
+ projectRoot: projectConfig.root,
13
+ path: joinPathFragments(targetDirectory, subscriberName),
14
+ args: options.args,
15
+ }, context);
16
+ if (!result.success) {
17
+ throw new Error('TypeORM subscriber:create failed.');
18
+ }
19
+ }
20
+ function resolveTargetDirectory(projectType, directory) {
21
+ if (!directory) {
22
+ return projectType === 'application'
23
+ ? 'src/subscribers'
24
+ : 'src/infrastructure-persistence/subscribers';
25
+ }
26
+ return normalizeRelativeDirectory(directory);
27
+ }
28
+ function normalizeRelativeDirectory(directory) {
29
+ const trimmedDirectory = directory.trim();
30
+ if (trimmedDirectory.length === 0) {
31
+ throw new Error('Provide a non-empty directory when using the directory option.');
32
+ }
33
+ if (isAbsolute(trimmedDirectory)) {
34
+ throw new Error('The directory option must be relative to the project root.');
35
+ }
36
+ const normalizedDirectory = posix
37
+ .normalize(trimmedDirectory.replace(/\\/g, '/').replace(/^\.\//, ''))
38
+ .replace(/^\.\//, '');
39
+ if (normalizedDirectory.length === 0 ||
40
+ normalizedDirectory === '.' ||
41
+ normalizedDirectory === '..' ||
42
+ normalizedDirectory.startsWith('../')) {
43
+ throw new Error('The directory option must stay within the project root.');
44
+ }
45
+ return normalizedDirectory;
46
+ }
47
+ function requireOption(value, optionName) {
48
+ const trimmed = value?.trim();
49
+ if (!trimmed) {
50
+ throw new Error(`Provide a value for the ${optionName} option.`);
51
+ }
52
+ return trimmed;
53
+ }
54
+ function createExecutorContext(tree, projectName) {
55
+ const projectConfig = readProjectConfiguration(tree, projectName);
56
+ return {
57
+ root: tree.root,
58
+ projectName,
59
+ projectsConfigurations: {
60
+ version: 2,
61
+ projects: {
62
+ [projectName]: {
63
+ root: projectConfig.root,
64
+ projectType: projectConfig.projectType,
65
+ targets: projectConfig.targets ?? {},
66
+ },
67
+ },
68
+ },
69
+ };
70
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "title": "TypeORM Subscriber Create Generator",
4
+ "type": "object",
5
+ "properties": {
6
+ "project": {
7
+ "type": "string",
8
+ "description": "Name of the existing Nx project to scaffold a subscriber for."
9
+ },
10
+ "name": {
11
+ "type": "string",
12
+ "description": "Subscriber name. Spaces are normalized to hyphens."
13
+ },
14
+ "directory": {
15
+ "type": "string",
16
+ "description": "Optional directory relative to the project root where the subscriber should be created."
17
+ },
18
+ "args": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "string"
22
+ },
23
+ "description": "Additional CLI arguments passed through to TypeORM."
24
+ }
25
+ },
26
+ "required": ["project", "name"],
27
+ "additionalProperties": false
28
+ }
package/dist/index.d.ts CHANGED
@@ -16,5 +16,11 @@ export { default as versionExecutor } from './executors/version/executor.js';
16
16
  export { default as initExecutor } from './executors/init/executor.js';
17
17
  export { default as initGenerator } from './generators/init/generator.js';
18
18
  export { default as bootstrapGenerator } from './generators/bootstrap/generator.js';
19
+ export { default as migrationCreateGenerator } from './generators/migration-create/generator.js';
20
+ export { default as migrationGenerator } from './generators/migration-create/generator.js';
21
+ export { default as entityCreateGenerator } from './generators/entity-create/generator.js';
22
+ export { default as entityGenerator } from './generators/entity-create/generator.js';
23
+ export { default as subscriberCreateGenerator } from './generators/subscriber-create/generator.js';
24
+ export { default as subscriberGenerator } from './generators/subscriber-create/generator.js';
19
25
  export { default } from './plugin/index.js';
20
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,YAAY,EAA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AAC;AACnG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAE7F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -16,4 +16,10 @@ export { default as versionExecutor } from './executors/version/executor.js';
16
16
  export { default as initExecutor } from './executors/init/executor.js';
17
17
  export { default as initGenerator } from './generators/init/generator.js';
18
18
  export { default as bootstrapGenerator } from './generators/bootstrap/generator.js';
19
+ export { default as migrationCreateGenerator } from './generators/migration-create/generator.js';
20
+ export { default as migrationGenerator } from './generators/migration-create/generator.js';
21
+ export { default as entityCreateGenerator } from './generators/entity-create/generator.js';
22
+ export { default as entityGenerator } from './generators/entity-create/generator.js';
23
+ export { default as subscriberCreateGenerator } from './generators/subscriber-create/generator.js';
24
+ export { default as subscriberGenerator } from './generators/subscriber-create/generator.js';
19
25
  export { default } from './plugin/index.js';
package/dist/index.json CHANGED
@@ -73,6 +73,30 @@
73
73
  "bootstrap": {
74
74
  "implementation": "./generators/bootstrap/generator",
75
75
  "schema": "./generators/bootstrap/schema.json"
76
+ },
77
+ "migration-create": {
78
+ "implementation": "./generators/migration-create/generator",
79
+ "schema": "./generators/migration-create/schema.json"
80
+ },
81
+ "migration": {
82
+ "implementation": "./generators/migration-create/generator",
83
+ "schema": "./generators/migration-create/schema.json"
84
+ },
85
+ "entity-create": {
86
+ "implementation": "./generators/entity-create/generator",
87
+ "schema": "./generators/entity-create/schema.json"
88
+ },
89
+ "entity": {
90
+ "implementation": "./generators/entity-create/generator",
91
+ "schema": "./generators/entity-create/schema.json"
92
+ },
93
+ "subscriber-create": {
94
+ "implementation": "./generators/subscriber-create/generator",
95
+ "schema": "./generators/subscriber-create/schema.json"
96
+ },
97
+ "subscriber": {
98
+ "implementation": "./generators/subscriber-create/generator",
99
+ "schema": "./generators/subscriber-create/schema.json"
76
100
  }
77
101
  }
78
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anarchitects/nx-typeorm",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Nx plugin providing TypeORM executors, generators, and schema management utilities.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",