Skip to content

Commit

Permalink
feat: change export name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Dec 6, 2024
1 parent ae23458 commit 58ab7bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ const eslint = require('@tomjs/eslint');
* @type {import('eslint').Linter.Config[]}
*/
module.exports = [
...eslint,
...eslint.configs.node,
{ ignores: ['public', 'dist', 'build', 'packages/*/es', 'packages/*/lib'] },
];
18 changes: 11 additions & 7 deletions packages/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,50 @@
"es",
"lib"
],
"main": "./lib/typescript.js",
"module": "./es/typescript.js",
"main": "./lib/index.js",
"module": "./es/index.js",
"exports": {
".": {
"require": "./lib/index.js",
"import": "./es/index.js"
},
"./ts": {
"require": "./lib/typescript.js",
"import": "./es/typescript.js"
},
"./javascript": {
"./js": {
"require": "./lib/javascript.js",
"import": "./es/javascript.js"
},
"./vue": {
"require": "./lib/vue/typescript.js",
"import": "./es/vue/typescript.js"
},
"./vue/javascript": {
"./vue/js": {
"require": "./lib/vue/javascript.js",
"import": "./es/vue/javascript.js"
},
"./vue2": {
"require": "./lib/vue2/typescript.js",
"import": "./es/vue2/typescript.js"
},
"./vue2/javascript": {
"./vue2/js": {
"require": "./lib/vue2/javascript.js",
"import": "./es/vue2/javascript.js"
},
"./react": {
"require": "./lib/react/typescript.js",
"import": "./es/react/typescript.js"
},
"./react/javascript": {
"./react/js": {
"require": "./lib/react/javascript.js",
"import": "./es/react/javascript.js"
},
"./node": {
"require": "./lib/node/typescript.js",
"import": "./es/node/typescript.js"
},
"./node/javascript": {
"./node/js": {
"require": "./lib/node/javascript.js",
"import": "./es/node/javascript.js"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {
version: require('../package.json').version,
};

const configs = {
export const configs = {
ts,
js,
node,
Expand Down

0 comments on commit 58ab7bb

Please sign in to comment.