Reputation: 1773
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
Reputation: 141
as the documentation suggests you must add the "outDir"
key in your nest-cli.json reference
Upvotes: 0