Skip to content

Commit c93f5cd

Browse files
Merge pull request #119 from davidchambers/avaq/node-12
Support Node 12
2 parents 5d7fe83 + 4b4b128 commit c93f5cd

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "6"
54
- "8"
65
- "9"
76
- "10"
7+
- "12"
88
before_install:
99
- git fetch origin refs/heads/master:refs/heads/master
1010
- if [[ "$TRAVIS_PULL_REQUEST_BRANCH" ]] ; then git checkout -b "$TRAVIS_PULL_REQUEST_BRANCH" ; fi

bin/doctest

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ require ('child_process')
1414
process.execPath,
1515
[].concat (esmSupported ? ['--experimental-modules'] : [])
1616
.concat (flags ? args[idx + 1].split (/\s+/) : [])
17-
.concat (['--', path.resolve (__dirname, '..', 'lib', 'command')])
17+
.concat (['--',
18+
path.resolve (__dirname,
19+
'..',
20+
'lib',
21+
'command' + (esmSupported ? '.mjs' : '.js'))])
1822
.concat (flags ? (args.slice (0, idx)).concat (args.slice (idx + 2))
1923
: args),
2024
{cwd: process.cwd (), env: process.env, stdio: [0, 1, 2]}

lib/command.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import common from './common';
2-
import program from './program';
3-
import doctest from '..';
1+
import common from './common.js';
2+
import doctest from './doctest.mjs';
3+
import program from './program.js';
44

55
common.runDoctests (doctest, program);

lib/doctest.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs';
22
import pathlib from 'path';
33
import util from 'util';
44

5-
import common from './common';
5+
import common from './common.js';
66
import doctest from './doctest.js';
77

88

0 commit comments

Comments
 (0)