Skip to content

Commit

Permalink
refactor: esm package
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 24, 2024
1 parent daa88aa commit 136fea3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions eslint.config.js
@@ -1,2 +1,2 @@
const { sxzz } = require('@sxzz/eslint-config')
module.exports = sxzz()
import { sxzz } from '@sxzz/eslint-config'
export default sxzz()
29 changes: 9 additions & 20 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.7.0",
"packageManager": "[email protected]",
"description": "Check your node_modules matches your package.json.",
"type": "module",
"license": "MIT",
"homepage": "https://github.com/sxzz/stale-dep#readme",
"bugs": {
Expand All @@ -16,32 +17,20 @@
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": {
"require": "./dist/index.d.ts",
"import": "./dist/index.d.mts"
},
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./cli": {
"types": {
"require": "./dist/cli.d.ts",
"import": "./dist/cli.d.mts"
},
"require": "./dist/cli.js",
"import": "./dist/cli.mjs"
"require": "./dist/cli.cjs",
"import": "./dist/cli.js"
},
"./nuxt": {
"types": {
"require": "./dist/nuxt.d.ts",
"import": "./dist/nuxt.d.mts"
},
"require": "./dist/nuxt.js",
"import": "./dist/nuxt.mjs"
"require": "./dist/nuxt.cjs",
"import": "./dist/nuxt.js"
},
"./*": "./*"
},
Expand All @@ -54,7 +43,7 @@
}
},
"bin": {
"stale-dep": "./bin/stale-dep.mjs"
"stale-dep": "./bin/stale-dep.js"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 136fea3

Please sign in to comment.