Skip to content

Commit

Permalink
chore: use async command
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 3, 2021
1 parent d189c25 commit 311eb9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const testRepos = [
const root = resolve(dirname(__dirname))
const packedPkg = join(root, `${pkg.name}-${pkg.version}.tgz`)
rm("-rf", packedPkg)
await execa.commandSync("pnpm pack", {cwd: root})
await execa.command("pnpm pack", {cwd: root})

for (const testRepo of testRepos) {
console.log(`Testing ${testRepo}`)
Expand All @@ -30,8 +30,8 @@ const testRepos = [
await extract(source, distFolder)
}

await execa.commandSync(`pnpm add "${packedPkg}" --ignore-scripts`, {cwd: distFolder, shell: true})
await execa.commandSync("eslint .", {cwd: distFolder, stdout: 'inherit'})
await execa.command(`pnpm add "${packedPkg}" --ignore-scripts`, {cwd: distFolder, shell: true})
await execa.command("eslint .", {cwd: distFolder, stdout: 'inherit'})
}
rm("-rf", packedPkg)

Expand Down

0 comments on commit 311eb9e

Please sign in to comment.