diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 7255fd3..53c5184 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,11 +9,11 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 13.x] + node-version: [18, 16, 14] os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: diff --git a/package.json b/package.json index 63e6bdd..41aecd1 100644 --- a/package.json +++ b/package.json @@ -3,14 +3,15 @@ "version": "6.1.0", "description": "A cacheable dns.lookup(…) that respects TTL", "engines": { - "node": ">=10.6.0" + "node": ">=14.16" }, "files": [ "source", "index.d.ts" ], - "main": "source/index.js", - "types": "index.d.ts", + "type": "module", + "exports": "./source/index.js", + "types": "./index.d.ts", "scripts": { "test": "xo && nyc --reporter=lcovonly --reporter=text ava && tsd" },