From b346fed5fb471af03ef11f1afbb5133d90c3b68d Mon Sep 17 00:00:00 2001 From: Hyeon Kim Date: Sun, 21 Feb 2021 01:51:29 +0900 Subject: [PATCH] Adds an extension for NextAuth.js I tried to patch NextAuth.js first but they rejected it. So I'm fixing Next.js and Yarn instead. I already have fixed the Next.js side and this is the remaining piece. References: https://github.com/nextauthjs/next-auth/pull/1034 https://github.com/vercel/next.js/pull/20971 --- .yarn/versions/34ceb174.yml | 22 ++++++++++++++++++++ packages/plugin-compat/sources/extensions.ts | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 .yarn/versions/34ceb174.yml diff --git a/.yarn/versions/34ceb174.yml b/.yarn/versions/34ceb174.yml new file mode 100644 index 000000000000..871c19814360 --- /dev/null +++ b/.yarn/versions/34ceb174.yml @@ -0,0 +1,22 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-compat": patch + +declined: + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-node-modules" + - "@yarnpkg/plugin-npm-cli" + - "@yarnpkg/plugin-pack" + - "@yarnpkg/plugin-patch" + - "@yarnpkg/plugin-pnp" + - "@yarnpkg/plugin-stage" + - "@yarnpkg/plugin-typescript" + - "@yarnpkg/plugin-version" + - "@yarnpkg/plugin-workspace-tools" + - "@yarnpkg/builder" + - "@yarnpkg/core" + - "@yarnpkg/doctor" diff --git a/packages/plugin-compat/sources/extensions.ts b/packages/plugin-compat/sources/extensions.ts index 22cd00dd3fa9..9364dd83a8e4 100644 --- a/packages/plugin-compat/sources/extensions.ts +++ b/packages/plugin-compat/sources/extensions.ts @@ -225,4 +225,10 @@ export const packageExtensions: Array<[string, PackageExtensionData]> = [ protobufjs: `^6.8.6`, }, }], + // https://github.com/nextauthjs/next-auth/pull/1034 + [`next-auth@*`, { + dependencies: { + process: "^0.11.10", + }, + }], ];