summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-06-11 09:03:06 -0400
committerGravatar GitHub <noreply@github.com> 2021-06-11 09:03:06 -0400
commitce9336115e8e3b54a534224ebddc6ad9f89c12dc (patch)
tree40caa7d905e477015146177cfcb5475994e8b70c
parentcc5d000fdc15446bd9562a2166996b8065f1b054 (diff)
downloadastro-ce9336115e8e3b54a534224ebddc6ad9f89c12dc.tar.gz
astro-ce9336115e8e3b54a534224ebddc6ad9f89c12dc.tar.zst
astro-ce9336115e8e3b54a534224ebddc6ad9f89c12dc.zip
Document the minimum node version (#379)
* Document the minimum node version * Adds the changeset
-rw-r--r--.changeset/eleven-zebras-care.md5
-rw-r--r--package.json3
-rw-r--r--packages/astro/README.md2
3 files changed, 10 insertions, 0 deletions
diff --git a/.changeset/eleven-zebras-care.md b/.changeset/eleven-zebras-care.md
new file mode 100644
index 000000000..13f121bd1
--- /dev/null
+++ b/.changeset/eleven-zebras-care.md
@@ -0,0 +1,5 @@
+---
+'astro': minor
+---
+
+Set the minimum Node version in the engines field
diff --git a/package.json b/package.json
index d2535653a..fbe3c8067 100644
--- a/package.json
+++ b/package.json
@@ -49,5 +49,8 @@
"tiny-glob": "^0.2.8",
"typescript": "^4.2.4",
"uvu": "^0.5.1"
+ },
+ "engines": {
+ "node": ">=14.16.1"
}
}
diff --git a/packages/astro/README.md b/packages/astro/README.md
index 4480b4844..f2a119306 100644
--- a/packages/astro/README.md
+++ b/packages/astro/README.md
@@ -10,6 +10,8 @@ With Astro, you can use your favorite JavaScript framework and automatically shi
## 🔧 Quick Start
+> __Important__: Astro is built with [ESM modules](https://nodejs.org/api/esm.html) which are not supported in older version of Node.js. The minimum supported version is __14.16.1__.
+
```bash
# create your project
mkdir new-project-directory