Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix output paths for Webpack (#81)

authored by

Phil Plückthun and committed by
GitHub
7a512d14 c46db936

+6 -7
+4 -5
package.json
··· 4 4 "version": "4.0.8", 5 5 "author": "Phil Pluckthun <phil@kitten.sh>", 6 6 "source": "./src/Wonka.ts", 7 - "main": "./dist/wonka.js", 8 - "module": "./dist/wonka.esm.mjs", 9 - "jsnext:main": "./dist/wonka.es.js", 7 + "main": "./dist/wonka", 8 + "module": "./dist/wonka.mjs", 10 9 "types": "./dist/types/src/Wonka.d.ts", 11 10 "exports": { 12 11 ".": { 13 - "import": "./dist/wonka.esm.mjs", 14 - "require": "./dist/wonka.cjs.js", 12 + "import": "./dist/wonka.mjs", 13 + "require": "./dist/wonka.js", 15 14 "types": "./dist/types/src/Wonka.d.ts", 16 15 "source": "./src/Wonka.ts" 17 16 }
+1 -1
rollup.config.js
··· 203 203 legacy: true, 204 204 freeze: false, 205 205 esModule: false, 206 - file: `./dist/${name}.esm.mjs`, 206 + file: `./dist/${name}.mjs`, 207 207 format: 'esm' 208 208 } 209 209 ]
+1 -1
scripts/generate-flow-files.js
··· 31 31 entry = entry.replace(/.\/dist\//g, './'); 32 32 33 33 const outputCJS = path.resolve(cwd, 'dist/wonka.js.flow'); 34 - const outputES = path.resolve(cwd, 'dist/wonka.es.js.flow'); 34 + const outputES = path.resolve(cwd, 'dist/wonka.mjs.flow'); 35 35 36 36 return Promise.all([ 37 37 writeFile(outputCJS, entry, { encoding: 'utf8' }),