Skip to content

Commit

Permalink
feat: add Node.js ESM entry point with named and default exports (#1340)
Browse files Browse the repository at this point in the history
* add Node.js ESM entry point with named and default exports

* ensure that deep importing works
  • Loading branch information
Gil Tayar committed Jun 9, 2020
1 parent 2fb8983 commit e08ca08
Show file tree
Hide file tree
Showing 7 changed files with 519 additions and 373 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_js:
- 8 # to be removed 2019-12-31
- 10 # to be removed 2021-04-31
- 12 # to be removed 2022-04-31
- 14 # to be removed 2023-04-31
- lts/* # safety net; don't remove
- node # safety net; don't remove

Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@

NODE_MAJOR_VERSION := $(firstword $(subst ., ,$(shell node --version)))

ifeq ($(NODE_MAJOR_VERSION),v8)
TESTS = test/*.js
else ifeq ($(NODE_MAJOR_VERSION),v10)
TESTS = test/*.js
else ifeq ($(NODE_MAJOR_VERSION),v12)
TESTS = test/*.js
else
TESTS = test/*.js test/*.mjs
endif

REPORTER = dot

#
Expand Down
Loading

0 comments on commit e08ca08

Please sign in to comment.