Skip to content

Commit c850dae

Browse files
fix: remove unused type alias and update export in init.ts
1 parent 79f13db commit c850dae

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tools/nx/src/generators/init-app/init.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { join, resolve } from 'path';
44

55
import { GeneratorOptions } from './schema';
66

7-
type Schema = GeneratorOptions;
8-
97
function copyDirectoryToTree(tree: Tree, sourceDir: string, targetDir: string, excludeDirs: string[] = []) {
108
if (!existsSync(sourceDir)) {
119
return;
@@ -437,7 +435,7 @@ function fixEslintConfiguration(tree: Tree, projectRoot: string) {
437435
}
438436
}
439437

440-
export default async function (tree: Tree, schema: Schema) {
438+
export default async function (tree: Tree, schema: GeneratorOptions) {
441439
const nameParts = names(schema.name);
442440
// Use the full directory path provided (e.g., 'apps/my-app')
443441
const projectDir = schema.directory || `apps/${nameParts.fileName}`;

tools/nx/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './generators/init-app/init';

0 commit comments

Comments
 (0)