Skip to content

Commit 1a82fff

Browse files
committed
ci(externals): repair node_modules using "npm run prepare" post-install
1 parent d4f6936 commit 1a82fff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

external-scripts/is-next-compat.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async function main() {
126126
const nextVersionUnderTestFullNameAndVersion = `next@${latestReleaseVersion}`;
127127

128128
log('installing %O for unit tests', nextVersionUnderTestFullNameAndVersion);
129-
log(`(integration tests use their own Next.js versions)`);
129+
log('(integration tests use their own Next.js versions)');
130130

131131
// ? Install peer deps manually for Next.js
132132
const nextLatestReleaseVersionPeerDependencies = await getNextjsReactPeerDependencies(
@@ -141,6 +141,10 @@ async function main() {
141141
...nextLatestReleaseVersionPeerDependencies
142142
]);
143143

144+
log(`repairing node_modules after install using \`npm run prepare\``);
145+
146+
await run('npm', ['run', 'prepare']);
147+
144148
log('running compatibility tests');
145149

146150
await run('npm', ['run', 'test:packages:all']);

0 commit comments

Comments
 (0)