Skip to content

Commit 06170b6

Browse files
authored
replace the last occurrence of jsnext:main (#8663)
1 parent 1cfbadc commit 06170b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/update-package-json-for-publish.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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

1010
var fs = require('fs');
1111
var 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

0 commit comments

Comments
 (0)