Skip to content

Commit

Permalink
fix: work in node 10 (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: lshadler <lucas_shadler@intuit.com>
  • Loading branch information
sumwatshade and lshadler committed Sep 27, 2021
1 parent 8f988f1 commit 1b01541
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions test/smoke/node-version.test.ts
Original file line number Diff line number Diff line change
@@ -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');
});
});
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"types": ["jest", "node", "execa"],
"strict": true,
"target": "es2017"
"target": "ES2015"
},
"include": [
"./src/**/*"
Expand Down

0 comments on commit 1b01541

Please sign in to comment.