@coho-ai/sdk
Version:
Coho AI SDK for Web Applications
108 lines (107 loc) • 2.56 kB
JSON
{
"name": "@coho-ai/sdk",
"version": "1.3.1",
"description": "Coho AI SDK for Web Applications",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsup src/index.ts src/react/index.ts --format cjs,esm --dts",
"test": "jest --testPathIgnorePatterns=test/browser/",
"test:browser": "playwright test",
"lint": "eslint 'src/**/*.{js,ts}' --max-warnings 0",
"prepublishOnly": "npm run lint && npm run build",
"prepare": "husky install",
"size": "size-limit",
"format": "prettier --write \"src/**/*.ts\"",
"clean": "rimraf dist",
"tsc": "tsc"
},
"peerDependencies": {
"axios": ">=1.0.0",
"react": ">=16.8.0"
},
"dependencies": {
"axios": ">=1.0.0"
},
"devDependencies": {
"@babel/preset-typescript": "^7.26.0",
"@playwright/test": "^1.48.2",
"@size-limit/preset-small-lib": "^11.1.6",
"@testing-library/react": "^14.2.1",
"@types/jest": "^29.5.14",
"@types/react": "^18.3.12",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"globals": "^15.12.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-localstorage-mock": "^2.4.26",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rimraf": "^5.0.10",
"ts-jest": "^29.2.5",
"tsup": "^8.3.5",
"typescript": "~5.5.0",
"typescript-eslint": "^8.14.0"
},
"keywords": [
"analytics",
"tracking",
"coho",
"events",
"typescript",
"browser",
"web"
],
"author": {
"name": "Coho AI",
"url": "https://www.coho.ai/"
},
"license": "MIT",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=14"
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "10 kb"
}
],
"lint-staged": {
"*.ts": [
"prettier --write",
"eslint --fix"
]
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.mjs",
"require": "./dist/react/index.js"
}
}
}