From d96902c3f1575b4de726a64e22076536b20e0a5a Mon Sep 17 00:00:00 2001 From: akash1810 Date: Tue, 4 Apr 2023 20:22:51 +0100 Subject: [PATCH] refactor(deps): Update `@sdc/shared` install method 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 - https://github.com/guardian/.github/pull/49 --- packages/modules/package.json | 2 +- packages/server/package.json | 2 +- yarn.lock | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/modules/package.json b/packages/modules/package.json index 801bbda49..3a2ed01dd 100644 --- a/packages/modules/package.json +++ b/packages/modules/package.json @@ -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", diff --git a/packages/server/package.json b/packages/server/package.json index 9698194c8..b2ec8b91e 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 354efcd8b..a18fbe54e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"