Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit c2a5d96

Browse files
committed
fix(rucken-lib-nestjs): Clear index.ts for entities
1 parent a9da634 commit c2a5d96

File tree

1 file changed

+6
-1
lines changed
  • src/schematics/rucken-lib-nestjs

1 file changed

+6
-1
lines changed

src/schematics/rucken-lib-nestjs/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,13 @@ function updateSourceFiles(
8484
options.name
8585
).toUpperCase()}_SERVICES = []`;
8686
}
87+
if (path === `/src/entities/index.ts`) {
88+
return `export const ${underscore(
89+
options.name
90+
).toUpperCase()}_ENTITIES = []`;
91+
}
8792
if (path === `/src/index.ts`) {
88-
return `export * from './i18n/ru.i18n';`
93+
return `export * from './i18n/ru.i18n';`;
8994
}
9095
if (path === `/package.json`) {
9196
const original = JSON.parse(content);

0 commit comments

Comments
 (0)