Skip to content

Commit

Permalink
chore(package.json): add packageManager (#638)
Browse files Browse the repository at this point in the history
* chore(package.json): add `packageManager` && make scripts pm-independent

* feat: add pnpm to strict engines

* style(npmrc): add newline

Co-authored-by: Isaac <[email protected]>

---------

Co-authored-by: Isaac <[email protected]>
Co-authored-by: ririxi <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2023
1 parent aedbfba commit 6d45d77
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
run_install: false

- name: Install Node.js (v20)
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
run_install: false

- name: Install Node.js
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
run_install: false

- name: Install Node.js
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"bugs": {
"url": "https://github.com/spicetify/spicetify-marketplace/issues"
},
"packageManager": "[email protected]",
"scripts": {
"build": "spicetify-creator",
"build:local": "spicetify-creator --out=dist --minify",
"build:prod": "pnpm build:local && pnpm copy:docs",
"build:prod": "pnpm run build:local && pnpm run copy:docs",
"copy:docs": "copyfiles README.md dist/",
"lint": "eslint --fix src",
"lint:ci": "eslint src",
Expand All @@ -21,6 +22,9 @@
"prepare": "husky install"
},
"engines": {
"yarn": "please-use-pnpm",
"npm": "please-use-pnpm",
"pnpm": ">=8",
"node": ">=20"
},
"devDependencies": {
Expand Down

0 comments on commit 6d45d77

Please sign in to comment.