File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
test/validateModuleExportsMatchCommonJS Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 21
21
- name : Run tests
22
22
run : node ./test/runTests.js
23
23
24
+ - name : Run tests
25
+ run : node ./test/validateModuleExportsMatchCommonJS/index.js
26
+ if : matrix.node-version == '14.x'
Original file line number Diff line number Diff line change 1
- // When on node 14, it validates that all of the commonjs exports
1
+ // This file can only run on node 14+ , it validates that all of the commonjs exports
2
2
// are correctly re-exported for es modules importers.
3
3
4
- const nodeMajor = Number ( process . version . split ( "." ) [ 0 ] . slice ( 1 ) )
5
- if ( nodeMajor < 14 ) {
6
- console . log ( "Skipping because node does not support module exports." )
7
- process . exit ( 0 )
8
- }
9
-
10
4
// ES Modules import via the ./modules folder
11
5
import * as esTSLib from "../../modules/index.js"
12
6
You can’t perform that action at this time.
0 commit comments