Skip to content

Commit

Permalink
feat: add examples as a workspace folder
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed Dec 28, 2023
1 parent 270e60d commit 81d8de1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
"examples/*",
"fixtures/*",
"libs/*",
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/autotool-plugin-workspace/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
{
Expand Down
5 changes: 3 additions & 2 deletions packages/autotool-plugin-workspace/static/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# managed-by-autotool
packages:
- 'packages/*'
- 'fixtures/*'
- 'apps/*'
- 'examples/*'
- 'fixtures/*'
- 'libs/*'
- 'packages/*'
link-workspace-packages: 'deep'
5 changes: 3 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# managed-by-autotool
packages:
- 'packages/*'
- 'fixtures/*'
- 'apps/*'
- 'examples/*'
- 'fixtures/*'
- 'libs/*'
- 'packages/*'
link-workspace-packages: 'deep'

0 comments on commit 81d8de1

Please sign in to comment.