Skip to content

Commit ea55ed0

Browse files
committed
Rename .js things that should be treated as ES6 modules to .jsm.
...so Node will load them as such.
1 parent 73c58aa commit ea55ed0

23 files changed

+2
-2
lines changed
File renamed without changes.

examples/readability.js renamed to examples/readability.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
* over, loosening constraints each time, if it fails
1616
* * Happily finds body text in things other than divs and p tags.
1717
*/
18+
import {argv} from 'process';
1819
import {readFileSync} from 'fs';
1920
import {dirname, join} from 'path';
2021

2122
import leven from 'leven';
2223

2324
import {dom, props, out, rule, ruleset, score, type} from '../index';
25+
import {Annealer} from '../optimizers';
2426
import {domSort, inlineTextLength, linkDensity, staticDom} from '../utils';
2527

2628

@@ -217,8 +219,6 @@ function readabilityDocPairs() {
217219
if (require.main === module) {
218220
// By default, just run the Readability examples and show how our current
219221
// coefficients score on them.
220-
import {Annealer} from '../optimizers';
221-
import {argv} from 'process';
222222

223223
let coeffs = [1.5, 4.5, 2, 6.5, 2, 0.5, 0];
224224

File renamed without changes.

fnode.js renamed to fnode.mjs

File renamed without changes.

index.js renamed to index.mjs

File renamed without changes.

lhs.js renamed to lhs.mjs

File renamed without changes.
File renamed without changes.

rhs.js renamed to rhs.mjs

File renamed without changes.

rule.js renamed to rule.mjs

File renamed without changes.

ruleset.js renamed to ruleset.mjs

File renamed without changes.

side.js renamed to side.mjs

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

utils.js renamed to utils.mjs

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)