Skip to content

Commit

Permalink
revert import assertion, lock CI test to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Mar 8, 2022
1 parent ed72e5a commit bbe21f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
# 16.14+ requires import assertions for *.json imports, but this causes
# syntax errors on older node versions so we're locking CI to 16.13 for
# now
node-version: [10.x, 12.x, 14.x, 16.13]

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion examples/node-esmodules/example.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
version as uuidVersion,
} from 'uuid';
import * as uuid from 'uuid';
import pkg from 'uuid/package.json' assert {type: 'json'};
import pkg from 'uuid/package.json';

console.log('uuidv1()', uuidv1());

Expand Down

0 comments on commit bbe21f4

Please sign in to comment.