Skip to content

Commit

Permalink
refactor(deps): Update @sdc/shared install method
Browse files Browse the repository at this point in the history
Install the shared module `@sdc/shared` with a local path.
This allows it to appear in the `yarn.lock` file.

See:
  - https://docs.npmjs.com/cli/v9/configuring-npm/package-json#local-paths
  - guardian/.github#49
  • Loading branch information
akash1810 committed Apr 4, 2023
1 parent 4e549ba commit d96902c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@guardian/src-layout": "3.8.0",
"@guardian/src-link": "3.8.0",
"@guardian/src-text-input": "3.8.0",
"@sdc/shared": "1.0.0",
"@sdc/shared": "file:../shared",
"@types/babel__standalone": "^7.1.2",
"preact": "^10.5.12",
"react-spring": "^9.5.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@sdc/shared": "1.0.0",
"@sdc/shared": "file:../shared",
"amp-toolbox-cors": "^1.2.0-alpha.2",
"aws-sdk": "^2.862.0",
"compression": "1.7.4",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3448,6 +3448,11 @@
dependencies:
any-observable "^0.3.0"

"@sdc/shared@file:packages/shared":
version "1.0.0"
dependencies:
zod "^3.2.0"

"@sindresorhus/is@^0.14.0":
version "0.14.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
Expand Down

0 comments on commit d96902c

Please sign in to comment.