File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55// and update the version numbers to reflect the version from the top-level
66// dependencies list. Also throw an error if a dep is not declared top-level.
77// Also add necessary "browser" switches to each package.json, as well as
8- // other fields like "jsnext:main " and "files".
8+ // other fields like "module " and "files".
99
1010var fs = require ( 'fs' ) ;
1111var path = require ( 'path' ) ;
@@ -56,10 +56,10 @@ modules.forEach(function (mod) {
5656 './lib/index.es.js' : './lib/index-browser.es.js' ,
5757 } ;
5858 }
59- // Update "jsnext:main " to point to `lib/` rather than `src/`.
59+ // Update "module " to point to `lib/` rather than `src/`.
6060 // `src/` is only used for building, not publishing.
6161 // Also add "module" member: https://github.com/rollup/rollup/wiki/pkg.module
62- pkg [ 'jsnext:main' ] = pkg . module = './lib/index.es.js' ;
62+ pkg . module = './lib/index.es.js' ;
6363 // whitelist the files we'll actually publish
6464 pkg . files = [ 'lib' , 'dist' ] ;
6565
You can’t perform that action at this time.
0 commit comments