Skip to content

Commit

Permalink
back to module.js, RN bundler will not pickup .mjs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Sep 19, 2017
1 parent c26b684 commit 66d40e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ node_modules
*.log
lib
coverage
mobx-utils.mjs
mobx-utils.module.js
mobx-utils.umd.js
.idea
/.test-ts/
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 3.2.0

* Switched to rollup for bundling, bundle non-minified and include a `.mjs` modern build. See [#81](https://github.com/mobxjs/mobx-utils/pull/81) by [@mijay](https://github.com/mijay)
* Switched to rollup for bundling, bundle non-minified and include a es module based build. See [#81](https://github.com/mobxjs/mobx-utils/pull/81) by [@mijay](https://github.com/mijay)

# 3.1.1
* Introduced `whenAsync`, which is like normal `when`, except that this `when` will return a promise that resolves when the expression becomes truthy. See #66 and #68, by @daedalus28
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "mobx-utils",
"version": "3.1.1",
"version": "3.2.0-rc.3",
"description": "Utility functions and common patterns for MobX",
"main": "mobx-utils.umd.js",
"module": "mobx-utils.mjs",
"module": "mobx-utils.module.js",
"typings": "lib/mobx-utils.d.ts",
"scripts": {
"build": "tsc -p src && rollup lib/mobx-utils.js -e mobx -g mobx:mobx -o mobx-utils.umd.js -f umd --name mobxUtils && rollup lib/mobx-utils.js -e mobx -o mobx-utils.mjs -f es",
"build": "tsc -p src && rollup lib/mobx-utils.js -e mobx -g mobx:mobx -o mobx-utils.umd.js -f umd --name mobxUtils && rollup lib/mobx-utils.js -e mobx -o mobx-utils.module.js -f es",
"test": "npm run build && tsc -p test && tape test/*.js .test-ts/*.js | faucet",
"lint:js": "eslint ./test",
"lint:ts": "tslint ./src/*.ts",
Expand All @@ -26,7 +26,8 @@
},
"files": [
"lib/",
"mobx-utils.umd.js"
"mobx-utils.umd.js",
"mobx-utils.module.js"
],
"devDependencies": {
"@types/tape": "^4.2.30",
Expand Down

0 comments on commit 66d40e0

Please sign in to comment.