diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f43e6cc5..e1ca2138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,9 +38,9 @@ jobs: ${{ runner.OS }}- - name: Install Dependencies run: yarn install --frozen-lockfile - - name: Lint files - run: yarn lint - name: Generate assets run: yarn build + - name: Lint files + run: yarn lint - name: Test run: yarn test diff --git a/package.json b/package.json index c3d33d22..6b26406b 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "typescript": "4.1.3" }, "engines": { - "node": ">=10.0.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15 || ^16.10" }, "resolutions": { "@semantic-release/changelog": "5.0.1", diff --git a/test/smoke/node-version.test.ts b/test/smoke/node-version.test.ts new file mode 100644 index 00000000..9144ba78 --- /dev/null +++ b/test/smoke/node-version.test.ts @@ -0,0 +1,13 @@ +describe('Node Version validation', () => { + it(`Can require install in Node ${process.versions.node}`, () => { + require('../../lib/commands/install'); + }); + + it(`Can require update in Node ${process.versions.node}`, () => { + require('../../lib/commands/update'); + }); + + it(`Can require use in Node ${process.versions.node}`, () => { + require('../../lib/commands/use'); + }); +}); diff --git a/tsconfig.json b/tsconfig.json index e02b2e25..d40be526 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ ], "types": ["jest", "node", "execa"], "strict": true, - "target": "es2017" + "target": "ES2015" }, "include": [ "./src/**/*"