Skip to content

Commit

Permalink
[Refactor] remove useless ESM implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 19, 2024
1 parent 61b7232 commit c4a18f2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 52 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/node-esm.yml

This file was deleted.

9 changes: 0 additions & 9 deletions index.mjs

This file was deleted.

12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
"description": "An ES-spec-compliant Number.prototype.toExponential shim/polyfill/replacement that works as far down as ES3",
"main": "index.js",
"exports": {
".": [
{
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.js"
},
"./index.js"
],
".": "./index.js",
"./auto": "./auto.js",
"./polyfill": "./polyfill.js",
"./implementation": "./implementation.js",
Expand All @@ -26,8 +19,7 @@
"lint": "eslint --ext=js,mjs .",
"postlint": "es-shim-api --bound",
"tests-only": "nyc tape 'test/**/*.js'",
"tests-esm": "nyc node test/index.mjs",
"test": "npm run tests-only && npm run tests-esm",
"test": "npm run tests-only",
"posttest": "npx npm@'>= 10.2' audit --production",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
Expand Down
24 changes: 0 additions & 24 deletions test/index.mjs

This file was deleted.

0 comments on commit c4a18f2

Please sign in to comment.