From bc9be28cb4e6a653335f501a98743d1ccfffcfdd Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Thu, 2 Feb 2023 14:25:31 +0200 Subject: [PATCH] Enable NPM workspaces Co-authored-by: Mikko Aspiala Signed-off-by: Janne Savolainen --- lerna.json | 5 +---- package.json | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lerna.json b/lerna.json index 0c3a27942e..56ffb47c9c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,9 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "useWorkspaces": false, - "packages": [ - "packages/*" - ], + "useWorkspaces": true, "version": "6.4.0-beta.13", "npmClient": "npm", "npmClientArgs": [ diff --git a/package.json b/package.json index 3ccfff7c4e..f066e3165d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,11 @@ { "name": "lens-monorepo", "private": true, + + "workspaces": [ + "packages/**/*" + ], + "scripts": { "adr:create": "echo \"What is the title?\"; read title; adr new \"$title\"", "adr:change-status": "echo \"Decision number?:\"; read decision; adr status $decision",