From 75bfc019aa90da253e0f891faa44687aa96d462a Mon Sep 17 00:00:00 2001 From: Drew Powers <1369770+drwpow@users.noreply.github.com> Date: Wed, 26 May 2021 14:17:50 -0600 Subject: [PATCH] Fix npm init astro for npm v7 (#257) Fixes #183 --- .changeset/forty-forks-destroy.md | 5 +++++ packages/create-astro/package.json | 2 +- yarn.lock | 11 ++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .changeset/forty-forks-destroy.md diff --git a/.changeset/forty-forks-destroy.md b/.changeset/forty-forks-destroy.md new file mode 100644 index 000000000..69257f8cb --- /dev/null +++ b/.changeset/forty-forks-destroy.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Bugfix: `npm init astro` on npm v7 diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 659bd66a5..176edd811 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -23,7 +23,7 @@ "ink": "^3.0.8", "ink-select-input": "^4.2.0", "ink-text-input": "^4.0.1", - "react": "~17.0.2", + "react": "^16.14.0", "source-map-support": "^0.5.19" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index a8d0416c1..710b8b61b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8392,7 +8392,16 @@ react-reconciler@^0.24.0: prop-types "^15.6.2" scheduler "^0.18.0" -react@^17.0.1, react@~17.0.2: +react@^16.14.0: + version "16.14.0" + resolved "https://registry.yarnpkg.com/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d" + integrity sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + +react@^17.0.1: version "17.0.2" resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==