Skip to content

Commit

Permalink
chore(documentation): switch from optional- to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschuerch committed Jan 31, 2024
1 parent 1be7aed commit a467b63
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
10 changes: 9 additions & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,16 @@
"storybook": "7.6.10",
"typescript": "5.1.6"
},
"optionalDependencies": {
"peerDependencies": {
"@swisspost/design-system-components-angular": "workspace:0.0.12",
"@swisspost/design-system-intranet-header": "workspace:5.0.7"
},
"peerDependenciesMeta": {
"@swisspost/design-system-components-angular": {
"optional": true
},
"@swisspost/design-system-intranet-header": {
"optional": true
}
}
}
2 changes: 1 addition & 1 deletion packages/documentation/src/utils/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const DEPENCENCIES: any = {
[packageJson.name]: packageJson.version,
...packageJson.dependencies,
...packageJson.devDependencies,
...packageJson.optionalDependencies,
...packageJson.peerDependencies,
};

const versionFilterRegexes: any = {
Expand Down
13 changes: 6 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a467b63

Please sign in to comment.