-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(js): fix the same library being moved by nx using a patch #903
Conversation
Temporary fix until nrwl/nx#16127 is merged and released
PR 903 with branch
|
@@ -12,7 +12,7 @@ | |||
"@nrwl/nx/enforce-module-boundaries": [ | |||
"error", | |||
{ | |||
"enforceBuildableLibDependency": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with "external": "all", non buildable libraries can be dependent on
@@ -4,7 +4,8 @@ | |||
"module": "commonjs", | |||
"outDir": "../../dist/out-tsc", | |||
"declaration": true, | |||
"types": ["node"] | |||
"types": ["node"], | |||
"rootDirs": ["../../"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required so typescript can inline files below the rootDir
@@ -27,7 +27,9 @@ | |||
"tsConfig": "libs/api/tsconfig.lib.json", | |||
"packageJson": "libs/api/package.json", | |||
"main": "libs/api/src/index.ts", | |||
"assets": ["libs/api/*.md", "libs/api/prisma/**/*"] | |||
"assets": ["libs/api/*.md", "libs/api/prisma/**/*"], | |||
"external": "all", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bundles all non publishable libraries
@@ -4,17 +4,6 @@ | |||
"sourceRoot": "libs/authentication/api/src", | |||
"projectType": "library", | |||
"targets": { | |||
"build": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore. Is now built by api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied by the patch-package library. See PR description for explanation
Temporary fix until nrwl/nx#16127 is merged and released
Temporary fix until nrwl/nx#16127 is merged and released
Temporary fix until nrwl/nx#16127 is merged and released