From 92358f94c01bcd84f7d3f4ce01936e05a77d9916 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Fri, 27 Oct 2023 10:27:11 +0100 Subject: [PATCH] Move private workspace packages to `devDependencies` Unlike npm, yarn is not happy unless `optionalDependencies` are published --- package-lock.json | 10 ++++------ packages/govuk-frontend/package.json | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6f7cb58683..1d1f9f1c6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30386,6 +30386,10 @@ "devDependencies": { "@babel/core": "^7.23.2", "@babel/preset-env": "^7.23.2", + "@govuk-frontend/config": "*", + "@govuk-frontend/helpers": "*", + "@govuk-frontend/lib": "*", + "@govuk-frontend/tasks": "*", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-replace": "^5.0.4", "@rollup/plugin-terser": "^0.4.4", @@ -30409,12 +30413,6 @@ }, "engines": { "node": ">= 4.2.0" - }, - "optionalDependencies": { - "@govuk-frontend/config": "*", - "@govuk-frontend/helpers": "*", - "@govuk-frontend/lib": "*", - "@govuk-frontend/tasks": "*" } }, "packages/govuk-frontend-review": { diff --git a/packages/govuk-frontend/package.json b/packages/govuk-frontend/package.json index eef87038a8..610015feef 100644 --- a/packages/govuk-frontend/package.json +++ b/packages/govuk-frontend/package.json @@ -61,6 +61,10 @@ "version": "echo $npm_package_version" }, "devDependencies": { + "@govuk-frontend/config": "*", + "@govuk-frontend/helpers": "*", + "@govuk-frontend/lib": "*", + "@govuk-frontend/tasks": "*", "@babel/core": "^7.23.2", "@babel/preset-env": "^7.23.2", "@rollup/plugin-babel": "^6.0.4", @@ -83,11 +87,5 @@ "sass-embedded": "^1.69.4", "sassdoc": "^2.7.4", "slash": "^5.1.0" - }, - "optionalDependencies": { - "@govuk-frontend/config": "*", - "@govuk-frontend/helpers": "*", - "@govuk-frontend/lib": "*", - "@govuk-frontend/tasks": "*" } }