From 1755c498de35f3f80da3a1dfdb63a0059892c182 Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Tue, 6 Jun 2023 11:15:51 +0300 Subject: [PATCH] chore: Make linkable push happen automatically for development Note that because lerna-running the non-cached script "linkable-push" it gets run only when required, and after its dependency script "build" is ran. Co-authored-by: Janne Savolainen Signed-off-by: Mikko Aspiala --- nx.json | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nx.json b/nx.json index b7d54708ff..64cbd055d6 100644 --- a/nx.json +++ b/nx.json @@ -40,6 +40,13 @@ "^build" ] }, + "linkable-push": { + "dependsOn": [ + "build" + ], + "inputs": [], + "outputs": [] + }, "test:integration": { "dependsOn": [ "^build" diff --git a/package.json b/package.json index 72e488c8c0..b75658dd7b 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "clean:node_modules": "lerna clean -y && rimraf node_modules", "clean:build-cache": "nx reset", "rebuild:dev": "npm run clean:build-cache && npm run build:dev", - "build:dev": "cross-env NODE_ENV=development lerna run build", + "build:dev": "cross-env NODE_ENV=development lerna run build,linkable-push", "build:dev:watch": "lerna watch -- npm run build:dev -- --scope \\$LERNA_PACKAGE_NAME", "start-dev-application": "cross-env NODE_ENV=development lerna run dev:main,dev:renderer,dev-run --stream --scope open-lens", "dev": "npm run build:dev; npm run build:dev:watch",