Skip to content

Commit

Permalink
chore: use corepack instead of insalling pnpm from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
anasouardini committed Feb 27, 2024
1 parent a35cf3b commit cbf625c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
with:
node-version: 21

- name: install pnpm
run: npm i pnpm@latest -g
- name: enable corepack
run: corepack enable

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
Expand Down
4 changes: 2 additions & 2 deletions packages/create-scrapeyard/src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export function createTemplateProject(args: string[]) {
tools.setPackageInfo(destination, templatePackageInfo);

// install demo project's dependencies
console.log('> Installing pnpm');
console.log('> Enabling corepack');
execSync(
`npm i pnpm -g`,
`corepack enable`,
// @ts-ignore
(err, stdout, stderr) => {
if (err || stderr) {
Expand Down

0 comments on commit cbf625c

Please sign in to comment.