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/ .idea/
node_modules/ node_modules/
.vscode/ .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. 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/) 0. Install [pnpm](https://pnpm.io/installation):
1. Fork this repository 1. Install [pre-commit](https://pre-commit.com/)
2. Clone the fork 2. Fork this repository
3. Enable pre-commit in the repo: 3. Clone the fork
4. Enable pre-commit in the repo:
```sh ```sh
pre-commit install pre-commit install
``` ```
4. Create a new branch from the latest commit on `main` 5. Create a new branch from the latest commit on `main`
5. Start hacking on the new branch 6. Start hacking on the new branch
6. Commit and push to the new branch 7. Commit and push to the new branch
7. Make a pull request to `main` 8. Make a pull request to `main`
## Table of contents ## Table of contents

View File

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