Skip to content

Commit

Permalink
feat: specify all .js files within are ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
VicGUTT committed Nov 27, 2022
1 parent f4048cc commit 9c32073
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"license",
"keywords",

"type",
"main",
"module",
"types",
"typings",
"type",
"exports",
"files",
"engines",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
'*.{js,ts,vue}': ['eslint . --max-warnings=0', 'prettier -l'],
'*.json': 'eslint . --max-warnings=0',
'*.{json,html,yml,md,css,php}': 'prettier . -l',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"utilities",
"string"
],
"type": "module",
"main": "./dist/strjs.umd.js",
"module": "./dist/strjs.es.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 9c32073

Please sign in to comment.