Files

89 lines
2.7 KiB
JSON

{
"name": "@hanzo/insights-convex",
"description": "Send analytics events to Hanzo Insights from your Convex backend.",
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoinsights/insights-js.git",
"directory": "packages/convex"
},
"homepage": "https://docs.hanzo.ai/insights/convex",
"bugs": {
"url": "https://github.com/hanzoinsights/insights-js/issues"
},
"author": {
"name": "Hanzo AI",
"email": "[email protected]",
"url": "https://hanzo.ai"
},
"version": "0.1.5",
"license": "MIT",
"keywords": [
"convex",
"component",
"hanzo",
"insights",
"analytics"
],
"scripts": {
"prebuild": "node -p \"'export const version = \\'' + require('./package.json').version + '\\''\" > src/component/version.ts",
"build": "tsc --project ./tsconfig.build.json",
"setup:codegen": "test -f .env.local || npx convex dev --once --configure new --dev-deployment local --project insights-convex-component --typecheck disable || true",
"build:codegen": "pnpm run setup:codegen && npx convex codegen --component-dir ./src/component --typecheck disable && pnpm build",
"clean": "rm -rf dist *.tsbuildinfo && pnpm build:codegen",
"typecheck": "tsc --noEmit",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:integration": "jest run --typecheck",
"prepublishOnly": "pnpm lint && pnpm test:unit && pnpm build",
"package": "pnpm pack --out $PACKAGE_DEST/%s.tgz"
},
"files": [
"dist",
"src"
],
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/client/index.d.ts",
"default": "./dist/client/index.js"
},
"./test": "./src/test.ts",
"./_generated/component.js": {
"types": "./dist/component/_generated/component.d.ts"
},
"./_generated/component": {
"types": "./dist/component/_generated/component.d.ts"
},
"./convex.config.js": {
"types": "./dist/component/convex.config.d.ts",
"default": "./dist/component/convex.config.js"
},
"./convex.config": {
"types": "./dist/component/convex.config.d.ts",
"default": "./dist/component/convex.config.js"
}
},
"types": "./dist/client/index.d.ts",
"module": "./dist/client/index.js",
"dependencies": {
"@hanzo/insights-core": "workspace:*",
"@hanzo/insights-node": "workspace:*"
},
"devDependencies": {
"@edge-runtime/vm": "^5.0.0",
"@jest/globals": "^29.7.0",
"@types/node": "^24.10.12",
"convex": "1.39.1",
"convex-test": "0.0.41",
"globals": "^17.3.0",
"jest": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"vite": "7.3.1"
},
"peerDependencies": {
"convex": "^1.39.0"
}
}