Skip to content

Commit b53fce6

Browse files
committed
Update - make the ES5 version as main entry
1 parent 9df5fa4 commit b53fce6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ node_modules
3131

3232
# Optional REPL history
3333
.node_repl_history
34+
35+
# Remove dist folder
36+
dist

Diff for: package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "immutable-ext",
33
"version": "1.1.2",
44
"description": "fantasyland compatible extensions",
5-
"main": "index.js",
5+
"main": "dist/index.js",
66
"engines": {
77
"node": ">=6.2.0"
88
},
@@ -13,13 +13,17 @@
1313
"immutable": "*"
1414
},
1515
"devDependencies": {
16-
"immutable": "*",
16+
"babel-cli": "^6.24.1",
17+
"babel-preset-es2015": "^6.24.1",
1718
"daggy": "^0.0.1",
1819
"fantasy-identities": "^0.0.1",
20+
"immutable": "*",
1921
"mocha": "^2.4.5"
2022
},
2123
"scripts": {
22-
"test": "mocha --watch test/**.js"
24+
"test": "mocha --watch test/**.js",
25+
"compile": "babel --presets es2015 -d dist/ ./index.js",
26+
"prepublish": "npm run compile"
2327
},
2428
"keywords": [
2529
"functional",

0 commit comments

Comments
 (0)