Skip to content
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

Merged
merged 1 commit into from
May 8, 2023

Conversation

Itrulia
Copy link
Collaborator

@Itrulia Itrulia commented May 3, 2023

Temporary fix until nrwl/nx#16127 is merged and released

@github-actions
Copy link

github-actions bot commented May 3, 2023

PR 903 with branch fix/nrwl-js-build-broken has been deployed to:

@Itrulia Itrulia marked this pull request as ready for review May 3, 2023 13:44
@Itrulia Itrulia requested a review from tomaszdurka as a code owner May 3, 2023 13:44
@Itrulia Itrulia requested review from antkiewiczk and penk85 May 3, 2023 13:44
@@ -12,7 +12,7 @@
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Copy link
Collaborator Author

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": ["../../"]
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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": {
Copy link
Collaborator Author

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

Copy link
Collaborator Author

@Itrulia Itrulia May 3, 2023

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

@Itrulia Itrulia merged commit 8303418 into master May 8, 2023
@Itrulia Itrulia deleted the fix/nrwl-js-build-broken branch May 8, 2023 09:12
Itrulia added a commit that referenced this pull request May 9, 2023
antkiewiczk pushed a commit that referenced this pull request May 9, 2023
@tomaszdurka tomaszdurka mentioned this pull request Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants