From 6d54c5728e2d6167817d9bec982f81d12e93c7c4 Mon Sep 17 00:00:00 2001 From: Tine Kondo Date: Tue, 6 Aug 2024 19:09:22 +0000 Subject: [PATCH] chore: remove now obsolete patch for https://github.com/nrwl/nx/issues/26949 --- Dockerfile | 16 ---------- packages/nx-flutter/tsconfig.lib.json | 2 +- patches/nx@19.4.1.patch | 46 --------------------------- 3 files changed, 1 insertion(+), 63 deletions(-) delete mode 100644 Dockerfile delete mode 100644 patches/nx@19.4.1.patch diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index ed4dab38..00000000 --- a/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM node:17-alpine as source -LABEL author="Tine Kondo" -WORKDIR /usr/src/app -COPY package.json pnpm-lock.yaml ./ - -FROM source as builder -RUN pnpm -COPY . . -RUN pnpm ts-node -P ./tools/tsconfig.tools.json ./tools/patch-nx-project.ts -#RUN pnpm nx run-many --target=build --all --parallel - -FROM builder as tester -COPY . . -VOLUME ./tmp-e2e:./tmp -#RUN pnpm nx e2e nx-spring-boot-e2e -#RUN pnpm nx run-many --target=test --projects=nx-quarkus --para \ No newline at end of file diff --git a/packages/nx-flutter/tsconfig.lib.json b/packages/nx-flutter/tsconfig.lib.json index e85ef50f..7bfc80f7 100644 --- a/packages/nx-flutter/tsconfig.lib.json +++ b/packages/nx-flutter/tsconfig.lib.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../../dist/out-tsc", "declaration": true, - "types": [] + "types": ["node"] }, "include": ["**/*.ts"], "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"] diff --git a/patches/nx@19.4.1.patch b/patches/nx@19.4.1.patch deleted file mode 100644 index 120164a9..00000000 --- a/patches/nx@19.4.1.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/release/changelog-renderer/index.js b/release/changelog-renderer/index.js -index 5b2f41a880933f41856de81b11453c9b27efa733..f4bb0609a3c155fd0dcddfcb6393d888c06cd76c 100644 ---- a/release/changelog-renderer/index.js -+++ b/release/changelog-renderer/index.js -@@ -25,10 +25,13 @@ const defaultChangelogRenderer = async ({ projectGraph, changes, releaseVersion, - } - } - } -+ -+ let relevantChanges = []; - // workspace root level changelog - if (project === null) { -+ relevantChanges = changes; - // No changes for the workspace -- if (changes.length === 0) { -+ if (relevantChanges.length === 0) { - if (dependencyBumps?.length) { - applyAdditionalDependencyBumps({ - markdownLines, -@@ -42,7 +45,7 @@ const defaultChangelogRenderer = async ({ projectGraph, changes, releaseVersion, - } - return markdownLines.join('\n').trim(); - } -- const typeGroups = groupBy(changes, 'type'); -+ const typeGroups = groupBy(relevantChanges, 'type'); - markdownLines.push('', createVersionTitle(releaseVersion, changelogRenderOptions), ''); - for (const type of Object.keys(changeTypes)) { - const group = typeGroups[type]; -@@ -75,7 +78,7 @@ const defaultChangelogRenderer = async ({ projectGraph, changes, releaseVersion, - } - else { - // project level changelog -- const relevantChanges = changes.filter((c) => c.affectedProjects && -+ relevantChanges = changes.filter((c) => c.affectedProjects && - (c.affectedProjects === '*' || c.affectedProjects.includes(project))); - // Generating for a named project, but that project has no relevant changes in the current set of commits, exit early - if (relevantChanges.length === 0) { -@@ -128,7 +131,7 @@ const defaultChangelogRenderer = async ({ projectGraph, changes, releaseVersion, - } - if (changelogRenderOptions.authors) { - const _authors = new Map(); -- for (const change of changes) { -+ for (const change of relevantChanges) { - if (!change.author) { - continue; - }