[all] chore: move to pnpm

This commit is contained in:
Yangshun 2023-12-06 18:22:05 +08:00
parent 863ab0e773
commit 6de8be8d17
9 changed files with 11890 additions and 26074 deletions

View File

@ -1,11 +1,15 @@
# GreatFrontEnd
This repository is a monorepo using `npm`.
This repository is a monorepo using [`pnpm`](https://pnpm.io/).
## Getting started
Firstly, install [pnpm](https://pnpm.io/installation).
Then run the following commands to install `node_modules` for every app and package.
```sh
npm install
pnpm i
```
### Important directories
@ -29,7 +33,7 @@ This Turborepo has some additional tools already setup for you:
To develop all apps and packages, run the following command:
```
npm run dev
pnpm dev
```
## Useful Links

View File

@ -3,7 +3,7 @@
First, run the development server:
```bash
yarn dev
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

View File

@ -16,17 +16,21 @@
"prisma:deploy": "dotenv -e .env.production.local -- prisma migrate deploy"
},
"dependencies": {
"@prisma/client": "4.11.0",
"clsx": "^1.2.1",
"lodash-es": "^4.17.21",
"next": "^13.4.19",
"next": "13.4.19",
"prisma": "4.11.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.10.1",
"server-only": "^0.0.1",
"usehooks-ts": "^2.9.1",
"zod": "^3.21.4"
},
"devDependencies": {
"@gfe/eslint-config-gfe-apps": "*",
"@gfe/eslint-config-gfe-apps": "workspace:0.0.0",
"@gfe/tsconfig": "workspace:0.0.0",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.3",
@ -44,7 +48,6 @@
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.2.3",
"prisma": "^4.11.0",
"tailwindcss": "^3.3.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"

View File

@ -3,7 +3,7 @@
First, run the development server:
```bash
yarn dev
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

View File

@ -37,7 +37,7 @@
"@mdx-js/react": "^2.3.0",
"@monaco-editor/react": "^4.5.1",
"@next/mdx": "13.4.19",
"@prisma/client": "^4.11.0",
"@prisma/client": "4.11.0",
"@radix-ui/react-radio-group": "^1.1.3",
"@react-email/components": "^0.0.12",
"@stefanprobst/remark-extract-toc": "^2.2.0",
@ -69,7 +69,7 @@
"monaco-editor": "^0.40.0",
"monaco-themes": "^0.4.3",
"negotiator": "^0.6.3",
"next": "^13.4.19",
"next": "13.4.19",
"next-absolute-url": "^1.2.2",
"next-seo": "^5.15.0",
"nullthrows": "^1.1.1",
@ -98,7 +98,8 @@
},
"devDependencies": {
"@formatjs/cli": "^6.0.1",
"@gfe/eslint-config-gfe-apps": "*",
"@gfe/eslint-config-gfe-apps": "workspace:0.0.0",
"@gfe/tsconfig": "workspace:0.0.0",
"@mdx-js/loader": "^2.3.0",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/container-queries": "^0.1.1",
@ -139,7 +140,7 @@
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.2.3",
"prisma": "^4.11.0",
"prisma": "4.11.0",
"rimraf": "^4.4.1",
"slugify": "^1.6.5",
"strip-comments": "^2.0.1",

26061
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,5 +22,6 @@
"engines": {
"npm": ">=8.5.0",
"node": ">=16.0.0"
}
},
"packageManager": "pnpm@8.11.0"
}

11865
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

3
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,3 @@
packages:
- 'apps/*'
- 'packages/*'