Skip to content

Commit

Permalink
Require Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 2, 2024
1 parent 4fc728f commit 7d6ca98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ jobs:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
"description": "My awesome module",
"license": "MIT",
"repository": "YOUR-GITHUB-USERNAME/unicorn-fun",
"funding": "https://github.com/sponsors/YOUR-GITHUB-USERNAME",
"author": {
"name": "YOUR NAME",
"email": "YOUR EMAIL",
"url": "YOUR WEBSITE"
},
"type": "module",
"exports": "./index.js",
"sideEffects": false,
"engines": {
"node": ">=16"
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -26,7 +28,7 @@
],
"dependencies": {},
"devDependencies": {
"ava": "^5.3.0",
"xo": "^0.54.2"
"ava": "^6.1.2",
"xo": "^0.58.0"
}
}
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Alternatively, create a new directory and then run:
curl -fsSL https://github.com/sindresorhus/node-module-boilerplate/archive/main.tar.gz | tar -xz --strip-components=1
```

There's also a [Yeoman generator](https://github.com/sindresorhus/generator-nm).

---

**Remove everything from here and above**
Expand Down

0 comments on commit 7d6ca98

Please sign in to comment.