Enforce PNPM a bit more (#82)

pull/84/head
Nikita Karamov 2023-07-31 15:45:52 +02:00 committed by GitHub
commit b2331876ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 9 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ dist/
.idea/
node_modules/
.vscode/
package-lock.json
yarn.lock

View File

@ -2,19 +2,20 @@
Shareon welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines below. If you decide to contribute anything, please follow the steps below.
0. Install [pre-commit](https://pre-commit.com/)
1. Fork this repository
2. Clone the fork
3. Enable pre-commit in the repo:
0. Install [pnpm](https://pnpm.io/installation):
1. Install [pre-commit](https://pre-commit.com/)
2. Fork this repository
3. Clone the fork
4. Enable pre-commit in the repo:
```sh
pre-commit install
```
4. Create a new branch from the latest commit on `main`
5. Start hacking on the new branch
6. Commit and push to the new branch
7. Make a pull request to `main`
5. Create a new branch from the latest commit on `main`
6. Start hacking on the new branch
7. Commit and push to the new branch
8. Make a pull request to `main`
## Table of contents

View File

@ -49,7 +49,8 @@
"test": "pnpm run lint && pnpm run build && pnpm run size",
"postversion": "pnpm run build",
"prepublishOnly": "rm -rf ./package && clean-publish",
"postpublish": "rm -rf ./package"
"postpublish": "rm -rf ./package",
"preinstall": "npx only-allow pnpm"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^8.2.6",