Skip to content

Commit 855ebf5

Browse files
committed
The module field in package.json should point to src/index.mjs
Also rename the UMD dist file to /index.js.
1 parent 80a2ace commit 855ebf5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
2-
cached-iterable.js
2+
index.js
33
compat.js

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ test:
2222
--require mocha_config \
2323
test/**/*_test.js
2424

25-
build: $(PACKAGE).js compat.js
25+
build: index.js compat.js
2626

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

4545
clean:
46-
@rm -f $(PACKAGE).js compat.js
46+
@rm -f index.js compat.js
4747
@echo -e " $(OK) clean"

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"directories": {
1818
"lib": "./src"
1919
},
20-
"main": "./cached-iterable.js",
21-
"module": "./src/index.js",
20+
"main": "./index.js",
21+
"module": "./src/index.mjs",
2222
"repository": {
2323
"type": "git",
2424
"url": "https://github.com/projectfluent/cached-iterable.git"

0 commit comments

Comments
 (0)