Skip to content

Commit 53b41ba

Browse files
committed
[meta] simplify exports; remove useless mjs
1 parent 5a17554 commit 53b41ba

File tree

4 files changed

+2
-52
lines changed

4 files changed

+2
-52
lines changed

.github/workflows/node-esm.yml

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

index.mjs

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

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@
44
"description": "An ES-spec-compliant `parseInt` shim/polyfill/replacement that works as far down as ES3",
55
"main": "index.js",
66
"exports": {
7-
".": [
8-
{
9-
"import": "./index.mjs",
10-
"require": "./index.js",
11-
"default": "./index.js"
12-
},
13-
"./index.js"
14-
],
7+
".": "./index.js",
158
"./auto": "./auto.js",
169
"./polyfill": "./polyfill.js",
1710
"./implementation": "./implementation.js",
@@ -26,8 +19,7 @@
2619
"lint": "eslint --ext=js,mjs .",
2720
"postlint": "es-shim-api --bound",
2821
"tests-only": "nyc tape 'test/**/*.js'",
29-
"tests-esm": "nyc node test/index.mjs",
30-
"test": "npm run tests-only && npm run tests-esm",
22+
"test": "npm run tests-only",
3123
"posttest": "aud --production",
3224
"version": "auto-changelog && git add CHANGELOG.md",
3325
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

test/index.mjs

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

0 commit comments

Comments
 (0)