Skip to content

Commit

Permalink
feat: set tsconfig’s emitDecoratorMetadata=true in nestjs application…
Browse files Browse the repository at this point in the history
… schematic
  • Loading branch information
da-mkay authored and vsavkin committed Dec 2, 2019
1 parent 0000266 commit 6a14b66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/nest/src/schematics/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@angular-devkit/schematics';
import { join, normalize, Path } from '@angular-devkit/core';
import { Schema } from './schema';
import { toFileName } from '@nrwl/workspace';
import { toFileName, updateJsonInTree } from '@nrwl/workspace';
import init from '../init/init';

interface NormalizedSchema extends Schema {
Expand Down Expand Up @@ -70,7 +70,11 @@ export default function(schema: Schema): Rule {
}),
externalSchematic('@nrwl/node', 'application', schema),
addMainFile(options),
addAppFiles(options)
addAppFiles(options),
updateJsonInTree(join(options.appProjectRoot, 'tsconfig.json'), json => {
json.compilerOptions.emitDecoratorMetadata = true;
return json;
})
])(host, context);
};
}
Expand Down

0 comments on commit 6a14b66

Please sign in to comment.