urbit-ob

JavaScript utilities for phonemic base wrangling.
Log | Files | Refs | README

commit c7e87cc8b45f1e3532d0244d59a7253aa4e21358
parent 402c41634f1e7f1f29a1b261e81f127df5d16d78
Author: Jared Tobin <jared@jtobin.io>
Date:   Mon,  9 Sep 2019 14:18:40 -0230

Merge pull request #30 from urbit/jt-browser-field

Patch up browser spec and bundle
Diffstat:
MCHANGELOG | 7+++++++
Mpackage-lock.json | 2+-
Mpackage.json | 6++----
Mrollup.config.js | 3++-
4 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,5 +1,12 @@ # Changelog +- 4.1.3 (2019-09-09) + * Further fixes to the 'browser' specification. Uses the single-line + spec outlined in [1] that simply provides an entry point hint for + builders. + + [1]: https://github.com/defunctzombie/package-browser-field-spec + - 4.1.2 (2019-09-05) * Reverts change that likely caused the 'browser' specification in package.json to break. diff --git a/package-lock.json b/package-lock.json @@ -1,6 +1,6 @@ { "name": "urbit-ob", - "version": "4.1.1", + "version": "4.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json @@ -1,12 +1,10 @@ { "name": "urbit-ob", - "version": "4.1.2", + "version": "4.1.3", "license": "MIT", "description": "Utilities for Hoon-style atom printing and conversion", "main": "src/index.js", - "browser": { - "src/index.js": "dist/index.js" - }, + "browser": "./dist/index.js", "scripts": { "build": "mkdir -p dist && rollup -c rollup.config.js", "test": "nyc mocha --reporter spec", diff --git a/rollup.config.js b/rollup.config.js @@ -7,7 +7,8 @@ export default { input: 'src/index.js', output: { file: 'dist/index.js', - format: 'cjs', + format: 'umd', + name: "urbit-ob", exports: 'named' }, plugins: [