Skip to content

Commit

Permalink
Include debug script in test directories
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Nov 20, 2024
1 parent b5666ce commit bcbbdfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/lib/create-next-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,18 @@ async function createNextInstall({
}, {}),
}

const scripts = {
debug: `NEXT_PRIVATE_SKIP_CANARY_CHECK=1 NEXT_TELEMETRY_DISABLED=1 NEXT_TEST_NATIVE_DIR=${process.env.NEXT_TEST_NATIVE_DIR} node --inspect --trace-deprecation --enable-source-maps node_modules/next/dist/bin/next`,
...packageJson.scripts,
}

await fs.ensureDir(installDir)
await fs.writeFile(
path.join(installDir, 'package.json'),
JSON.stringify(
{
...packageJson,
scripts,
dependencies: combinedDependencies,
private: true,
// Add resolutions if provided.
Expand Down

0 comments on commit bcbbdfc

Please sign in to comment.