Skip to content

Commit

Permalink
Merge pull request #17 from NullVoxPopuli/use-pnpm-for-eslint-testing
Browse files Browse the repository at this point in the history
Use pnpm for eslint-plugin-ember testing
  • Loading branch information
NullVoxPopuli authored Jan 1, 2024
2 parents 89d19bc + 2710a80 commit 4d6d24e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions scripts/eslint-plugin-ember-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const FOLDERS = {
await fse.remove(FOLDERS.testRoot);
await fse.ensureDir(FOLDERS.testRoot);

// Using pnpm instead of yarn, because pnpm is way faster
await execaCommand(`git clone ${REPO}`, { cwd: FOLDERS.testRoot, stdio: 'inherit' });
await execaCommand(`yarn install`, { cwd: FOLDERS.repo, stdio: 'inherit' });
await execaCommand(`yarn link`, { cwd: FOLDERS.here, stdio: 'inherit' });
await execaCommand(`yarn link ember-eslint-parser`, { cwd: FOLDERS.repo, stdio: 'inherit' });
await execaCommand(`yarn run test`, { cwd: FOLDERS.repo, stdio: 'inherit' });
await execaCommand(`pnpm install`, { cwd: FOLDERS.repo, stdio: 'inherit' });
await execaCommand(`pnpm link ${FOLDERS.here}`, { cwd: FOLDERS.here, stdio: 'inherit' });
await execaCommand(`pnpm run test`, { cwd: FOLDERS.repo, stdio: 'inherit' });
2 changes: 1 addition & 1 deletion test-projects/gts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@typescript-eslint/parser": "^6.15.0",
"ember-eslint-parser": "workspace:^",
"eslint": "^8.0.1",
"eslint-plugin-ember": "github:ember-cli/eslint-plugin-ember#bcd423b2",
"eslint-plugin-ember": "github:ember-cli/eslint-plugin-ember#master",
"typescript": "^5.3.3"
}
}

0 comments on commit 4d6d24e

Please sign in to comment.