Skip to content

Commit 8cf7523

Browse files
committed
feat: add types
1 parent 87af132 commit 8cf7523

12 files changed

+1277
-869
lines changed

.eslintrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
'plugin:vue/vue3-recommended',
8+
],
9+
"parserOptions": {
10+
"ecmaVersion": "latest",
11+
"sourceType": "module"
12+
},
13+
}

package.json

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
22
"name": "vue-lazy-load-image-component",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "vue-lazy-load-image-component",
55
"type": "module",
66
"main": "lib/index.js",
7+
"exports": {
8+
".": "./lib/index.js",
9+
"./lib/style.css": "./lib/style.css"
10+
},
11+
"types": "./lib/index.d.ts",
712
"scripts": {
813
"dev": "vite",
914
"build": "vite build",
@@ -13,22 +18,28 @@
1318
"keywords": [],
1419
"author": "",
1520
"license": "ISC",
16-
"files": ["lib"],
21+
"files": [
22+
"lib"
23+
],
1724
"dependencies": {
18-
"@vitejs/plugin-vue": "^4.2.1",
25+
"@vitejs/plugin-vue": "^4.2.3",
26+
"babel": "^6.23.0",
1927
"eslint": "^8.40.0",
2028
"lodash-es": "^4.17.21",
2129
"mockjs": "^1.1.0",
2230
"typescript": "^5.0.4",
2331
"vite": "^4.3.5",
24-
"vue": "^3.2.47"
32+
"vite-plugin-dts": "^2.3.0",
33+
"vue": "^3.3.2",
34+
"vue-lazy-load-image-component": "0.0.3"
2535
},
2636
"devDependencies": {
2737
"@types/jest": "^29.5.1",
2838
"@types/lodash-es": "^4.17.7",
2939
"@types/mockjs": "^1.0.7",
3040
"@vitejs/plugin-vue-jsx": "^3.0.1",
3141
"@vue/babel-plugin-jsx": "^1.1.1",
42+
"eslint-plugin-vue": "^9.12.0",
3243
"jest": "^29.5.0"
3344
}
3445
}

0 commit comments

Comments
 (0)