From 9b90538e925f2167077b5dd418eeb7bab2d7462f Mon Sep 17 00:00:00 2001 From: nartc Date: Mon, 9 Dec 2024 09:22:01 -0600 Subject: [PATCH] chore(repo): re-setup release --- libs/ngxtension/project.json | 10 ---------- libs/plugin/project.json | 3 ++- nx.json | 2 +- package.json | 5 +++-- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/libs/ngxtension/project.json b/libs/ngxtension/project.json index 8fd87437..83a79262 100644 --- a/libs/ngxtension/project.json +++ b/libs/ngxtension/project.json @@ -14,16 +14,6 @@ } }, "targets": { - "package": { - "executor": "nx:run-commands", - "options": { - "commands": [ - "pnpm exec nx build ngxtension", - "pnpm exec nx build plugin" - ], - "parallel": false - } - }, "build": { "executor": "@nx/angular:package", "outputs": ["{workspaceRoot}/dist/{projectRoot}"], diff --git a/libs/plugin/project.json b/libs/plugin/project.json index 9af9cfde..c71b8069 100644 --- a/libs/plugin/project.json +++ b/libs/plugin/project.json @@ -34,7 +34,8 @@ "output": "." } ] - } + }, + "dependsOn": [{ "target": "build", "projects": "ngxtension" }] }, "lint": { "executor": "@nx/eslint:lint", diff --git a/nx.json b/nx.json index 340494ee..97bb6bb3 100644 --- a/nx.json +++ b/nx.json @@ -74,7 +74,7 @@ "release": { "projects": ["ngxtension"], "version": { - "preVersionCommand": "nx package ngxtension" + "preVersionCommand": "npm run package" }, "git": { "commitMessage": "chore: release {version}" diff --git a/package.json b/package.json index e9a75098..592305ba 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "postinstall": "simple-git-hooks", - "release": "dotenv release-it --" + "package": "nx run-many -t build --projects=ngxtension,plugin" }, "private": true, "engines": { @@ -93,5 +93,6 @@ "lint-staged": { "*": "pnpm exec prettier --write" }, - "packageManager": "pnpm@9.3.0" + "packageManager": "pnpm@9.3.0", + "nx": {} }