chore: replace legacy package.json workspaces.packages by workspaces

Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
Gabriel Dugny
2026-01-29 09:03:19 +01:00
parent 679e08b78c
commit ebd4630702
5 changed files with 34 additions and 24 deletions
+18
View File
@@ -0,0 +1,18 @@
---
'@backstage/create-app': patch
---
Replace `package.json` deprecated `workspaces.packages` by `workspaces`
This change is **not** required, but you can edit your main `package.json`, to fit the more modern & more common pattern:
```diff
- "workspaces": {
- "packages": [
"workspaces": [
"packages/*",
"plugins/*"
- ]
- },
],
```
+4 -6
View File
@@ -55,12 +55,10 @@ defined in
[`package.json`](https://github.com/backstage/backstage/blob/master/package.json):
```json
"workspaces": {
"packages": [
"packages/*",
"plugins/*"
]
},
"workspaces": [
"packages/*",
"plugins/*"
],
```
Let's look at them individually.
+4 -6
View File
@@ -16,12 +16,10 @@
"type": "git",
"url": "https://github.com/backstage/backstage"
},
"workspaces": {
"packages": [
"packages/*",
"plugins/*"
]
},
"workspaces": [
"packages/*",
"plugins/*"
],
"scripts": {
"build-storybook": "storybook build --output-dir dist-storybook",
"build-storybook:chromatic": "STORYBOOK_STORY_SET=chromatic storybook build --stats-json --output-dir dist-storybook",
@@ -22,12 +22,10 @@
"prettier:check": "prettier --check .",
"new": "backstage-cli new"
},
"workspaces": {
"packages": [
"packages/*",
"plugins/*"
]
},
"workspaces": [
"packages/*",
"plugins/*"
],
"devDependencies": {
"@backstage/cli": "^{{version '@backstage/cli'}}",
"@backstage/e2e-test-utils": "^{{version '@backstage/e2e-test-utils'}}",
@@ -44,12 +44,10 @@
}
}
},
"workspaces": {
"packages": [
"packages/*",
"plugins/*"
]
},
"workspaces": [
"packages/*",
"plugins/*"
],
"devDependencies": {
"@backstage/cli": "^{{version '@backstage/cli'}}",
"@backstage/e2e-test-utils": "^{{version '@backstage/e2e-test-utils'}}",