Files
polar/package.json
Shawn Erquhart fb9d6ba4fc 0.6.2
2025-08-07 17:16:49 -04:00

104 lines
3.0 KiB
JSON

{
"name": "@convex-dev/polar",
"description": "A Polar component for Convex.",
"repository": "github:get-convex/polar",
"homepage": "https://github.com/get-convex/polar#readme",
"bugs": {
"email": "support@convex.dev",
"url": "https://github.com/get-convex/polar/issues"
},
"version": "0.6.2",
"license": "Apache-2.0",
"keywords": [
"convex",
"component",
"polar",
"stripe",
"subscription",
"billing",
"payments",
"checkout"
],
"type": "module",
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc --project ./esm.json && echo '{\\n \"type\": \"module\"\\n}' > dist/esm/package.json",
"build:cjs": "tsc --project ./commonjs.json && echo '{\\n \"type\": \"commonjs\"\\n}' > dist/commonjs/package.json",
"dev": "cd example; npm run dev",
"typecheck": "tsc --noEmit",
"prepare": "npm run build",
"prepack": "node node10stubs.mjs",
"postpack": "node node10stubs.mjs --cleanup",
"test": "vitest run",
"test:debug": "vitest --inspect-brk --no-file-parallelism",
"test:coverage": "vitest run --coverage --coverage.reporter=text"
},
"files": [
"dist",
"src",
"react"
],
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"@convex-dev/component-source": "./src/client/index.ts",
"types": "./dist/esm/client/index.d.ts",
"default": "./dist/esm/client/index.js"
},
"require": {
"@convex-dev/component-source": "./src/client/index.ts",
"types": "./dist/commonjs/client/index.d.ts",
"default": "./dist/commonjs/client/index.js"
}
},
"./react": {
"import": {
"@convex-dev/component-source": "./src/react/index.tsx",
"types": "./dist/esm/react/index.d.ts",
"default": "./dist/esm/react/index.js"
},
"require": {
"@convex-dev/component-source": "./src/react/index.tsx",
"types": "./dist/commonjs/react/index.d.ts",
"default": "./dist/commonjs/react/index.js"
}
},
"./convex.config": {
"import": {
"@convex-dev/component-source": "./src/component/convex.config.ts",
"types": "./dist/esm/component/convex.config.d.ts",
"default": "./dist/esm/component/convex.config.js"
}
}
},
"peerDependencies": {
"@polar-sh/checkout": ">=0.1.10",
"@polar-sh/sdk": ">=0.32.11",
"convex": "^1.25.4",
"react": "^18 || ^19",
"react-dom": "^18 || ^19"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@types/node": "^18.17.0",
"@types/react": "^18.3.12",
"convex-test": "^0.0.33",
"eslint": "^9.9.1",
"globals": "^15.9.0",
"prettier": "3.2.5",
"typescript": "^5.5.0",
"typescript-eslint": "^8.4.0",
"vitest": "^2.1.4"
},
"main": "./dist/commonjs/client/index.js",
"types": "./dist/commonjs/client/index.d.ts",
"module": "./dist/esm/client/index.js",
"dependencies": {
"buffer": "^6.0.3",
"convex-helpers": "^0.1.63",
"remeda": "^2.20.2",
"standardwebhooks": "^1.0.0"
}
}