Skip to content

Commit 524e0db

Browse files
authored
Add support for node 12.x (#42)
1 parent 3834d28 commit 524e0db

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 1
1717
- uses: actions/setup-node@v2-beta
1818
with:
19-
node-version: '14.x'
19+
node-version: '12.x'
2020
- name: Install Dependencies
2121
run: yarn install --frozen-lockfile
2222
- name: Lint
@@ -32,7 +32,7 @@ jobs:
3232
fetch-depth: 1
3333
- uses: actions/setup-node@v2-beta
3434
with:
35-
node-version: '14.x'
35+
node-version: '12.x'
3636
- name: Install Dependencies
3737
run: yarn install --frozen-lockfile
3838
- name: Test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"typescript": "^4.1.2"
4747
},
4848
"engines": {
49-
"node": ">=14"
49+
"node": "12.x || >=14"
5050
},
5151
"publishConfig": {
5252
"registry": "https://registry.npmjs.org"

tests/acceptance/creates-github-actions.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import execa from 'execa';
22
import fs from 'fs';
3-
import { mkdtemp, readFile, rmdir } from 'fs/promises';
3+
import { promises as fsPromises } from 'fs';
44
import os from 'os';
55
import path from 'path';
66
import { prepareFixtures } from '../utils/fixtures';
77

8+
// import directly from fs/promises when dropping node 12 support
9+
const { mkdtemp, readFile, rmdir } = fsPromises;
10+
811
const executable = path.join(
912
__dirname,
1013
'..',

0 commit comments

Comments
 (0)