Skip to content

Commit 11480fe

Browse files
authored
Add new recommended properties in package.json (#1072)
1 parent e4c363f commit 11480fe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

eslint.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig(
2525
name: 'vue-ts-types/ignore-dist',
2626
ignores: ['dist'],
2727
},
28-
eslintPluginPackageJson.configs.recommended,
28+
eslintPluginPackageJson.configs['recommended-publishable'],
2929
eslintPluginPackageJson.configs.stylistic,
3030
{
3131
files: ['**/*.ts', '**/*.mts'],

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@
2626
},
2727
"license": "MIT",
2828
"author": "Flo Edelmann",
29+
"sideEffects": false,
2930
"type": "commonjs",
31+
"exports": {
32+
".": {
33+
"import": "./dist/index.js",
34+
"require": "./dist/index.js",
35+
"types": "./dist/index.d.ts"
36+
}
37+
},
3038
"main": "dist/index.js",
3139
"types": "dist/index.d.ts",
3240
"files": [

0 commit comments

Comments
 (0)