Mar*_*ate 5 node.js nestjs yarn-workspaces
我正在尝试创建一个yarn工作区monorepo,其中一些模块将是nest.js模块。我面临的问题是,nest.js monorepo 有一种与纱线工作区不兼容的特殊设置方式,请参阅以下示例:
\npackages/\n\xe2\x94\x9c\xe2\x94\x80 entrypoint/\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80 main.ts <~ here I'll create a nest instance using all other modules\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80 lambda.ts <~ lambda express app for main\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80 local.ts <~ local express app for main\n\xe2\x94\x9c\xe2\x94\x80 nestjs-module-1/\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80 index.ts <~ here I want to export my module\n\xe2\x94\x9c\xe2\x94\x80 nestjs-module-2/\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80 index.ts <~ here I want to export my module\n\xe2\x94\x9c\xe2\x94\x80 not-a-nestjs-module/\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80 index.ts <~ just something else, not nest.js\n\xe2\x94\x9c\xe2\x94\x80 package.json <~ nest.js monorepo forces me to have this but this module does not exists on yarn workspaces as it's configured to /packges/*\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
1068 次 |
| 最近记录: |