From 5215ee8eefe3a896c44b1ef3652425bc8cc7f040 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Tue, 30 Jul 2024 23:09:33 +0100 Subject: [PATCH] Include mono repo plugins in build --- clean.js | 4 +++- package.json | 3 ++- pnpm-workspace.yaml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clean.js b/clean.js index f7d0a0e5..1a94d74d 100644 --- a/clean.js +++ b/clean.js @@ -12,7 +12,9 @@ const fs = require("fs-extra"); const yargs = require("yargs"); const npmPackage = require("./package.json"); -const workspaces = npmPackage.workspaces.map(p => p.slice(0, -2)); +const workspaces = npmPackage.workspaces + .map(p => p.slice(0, -2)) + .filter(p => !p.includes("external_plugins")); let DRY = false; diff --git a/package.json b/package.json index 985bbc79..34397619 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "workspaces": [ "packages/*", "plugins/*", - "external_plugins/*" + "external_plugins/*", + "external_plugins/*/*" ], "devDependencies": { "@clusterio/controller": "workspace:*", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a74adfca..fd9fdcd3 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,4 +2,5 @@ packages: - "packages/*" - "plugins/*" - "external_plugins/*" + - "external_plugins/*/*" - "test/"