diff --git a/packages/core/package.json b/packages/core/package.json index 6a23c3810..35fd8b17c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,6 +7,7 @@ "license": "UNLICENSED", "private": true, "scripts": { + "preinstall": "npx only-allow pnpm", "precommit": "lint-staged", "build": "rm -rf build/ && tsc", "lint": "eslint --format pretty --ext .ts src", diff --git a/packages/phrases/package.json b/packages/phrases/package.json index 793b4feac..be5512d53 100644 --- a/packages/phrases/package.json +++ b/packages/phrases/package.json @@ -15,6 +15,7 @@ "url": "git+https://github.com/logto-io/logto.git" }, "scripts": { + "preinstall": "npx only-allow pnpm", "build": "rm -rf lib/ && tsc", "lint": "eslint --format pretty \"src/**\"", "prepack": "pnpm build" @@ -33,8 +34,5 @@ "eslintConfig": { "extends": "@logto" }, - "prettier": "@logto/eslint-config/.prettierrc", - "dependencies": { - "@logto/schemas": "^0.1.0" - } + "prettier": "@logto/eslint-config/.prettierrc" } diff --git a/packages/schemas/package.json b/packages/schemas/package.json index e429ff863..f5d0cf9e8 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -10,6 +10,7 @@ ], "private": true, "scripts": { + "preinstall": "npx only-allow pnpm", "generate": "ts-node src/gen/index.ts && eslint --format pretty \"src/db-entries/**\" --fix", "build": "pnpm generate && rm -rf lib/ && tsc --p tsconfig.build.json", "lint": "eslint --format pretty \"src/**\"", diff --git a/packages/ui/package.json b/packages/ui/package.json index 9a5f725d8..879110daf 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -4,6 +4,7 @@ "license": "UNLICENSED", "private": true, "scripts": { + "preinstall": "npx only-allow pnpm", "precommit": "lint-staged", "dev:tsc": "tsc -b -w --preserveWatchOutput", "dev:razzle": "razzle start", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fbf72f64b..0ceccf7ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -106,14 +106,11 @@ importers: packages/phrases: specifiers: '@logto/eslint-config': ^0.1.0-rc.14 - '@logto/schemas': ^0.1.0 '@logto/ts-config': ^0.1.0-rc.14 eslint: ^7.31.0 eslint-formatter-pretty: ^4.1.0 prettier: ^2.3.2 typescript: ^4.3.5 - dependencies: - '@logto/schemas': link:../schemas devDependencies: '@logto/eslint-config': 0.1.0-rc.14_aa6010e91de57dec3f7388187c7addf8 '@logto/ts-config': 0.1.0-rc.14_f847e35c67ce67b1737c27c823675243