From 1ca1efed6c1f05ae1493b9add38ddc82cfdbabdf Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Thu, 4 May 2023 18:13:23 +0300 Subject: [PATCH] chore: Kludge app:build to not be able to break npm install This root problem is that app:build creates a package.json somewhere in a dist-directory, which then gets identified as part of the monorepo workspace, yet can't behave as such leading to error on most npm commands. The kludge is to remove said dist-directory before npm-installing. Co-authored-by: Gabriel Signed-off-by: Iku-turso --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 5bba9e97f3..ada1f4c1c8 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "scripts": { "all:reinstall": "npm run clean:node_modules && npm run all:install", "all:install": "npx --yes --package npm@9.6.5 npm install", + "preall:install": "npx --yes --package rimraf rimraf packages/open-lens/dist", "adr:create": "echo \"What is the title?\"; read title; adr new \"$title\"", "adr:change-status": "echo \"Decision number?:\"; read decision; adr status $decision", "adr:update-readme": "adr update",