From 81d8de1eb23091a9e11afda1fc59d11bc686b431 Mon Sep 17 00:00:00 2001 From: AlexAegis Date: Thu, 28 Dec 2023 21:43:56 +0100 Subject: [PATCH] feat: add examples as a workspace folder --- package.json | 1 + packages/autotool-plugin-workspace/src/index.ts | 2 +- .../autotool-plugin-workspace/static/pnpm-workspace.yaml | 5 +++-- pnpm-workspace.yaml | 5 +++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a3907e0a..e8a68347 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "packageManager": "pnpm@8.13.1", "workspaces": [ "apps/*", + "examples/*", "fixtures/*", "libs/*", "packages/*" diff --git a/packages/autotool-plugin-workspace/src/index.ts b/packages/autotool-plugin-workspace/src/index.ts index 06243d50..adc7887b 100644 --- a/packages/autotool-plugin-workspace/src/index.ts +++ b/packages/autotool-plugin-workspace/src/index.ts @@ -37,7 +37,7 @@ export const plugin: AutotoolPlugin = (_options): AutotoolPluginObject => { pnpm: '>=8.0.0', }, packageManager: rootPackageJson.packageManager, - workspaces: ['apps/*', 'libs/*', 'packages/*', 'fixtures/*'], // Some tools like typedoc will only read this field even through the same information is defined in the pnpm-workspace.yaml + workspaces: ['apps/*', 'examples/*', 'fixtures/*', 'libs/*', 'packages/*'], // Some tools like typedoc will only read this field even though the same information is defined in pnpm-workspace.yaml }, }, { diff --git a/packages/autotool-plugin-workspace/static/pnpm-workspace.yaml b/packages/autotool-plugin-workspace/static/pnpm-workspace.yaml index 7e06e3a2..dc7c6003 100644 --- a/packages/autotool-plugin-workspace/static/pnpm-workspace.yaml +++ b/packages/autotool-plugin-workspace/static/pnpm-workspace.yaml @@ -1,7 +1,8 @@ # managed-by-autotool packages: - - 'packages/*' - - 'fixtures/*' - 'apps/*' + - 'examples/*' + - 'fixtures/*' - 'libs/*' + - 'packages/*' link-workspace-packages: 'deep' diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 7e06e3a2..dc7c6003 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,7 +1,8 @@ # managed-by-autotool packages: - - 'packages/*' - - 'fixtures/*' - 'apps/*' + - 'examples/*' + - 'fixtures/*' - 'libs/*' + - 'packages/*' link-workspace-packages: 'deep'