XuqmGroup-H5SDK/package.json
徐勤民 b25ae21760 fix(build): switch from umd to cjs format to support dual entry points
Vite does not allow multiple entry points with umd/iife output formats.
Switching to es+cjs enables the private/ sub-package build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 21:18:02 +08:00

38 行
926 B
JSON

{
"name": "@xuqm/h5-sdk",
"version": "0.2.0",
"description": "XuqmGroup H5 SDK — Pure JS/TS IM SDK for web and H5",
"private": false,
"publishConfig": {
"registry": "https://nexus.xuqinmin.com/repository/npm-hosted/"
},
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js"
},
"./private": {
"types": "./dist/private/index.d.ts",
"import": "./dist/private/index.es.js",
"require": "./dist/private/index.cjs.js"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc --emitDeclarationOnly && vite build",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.6.0",
"vite": "^6.0.0",
"vite-plugin-dts": "^4.3.0"
}
}