Skip to content

Commit fabb09b

Browse files
committed
switch to ESM-only entry point
1 parent ae67431 commit fabb09b

File tree

7 files changed

+18
-33
lines changed

7 files changed

+18
-33
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.log
2-
index.js
32
yarn.lock
3+
pnpm-lock.yaml
4+
pacakge-lock.json

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ISC License
22

3-
Copyright (c) 2018, Vladimir Agafonkin
3+
Copyright (c) 2021, Vladimir Agafonkin
44

55
Permission to use, copy, modify, and/or distribute this software for any purpose
66
with or without fee is hereby granted, provided that the above copyright notice

bench.mjs renamed to bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import FlatQueue from './';
2+
import FlatQueue from './index.js';
33
import TinyQueue from 'tinyqueue';
44

55
const N = 1000000;
File renamed without changes.

package.json

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
{
22
"name": "flatqueue",
3-
"main": "index",
4-
"module": "index.mjs",
53
"version": "1.2.1",
64
"description": "The smallest and simplest JavaScript priority queue",
5+
"main": "index.js",
6+
"type": "module",
7+
"module": "index.js",
8+
"exports": "./index.js",
79
"devDependencies": {
8-
"eslint": "^6.8.0",
10+
"eslint": "^7.18.0",
911
"eslint-config-mourner": "^3.0.0",
10-
"rollup": "^2.1.0",
11-
"tape": "^4.13.2",
12+
"tape": "^5.1.1",
1213
"tinyqueue": "^2.0.3"
1314
},
1415
"scripts": {
15-
"pretest": "eslint *.mjs",
16-
"test": "node --experimental-modules test.mjs",
17-
"bench": "node --experimental-modules bench.mjs",
18-
"build": "rollup -c",
19-
"prepublishOnly": "npm run build"
16+
"pretest": "eslint *.js",
17+
"test": "node test.js"
2018
},
2119
"eslintConfig": {
2220
"extends": "mourner"
2321
},
24-
"files": [
25-
"index.mjs",
26-
"index.js"
27-
],
22+
"files": [],
2823
"license": "ISC",
24+
"engines": {
25+
"node": ">= 12.17.0"
26+
},
2927
"repository": {
3028
"type": "git",
3129
"url": "git+https://github.com/mourner/flatqueue.git"
@@ -36,9 +34,5 @@
3634
"priority queue",
3735
"binary heap"
3836
],
39-
"author": "Vladimir Agafonkin",
40-
"bugs": {
41-
"url": "https://github.com/mourner/flatqueue/issues"
42-
},
43-
"homepage": "https://github.com/mourner/flatqueue#readme"
37+
"author": "Vladimir Agafonkin"
4438
}

rollup.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

test.mjs renamed to test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import FlatQueue from './index.mjs';
2+
import FlatQueue from './index.js';
33
import test from 'tape';
44

55
const data = [];

0 commit comments

Comments
 (0)