diff --git a/README.md b/README.md index c010740e..ebf61f74 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Fluture is written as modular JavaScript. ```js import {readFile} from 'fs' -import {node, encase, chain, map, fork} from 'fluture/index.js' +import {node, encase, chain, map, fork} from 'fluture' const getPackageName = file => ( node (done => { readFile (file, 'utf8', done) }) diff --git a/package.json b/package.json index d51418e4..6a1dc0d0 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "type": "module", "types": "index.d.ts", "module": "index.js", + "exports": { + "require": "./index.cjs", + "import": "./index.js" + }, "files": [ "src", "index.cjs",