libton-project / libton

Set up a modern lib by running one command.
MIT License
2 stars 1 forks source link

support reflect-metadata in build #1

Open m-davoodi opened 4 years ago

m-davoodi commented 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

m-davoodi commented 4 years ago

Possible solution

https://github.com/leonardfactory/babel-plugin-transform-typescript-metadata

https://github.com/dragomirtitian/babel-decorators-metadata