diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cdee4cacf..7328d471e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: [push, pull_request] env: - NODE_VERSION_USED_FOR_DEVELOPMENT: 14 + NODE_VERSION_USED_FOR_DEVELOPMENT: 16 jobs: lint: name: Lint source files @@ -139,7 +139,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version_to_setup: [12, 14, 15] + node_version_to_setup: [12, 14, 15, 16] steps: - name: Checkout repo uses: actions/checkout@v2 diff --git a/integrationTests/node/package.json b/integrationTests/node/package.json index b828be9e43..f82e25810d 100644 --- a/integrationTests/node/package.json +++ b/integrationTests/node/package.json @@ -7,6 +7,7 @@ "graphql": "file:../graphql.tgz", "node-12": "npm:node@12.x.x", "node-14": "npm:node@14.x.x", - "node-15": "npm:node@15.x.x" + "node-15": "npm:node@15.x.x", + "node-16": "npm:node@16.x.x" } } diff --git a/package.json b/package.json index 3f5815bc2d..1c445dd54d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "graphql-js" ], "engines": { - "node": "^12.20.0 || ^14.15.0 || >= 15.9.0" + "node": "^12.20.0 || ^14.15.0 || ^15.9.0 || >=16.0.0" }, "scripts": { "preversion": ". ./resources/checkgit.sh && npm ci", diff --git a/resources/build-deno.js b/resources/build-deno.js index 357879e2f0..83c352b01b 100644 --- a/resources/build-deno.js +++ b/resources/build-deno.js @@ -13,7 +13,7 @@ const prettierConfig = JSON.parse( ); if (require.main === module) { - fs.rmdirSync('./denoDist', { recursive: true, force: true }); + fs.rmSync('./denoDist', { recursive: true, force: true }); fs.mkdirSync('./denoDist'); const srcFiles = readdirRecursive('./src', { ignoreDir: /^__.*__$/ });