From f6229641aab78455dbaac2cf9d81d3fe93031f19 Mon Sep 17 00:00:00 2001 From: Simeng Li Date: Wed, 11 Aug 2021 23:07:39 +0800 Subject: [PATCH] refactor: add phrases dependency to schema --- package.json | 12 ++++++++---- packages/schemas/package.json | 5 ++++- pnpm-lock.yaml | 3 +++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 21ced37c2..84083d59c 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "preinstall": "npx only-allow pnpm", "lerna": "lerna", "bootstrap": "lerna bootstrap", - "prepare": "if test \"$NODE_ENV\" != \"production\" ; then husky install && lerna run --stream prepack ; fi", + "prepare": "if test \"$NODE_ENV\" != \"production\" ; then husky install && lerna run --concurrency 1 --stream prepack ; fi", "dev": "lerna run --parallel dev" }, "devDependencies": { @@ -16,11 +16,15 @@ "typescript": "^4.3.5" }, "workspaces": { - "packages": ["packages/*"], - "nohoist": ["**/module-alias"] + "packages": [ + "packages/*" + ], + "nohoist": [ + "**/module-alias" + ] }, "engines": { "node": ">=14.15.0", "pnpm": ">=6" } -} +} \ No newline at end of file diff --git a/packages/schemas/package.json b/packages/schemas/package.json index f5d0cf9e8..217ef45a5 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -38,5 +38,8 @@ "eslintConfig": { "extends": "@logto" }, - "prettier": "@logto/eslint-config/.prettierrc" + "prettier": "@logto/eslint-config/.prettierrc", + "dependencies": { + "@logto/phrases": "^0.1.0" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ceccf7ac..a22e005e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,6 +123,7 @@ importers: specifiers: '@logto/eslint-config': ^0.1.0-rc.14 '@logto/essentials': ^1.1.0-rc.2 + '@logto/phrases': ^0.1.0 '@logto/ts-config': ^0.1.0-rc.14 '@types/lodash.uniq': ^4.5.6 '@types/node': '14' @@ -135,6 +136,8 @@ importers: prettier: ^2.3.2 ts-node: ^10.0.0 typescript: ^4.3.5 + dependencies: + '@logto/phrases': link:../phrases devDependencies: '@logto/eslint-config': 0.1.0-rc.14_aa6010e91de57dec3f7388187c7addf8 '@logto/essentials': 1.1.0-rc.2