diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bf58bf0..ccbcc0a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: Setup node uses: actions/setup-node@v1 with: - node-version: 6 + node-version: 10 - name: Install dev dependencies run: | npm install diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 618a4b8..1745400 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - node: [14, 12, 10, 8, 6] + node: [14, 12, 10] steps: - name: Setup repo uses: actions/checkout@v2 diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml index 7f685f4..add7ebc 100644 --- a/.github/workflows/test-ubuntu.yml +++ b/.github/workflows/test-ubuntu.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - node: [14, 12, 10, 8, 6] + node: [14, 12, 10] steps: - name: Setup repo uses: actions/checkout@v2 diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 0d48853..6879b3f 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - node: [14, 12, 10, 8, 6] + node: [14, 12, 10] steps: - name: Setup repo uses: actions/checkout@v2 diff --git a/package.json b/package.json index 85adbee..f7a2c20 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "index.js" ], "engines": { - "node": ">=6" + "node": ">=10" }, "scripts": { "lint": "xo", @@ -60,9 +60,9 @@ }, "devDependencies": { "@turf/helpers": "^6.1.4", - "ava": "^1.4.1", - "nyc": "^14.1.1", - "xo": "~0.24.0" + "ava": "^3.9.0", + "nyc": "^15.1.0", + "xo": "~0.27.2" }, "ava": { "verbose": true diff --git a/test/line-in-line.js b/test/line-in-line.js index 725bffe..3525664 100644 --- a/test/line-in-line.js +++ b/test/line-in-line.js @@ -1,8 +1,8 @@ -import test from 'ava'; +const test = require('ava'); -import {lineString, featureCollection} from '@turf/helpers'; +const {lineString, featureCollection} = require('@turf/helpers'); -import M from '..'; +const M = require('..'); test('exports a constructor.', t => { t.is(typeof M, 'function'); diff --git a/test/line-in-polygon.js b/test/line-in-polygon.js index 5e11dfe..b2c8024 100644 --- a/test/line-in-polygon.js +++ b/test/line-in-polygon.js @@ -1,8 +1,8 @@ -import test from 'ava'; +const test = require('ava'); -import {lineString, polygon, featureCollection} from '@turf/helpers'; +const {lineString, polygon, featureCollection} = require('@turf/helpers'); -import M from '..'; +const M = require('..'); test('exports a constructor.', t => { t.is(typeof M, 'function'); diff --git a/test/point-in-line.js b/test/point-in-line.js index ca8246a..028dc80 100644 --- a/test/point-in-line.js +++ b/test/point-in-line.js @@ -1,8 +1,8 @@ -import test from 'ava'; +const test = require('ava'); -import {point, lineString, featureCollection} from '@turf/helpers'; +const {point, lineString, featureCollection} = require('@turf/helpers'); -import M from '..'; +const M = require('..'); test('exports a constructor.', t => { t.is(typeof M, 'function'); diff --git a/test/point-in-point.js b/test/point-in-point.js index 37716b1..8f945d7 100644 --- a/test/point-in-point.js +++ b/test/point-in-point.js @@ -1,8 +1,8 @@ -import test from 'ava'; +const test = require('ava'); -import {point, featureCollection} from '@turf/helpers'; +const {point, featureCollection} = require('@turf/helpers'); -import M from '..'; +const M = require('..'); test('exports a constructor.', t => { t.is(typeof M, 'function'); diff --git a/test/point-in-polygon.js b/test/point-in-polygon.js index 03ef0eb..5f05307 100644 --- a/test/point-in-polygon.js +++ b/test/point-in-polygon.js @@ -1,8 +1,8 @@ -import test from 'ava'; +const test = require('ava'); -import {point, polygon, featureCollection} from '@turf/helpers'; +const {point, polygon, featureCollection} = require('@turf/helpers'); -import M from '..'; +const M = require('..'); test('exports a constructor.', t => { t.is(typeof M, 'function'); diff --git a/test/polygon-in-polygon.js b/test/polygon-in-polygon.js index 381d359..455e937 100644 --- a/test/polygon-in-polygon.js +++ b/test/polygon-in-polygon.js @@ -1,8 +1,8 @@ -import test from 'ava'; +const test = require('ava'); -import {polygon, featureCollection} from '@turf/helpers'; +const {polygon, featureCollection} = require('@turf/helpers'); -import M from '..'; +const M = require('..'); test('exports a constructor.', t => { t.is(typeof M, 'function');