chore: migrate to pnpm

This commit is contained in:
Ayo 2024-03-09 21:23:06 +01:00
parent 7141c10914
commit 2f4a22ac8d
5 changed files with 3161 additions and 4311 deletions

4296
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,21 +1,14 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"start": "npm start -w @mcflyjs/landing-page", "preinstall": "npx only-allow pnpm",
"site": "npm start -w @mcflyjs/landing-page", "start": "pnpm --filter @mcflyjs/landing-page start",
"build": "npm run build -w @mcflyjs/landing-page", "site": "pnpm --filter @mcflyjs/landing-page start",
"build:preview": "npm run build:preview -w @mcflyjs/landing-page", "build": "pnpm --filter @mcflyjs/landing-page build",
"template:basic": "npm run dev -w @templates/basic", "build:preview": "pnpm --filter @mcflyjs/landing-page build:preview",
"template:basic": "pnpm --filter @templates/basic dev",
"create": "node ./packages/create-mcfly", "create": "node ./packages/create-mcfly",
"cli": "node ./packages/cli", "cli": "node ./packages/cli",
"patch:all": "npm version patch -w @mcflyjs/cli && npm version patch -w @mcflyjs/core && npm version patch -w @mcflyjs/config && npm version patch -w create-mcfly" "patch:all": "npm version patch -w @mcflyjs/cli && npm version patch -w @mcflyjs/core && npm version patch -w @mcflyjs/config && npm version patch -w create-mcfly"
}, }
"workspaces": [
"packages/config",
"packages/create-mcfly",
"templates/basic",
"packages/core",
"site",
"packages/cli"
]
} }

3149
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

4
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,4 @@
packages:
- "packages/**"
- "templates/**"
- "site/**"

View file

@ -8,7 +8,7 @@
"dev": "mcfly serve", "dev": "mcfly serve",
"build": "mcfly build", "build": "mcfly build",
"preview": "node .output/server/index.mjs", "preview": "node .output/server/index.mjs",
"build:preview": "npm run build && npm run preview" "build:preview": "pnpm run build && pnpm run preview"
}, },
"dependencies": { "dependencies": {
"@mcflyjs/cli": "*", "@mcflyjs/cli": "*",