Open m-davoodi opened 4 years ago
When creating new package for @nestjs, all meta data removed in build file.
This is my package.json file:
"devDependencies": { "@nestjs/common": "^6.10.13", "@types/jest": "24.0.25", "libton-script": "0.12.1", "reflect-metadata": "^0.1.13" }, "peerDependencies": { "@nestjs/common": "^6.10.13", "reflect-metadata": "^0.1.13" }
I also set emitDecoratorMetadata to true in tsconfig
emitDecoratorMetadata
true
tsconfig
Possible solution
https://github.com/leonardfactory/babel-plugin-transform-typescript-metadata
https://github.com/dragomirtitian/babel-decorators-metadata
When creating new package for @nestjs, all meta data removed in build file.
This is my package.json file:
I also set
emitDecoratorMetadata
totrue
intsconfig