SaroVin
SaroVin

Reputation: 1773

Use nestjs-i18n in a monorepo

I want to use nestjs-i18n in an monorepo project and share i18n assets between apps. I tried with this configuration but the i18n assets are not copied to the dist directory:

    "common": {
          "type": "library",
          "root": "libs/common",
          "entryFile": "index",
          "sourceRoot": "libs/common/src",
          "compilerOptions": {
            "tsConfigPath": "libs/common/tsconfig.lib.json",
            "assets": [
              {
                "include": "i18n/**/*"
              }
            ],
            "webpack": true      
 }
 

Any ideas or suggestion? Thanks in advance!

Upvotes: 4

Views: 428

Answers (1)

mahdi komaiha
mahdi komaiha

Reputation: 141

enter image description here

as the documentation suggests you must add the "outDir" key in your nest-cli.json reference

Upvotes: 0

Related Questions