We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3bcdee commit b838838Copy full SHA for b838838
3 files changed
bench.js
@@ -1,5 +1,5 @@
1
2
-import TinyQueue from './';
+import TinyQueue from './index.js';
3
4
const N = 1000000;
5
package.json
@@ -8,8 +8,8 @@
8
"unpkg": "tinyqueue.min.js",
9
"scripts": {
10
"lint": "eslint index.js test.js bench.js rollup.config.js",
11
- "pretest": "npm run lint && npm run build",
12
- "test": "tape test.js",
+ "pretest": "npm run lint",
+ "test": "tape -r esm test.js",
13
"bench": "node -r esm bench.js",
14
"build": "rollup -c",
15
"watch": "rollup -cw",
test.js
@@ -1,6 +1,6 @@
-const test = require('tape').test;
-const TinyQueue = require('./');
+import {test} from 'tape';
const data = [];
6
for (let i = 0; i < 100; i++) {
0 commit comments