Skip to content

Commit

Permalink
The module field in package.json should point to src/index.mjs
Browse files Browse the repository at this point in the history
Also rename the UMD dist file to /index.js.
  • Loading branch information
stasm committed Jul 24, 2018
1 parent 80a2ace commit 855ebf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
cached-iterable.js
index.js
compat.js
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ test:
--require mocha_config \
test/**/*_test.js

build: $(PACKAGE).js compat.js
build: index.js compat.js

$(PACKAGE).js: $(SOURCES)
index.js: $(SOURCES)
@rollup $(CURDIR)/src/index.mjs \
--config $(CURDIR)/bundle_config.js \
--banner "/* $(PACKAGE)@$(VERSION) */" \
Expand All @@ -43,5 +43,5 @@ compat.js: $(SOURCES)
@echo -e " $(OK) $@ built"

clean:
@rm -f $(PACKAGE).js compat.js
@rm -f index.js compat.js
@echo -e " $(OK) clean"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"directories": {
"lib": "./src"
},
"main": "./cached-iterable.js",
"module": "./src/index.js",
"main": "./index.js",
"module": "./src/index.mjs",
"repository": {
"type": "git",
"url": "https://github.com/projectfluent/cached-iterable.git"
Expand Down

0 comments on commit 855ebf5

Please sign in to comment.