feat: update package.json to include peerDependencies for Vue and adjust exports paths
All checks were successful
Publish to npm / publish (push) Successful in 25s

This commit is contained in:
Astrian Zheng 2025-02-25 10:13:21 +11:00
parent 7e25bcf826
commit dc62c0e13a
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
3 changed files with 25 additions and 11 deletions

3
.gitignore vendored
View File

@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?
dist
dist_types

14
package-lock.json generated
View File

@ -7,9 +7,6 @@
"": {
"name": "datenel-vue3",
"version": "0.0.0",
"dependencies": {
"vue": "^3.5.13"
},
"devDependencies": {
"@types/node": "^22.13.5",
"@vitejs/plugin-vue": "^5.2.1",
@ -19,6 +16,9 @@
"typescript": "~5.7.2",
"vite": "^6.1.0",
"vue-tsc": "^2.2.0"
},
"peerDependencies": {
"vue": ">=3.5.13"
}
},
"node_modules/@babel/helper-string-parser": {
@ -922,6 +922,7 @@
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.13.tgz",
"integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==",
"license": "MIT",
"peer": true,
"dependencies": {
"@vue/shared": "3.5.13"
}
@ -931,6 +932,7 @@
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.13.tgz",
"integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==",
"license": "MIT",
"peer": true,
"dependencies": {
"@vue/reactivity": "3.5.13",
"@vue/shared": "3.5.13"
@ -941,6 +943,7 @@
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz",
"integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==",
"license": "MIT",
"peer": true,
"dependencies": {
"@vue/reactivity": "3.5.13",
"@vue/runtime-core": "3.5.13",
@ -953,6 +956,7 @@
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.13.tgz",
"integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==",
"license": "MIT",
"peer": true,
"dependencies": {
"@vue/compiler-ssr": "3.5.13",
"@vue/shared": "3.5.13"
@ -1028,7 +1032,8 @@
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/de-indent": {
"version": "1.0.2",
@ -1830,6 +1835,7 @@
"resolved": "https://registry.npmjs.org/vue/-/vue-3.5.13.tgz",
"integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"@vue/compiler-dom": "3.5.13",
"@vue/compiler-sfc": "3.5.13",

View File

@ -5,6 +5,7 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"prepare": "npm run build",
"preview": "vite preview"
},
"peerDependencies": {
@ -21,12 +22,16 @@
"vue-tsc": "^2.2.0"
},
"exports": {
"types": "./dist/src/index.d.ts",
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js",
"default": "./dist/index.es.js"
"types": "./dist_types/src/index.js",
"import": "./dist/datenel-vue3.js",
"require": "./dist/datenel-vue3.umd.cjs",
"default": "./dist/datenel-vue3.umd.cjs"
},
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"main": "dist/datenel-vue3.umd.cjs",
"module": "dist/datenel-vue3.js",
"types": "dist_types/src/index.js",
"files": [
"dist",
"dist_types"
]
}