From 32c9c65c6f61aa53158b0515fa07ef1df9e2ed69 Mon Sep 17 00:00:00 2001
From: Kara Brightwell <kara@153.io>
Date: Thu, 25 Jul 2024 12:19:17 +0100
Subject: [PATCH] build: inherit volta config from root

---
 plugins/monorepo/package.json | 3 +++
 scripts/create-plugin.js      | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/plugins/monorepo/package.json b/plugins/monorepo/package.json
index e82e23505..6b4aea759 100644
--- a/plugins/monorepo/package.json
+++ b/plugins/monorepo/package.json
@@ -24,6 +24,9 @@
     "node": "18.x || 20.x",
     "npm": "7.x || 8.x || 9.x"
   },
+  "volta": {
+    "extends": "../../package.json"
+  },
   "peerDependencies": {
     "dotcom-tool-kit": "4.0.0-beta.5"
   },
diff --git a/scripts/create-plugin.js b/scripts/create-plugin.js
index f33e804ed..d0339f1a3 100755
--- a/scripts/create-plugin.js
+++ b/scripts/create-plugin.js
@@ -38,6 +38,9 @@ pkg.engines = {
   node: '18.x || 20.x',
   npm: '7.x || 8.x || 9.x'
 }
+pkg.volta = {
+  extends: '../../package.json'
+}
 pkg.peerDependencies = {
   'dotcom-tool-kit': '3.x'
 }