From 6f08f4894f0f2418513bcc2cb50300d64e997d9d Mon Sep 17 00:00:00 2001 From: Ben-Jamin Date: Wed, 24 Jun 2026 12:00:52 +0200 Subject: [PATCH] fix(ci): pin human-id to a CJS-compatible version for the Release workflow @changesets/write does require('human-id'), but human-id@4.2.0 ships as ESM-only ("type": "module"), crashing the Release workflow on Node 18 with ERR_REQUIRE_ESM right after merging to main. Pinned via a pnpm workspace override to the last CJS release (4.1.3). --- pnpm-lock.yaml | 11 +++++++---- pnpm-workspace.yaml | 11 +++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 pnpm-workspace.yaml diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f95a5ae..9fae197 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + human-id: 4.1.3 + importers: .: @@ -1483,8 +1486,8 @@ packages: resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} engines: {node: '>= 14'} - human-id@4.2.0: - resolution: {integrity: sha512-K3GbkIWqyvvlpfhBPlbEvD97TtqBpAYA4kt+cn2lD2x2HuohzZCibcA2nOlnJT6exqvJLggoB5nv2dNf192nEA==} + human-id@4.1.3: + resolution: {integrity: sha512-tsYlhAYpjCKa//8rXZ9DqKEawhPoSytweBC2eNvcaDK+57RZLHGqNs3PZTQO6yekLFSuvA6AlnAfrw1uBvtb+Q==} hasBin: true human-signals@2.1.0: @@ -3081,7 +3084,7 @@ snapshots: dependencies: '@changesets/types': 6.1.0 fs-extra: 7.0.1 - human-id: 4.2.0 + human-id: 4.1.3 prettier: 2.8.8 '@esbuild/aix-ppc64@0.27.7': @@ -4360,7 +4363,7 @@ snapshots: transitivePeerDependencies: - supports-color - human-id@4.2.0: {} + human-id@4.1.3: {} human-signals@2.1.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..7ff5143 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,11 @@ +packages: + - . + +allowBuilds: + esbuild: set this to true or false + +overrides: + # @changesets/write requires('human-id') CommonJS-style; human-id@4.2.0 is + # ESM-only ("type": "module"), which crashes the Release workflow on Node 18 + # with ERR_REQUIRE_ESM. Pin to the last CJS-compatible release. + human-id: '4.1.3'