Unverified Commit 132c5cdb authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Stop importing from `next/dist/bin/next` (#68830)

parent b2e898df
...@@ -108,11 +108,10 @@ describe('build-spinners', () => { ...@@ -108,11 +108,10 @@ describe('build-spinners', () => {
const appDir = next.testDir const appDir = next.testDir
const nextBin = resolveFrom(appDir, 'next/dist/bin/next')
const ptyPath = resolveFrom(appDir, 'node-pty') const ptyPath = resolveFrom(appDir, 'node-pty')
const pty = require(ptyPath) const pty = require(ptyPath)
const output = [] const output = []
const ptyProcess = pty.spawn(process.execPath, [nextBin, 'build'], { const ptyProcess = pty.spawn('pnpm', ['next', 'build'], {
name: 'xterm-color', name: 'xterm-color',
cols: 80, cols: 80,
rows: 30, rows: 30,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment