Skip to content
Prev Previous commit
Next Next commit
fix gatsby build
  • Loading branch information
Larry1123 committed Sep 8, 2022
commit c4c6a57b7e975d4e6fb4545a799a64f8c0557248
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ exports.sourceNodes = async ({actions, createNodeId, createContentDigest}, opts)
}
});

const monorepoRoot = require.resolve(`@yarnpkg/monorepo/package.json`).replace(`/package.json`, ``);
const data = await execute([
require.resolve(`@yarnpkg/monorepo/packages/yarnpkg-core/sources/Plugin.ts`),
require.resolve(`${monorepoRoot}/packages/yarnpkg-core/sources/Plugin.ts`),
...indexList,
]);

Expand Down