chore: use package exports

This commit is contained in:
Ayo 2023-11-30 20:18:09 +01:00
parent a9b9ada5e3
commit caa386590d

View file

@ -2,8 +2,21 @@
"name": "web-component-base",
"version": "1.13.3",
"description": "A zero-dependency, ~600 Bytes (minified & gzipped), JS base class for creating reactive custom elements easily",
"main": "WebComponent.js",
"type": "module",
"exports": {
".": {
"import": "./WebComponent.js",
"types": "./WebComponent.d.ts"
},
"./WebComponent.min.js": {
"import": "./WebComponent.min.js",
"types": "./WebComponent.d.ts"
},
"./attach-effect" : {
"import": "./attach-effect.js",
"types": "./attach-effect.d.ts"
}
},
"scripts": {
"start": "npx simple-server .",
"demo": "npx simple-server .",