Skip to content

Commit

Permalink
Require Node.js 12 and move to ESM (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
LitoMore and sindresorhus committed Apr 27, 2021
1 parent 5400b66 commit 05320ac
Show file tree
Hide file tree
Showing 14 changed files with 254 additions and 261 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -10,12 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
4 changes: 1 addition & 3 deletions estest/index.js
@@ -1,6 +1,4 @@
import {createRequire} from 'module';

const meow = createRequire(import.meta.url)('../index.js');
import meow from '../index.js';

meow(`
Usage
Expand Down

0 comments on commit 05320ac

Please sign in to comment.