feat: set tsconfig’s emitDecoratorMetadata=true in nestjs application schematic
This commit is contained in:
parent
0000266bc2
commit
6a14b6661f
@ -12,7 +12,7 @@ import {
|
|||||||
} from '@angular-devkit/schematics';
|
} from '@angular-devkit/schematics';
|
||||||
import { join, normalize, Path } from '@angular-devkit/core';
|
import { join, normalize, Path } from '@angular-devkit/core';
|
||||||
import { Schema } from './schema';
|
import { Schema } from './schema';
|
||||||
import { toFileName } from '@nrwl/workspace';
|
import { toFileName, updateJsonInTree } from '@nrwl/workspace';
|
||||||
import init from '../init/init';
|
import init from '../init/init';
|
||||||
|
|
||||||
interface NormalizedSchema extends Schema {
|
interface NormalizedSchema extends Schema {
|
||||||
@ -70,7 +70,11 @@ export default function(schema: Schema): Rule {
|
|||||||
}),
|
}),
|
||||||
externalSchematic('@nrwl/node', 'application', schema),
|
externalSchematic('@nrwl/node', 'application', schema),
|
||||||
addMainFile(options),
|
addMainFile(options),
|
||||||
addAppFiles(options)
|
addAppFiles(options),
|
||||||
|
updateJsonInTree(join(options.appProjectRoot, 'tsconfig.json'), json => {
|
||||||
|
json.compilerOptions.emitDecoratorMetadata = true;
|
||||||
|
return json;
|
||||||
|
})
|
||||||
])(host, context);
|
])(host, context);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user