mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
176 lines
7.5 KiB
JSON
176 lines
7.5 KiB
JSON
{
|
|
"name": "@posthog/plugin-server",
|
|
"version": "1.10.5",
|
|
"description": "PostHog Plugin Server",
|
|
"types": "dist/index.d.ts",
|
|
"main": "dist/index.js",
|
|
"engines": {
|
|
"node": ">=22 <23"
|
|
},
|
|
"scripts": {
|
|
"test": "SHARD_IDX=${SHARD_INDEX:-1}; SHARD_TOTAL=${SHARD_COUNT:-1}; echo $SHARD_IDX/$SHARD_TOTAL; jest --runInBand --forceExit --shard=$SHARD_IDX/$SHARD_TOTAL",
|
|
"start": "pnpm start:dev",
|
|
"start:dist": "BASE_DIR=.. node dist/index.js",
|
|
"start:dev": "NODE_ENV=dev BASE_DIR=.. nodemon --exitcrash --watch src/ --exec node -r @swc-node/register src/index.ts",
|
|
"start:devNoWatch": "NODE_ENV=dev BASE_DIR=.. node -r @swc-node/register src/index.ts",
|
|
"prestart:dev": "pnpm build:cyclotron",
|
|
"prestart:devNoWatch": "pnpm build:cyclotron",
|
|
"build": "pnpm clean && pnpm typescript:compile && pnpm typescript:compile-cleanup",
|
|
"clean": "rm -rf dist/*",
|
|
"typescript:compile": "tsc -b && tsc-alias",
|
|
"typescript:compile-cleanup": "[ -d dist/src ] && mv dist/src/* dist/ || true",
|
|
"typescript:check": "tsc --noEmit -p .",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint --fix .",
|
|
"prettier": "prettier --write .",
|
|
"prettier:check": "prettier --check .",
|
|
"prepublishOnly": "pnpm build",
|
|
"setup:dev:clickhouse": "cd .. && DEBUG=1 python manage.py migrate_clickhouse",
|
|
"setup:test": "cd .. && TEST=1 python manage.py setup_test_environment && cd plugin-server && pnpm run setup:test:cyclotron && pnpm run setup:test:counters && pnpm run setup:test:persons-migration-db:init",
|
|
"setup:test:cyclotron": "CYCLOTRON_DATABASE_NAME=test_cyclotron ../rust/bin/migrate-cyclotron",
|
|
"setup:test:counters": "TEST=1 COUNTERS_DATABASE_URL='postgres://posthog:posthog@localhost:5432/test_counters' ./bin/migrate-counters.sh",
|
|
"migrate:counters": "./bin/migrate-counters.sh",
|
|
"migrate:counters:test": "COUNTERS_DATABASE_URL='postgres://posthog:posthog@localhost:5432/test_counters' node-pg-migrate up --migrations-dir src/migrations",
|
|
"migrate:counters:down": "node-pg-migrate down --migrations-dir src/migrations",
|
|
"migrate:counters:create": "node-pg-migrate create --javascript-file --migrations-dir src/migrations",
|
|
"setup:test:persons-migration-db:init": "ts-node src/scripts/setup-persons-migration-db.ts",
|
|
"setup:test:persons-migration-db:drop": "ts-node src/scripts/setup-persons-migration-db.ts --drop",
|
|
"services:start": "cd .. && docker compose -f docker-compose.dev.yml up",
|
|
"services:stop": "cd .. && docker compose -f docker-compose.dev.yml down",
|
|
"services:clean": "cd .. && docker compose -f docker-compose.dev.yml rm -v",
|
|
"services": "pnpm services:stop && pnpm services:clean && pnpm services:start",
|
|
"build:cyclotron": "pnpm --filter=@posthog/cyclotron package",
|
|
"update-ai-costs": "ts-node src/ingestion/ai-costs/scripts/update-ai-costs.ts",
|
|
"sync-segment-icons": "DATABASE_URL=something ts-node src/cdp/segment/sync-segment-icons.ts"
|
|
},
|
|
"bin": {
|
|
"posthog-plugin-server": "bin/posthog-plugin-server"
|
|
},
|
|
"author": "PostHog <hey@posthog.com>",
|
|
"repository": "https://github.com/PostHog/posthog-plugin-server",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@amplitude/ua-parser-js": "^0.7.33",
|
|
"@aws-sdk/client-s3": "^3.709.0",
|
|
"@aws-sdk/lib-storage": "^3.709.0",
|
|
"@babel/core": "^7.22.10",
|
|
"@babel/plugin-transform-react-jsx": "^7.22.5",
|
|
"@babel/preset-env": "^7.22.10",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@babel/standalone": "^7.23.2",
|
|
"@clickhouse/client": "^1.12.0",
|
|
"@google-cloud/pubsub": "4.11.0",
|
|
"@google-cloud/storage": "^5.8.5",
|
|
"@maxmind/geoip2-node": "^3.4.0",
|
|
"@posthog/cyclotron": "workspace:*",
|
|
"@posthog/hogvm": "workspace:*",
|
|
"@posthog/plugin-scaffold": "1.4.4",
|
|
"@posthog/siphash": "1.1.1",
|
|
"@segment/action-destinations": "^3.383.0",
|
|
"@types/lru-cache": "^5.1.0",
|
|
"@types/node": "^22.13.14",
|
|
"@types/tail": "^2.2.1",
|
|
"asn1.js": "^5.4.1",
|
|
"aws-sdk": "^2.927.0",
|
|
"cors": "^2.8.5",
|
|
"dayjs": "1.11.11",
|
|
"detect-browser": "^5.3.0",
|
|
"escape-string-regexp": "^4.0.0",
|
|
"faker": "^5.5.3",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"fastpriorityqueue": "^0.7.5",
|
|
"fernet-nodejs": "^1.0.6",
|
|
"generic-pool": "^3.7.1",
|
|
"husky": "^7.0.4",
|
|
"ioredis": "^4.27.6",
|
|
"ipaddr.js": "^2.1.0",
|
|
"js-big-decimal": "^2.2.0",
|
|
"kafkajs": "^2.2.0",
|
|
"kafkajs-snappy": "^1.1.0",
|
|
"liquidjs": "^10.21.1",
|
|
"lodash": "^4.17.21",
|
|
"lru-cache": "^6.0.0",
|
|
"luxon": "^3.4.4",
|
|
"lz4-kafkajs": "1.0.0",
|
|
"node-fetch": "^2.6.1",
|
|
"node-rdkafka": "^3.4.1",
|
|
"node-schedule": "^2.1.0",
|
|
"nodemailer": "^7.0.5",
|
|
"p-limit": "3.1.0",
|
|
"pg": "^8.6.0",
|
|
"pino": "^8.6.0",
|
|
"posthog-node": "4.14.0",
|
|
"pretty-bytes": "^5.6.0",
|
|
"prom-client": "^14.2.0",
|
|
"re2": "^1.22.1",
|
|
"safe-stable-stringify": "^2.4.0",
|
|
"snappy": "^7.2.2",
|
|
"tail": "^2.2.6",
|
|
"tldts": "^6.1.57",
|
|
"typescript": "5.2.2",
|
|
"ultimate-express": "^2.0.9",
|
|
"undici": "^7.8.0",
|
|
"undici-types": "^7.3.0",
|
|
"uuid": "^10.0.0",
|
|
"vm2": "3.9.18",
|
|
"xml-js": "^1.6.11",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.22.5",
|
|
"@babel/types": "^7.20.2",
|
|
"@segment/actions-core": "^3.151.0",
|
|
"@swc-node/register": "^1.10.9",
|
|
"@swc/core": "^1.10.14",
|
|
"@swc/jest": "^0.2.37",
|
|
"@types/adm-zip": "^0.4.34",
|
|
"@types/babel__core": "^7.1.19",
|
|
"@types/babel__standalone": "^7.1.4",
|
|
"@types/chance": "^1.1.7",
|
|
"@types/cors": "^2.8.19",
|
|
"@types/faker": "^5.5.7",
|
|
"@types/generic-pool": "^3.1.9",
|
|
"@types/ioredis": "^4.26.4",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/kafkajs-snappy": "^1.0.0",
|
|
"@types/lodash": "^4.17.16",
|
|
"@types/long": "4.x.x",
|
|
"@types/luxon": "^3.4.2",
|
|
"@types/node-fetch": "^2.5.10",
|
|
"@types/node-schedule": "^2.1.0",
|
|
"@types/nodemailer": "^6.4.17",
|
|
"@types/pg": "^8.6.0",
|
|
"@types/redlock": "^4.0.1",
|
|
"@types/snowflake-sdk": "^1.5.1",
|
|
"@types/supertest": "^6.0.2",
|
|
"@types/tar-stream": "^2.2.0",
|
|
"@types/uuid": "^10.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
"@typescript-eslint/parser": "^7.1.1",
|
|
"babel-eslint": "^10.1.0",
|
|
"chance": "^1.1.13",
|
|
"deepmerge": "^4.2.2",
|
|
"dotenv": "^16.4.7",
|
|
"eslint": "^8.53.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-import": "^2.29.0",
|
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"jest": "^30.0.0",
|
|
"node-pg-migrate": "^8.0.3",
|
|
"nodemon": "^3.1.10",
|
|
"pino-pretty": "^9.1.0",
|
|
"prettier": "^3.6.2",
|
|
"supertest": "^7.0.0",
|
|
"ts-node": "^10.9.1",
|
|
"tsc-alias": "^1.8.16",
|
|
"tsconfig-paths": "^4.2.0"
|
|
},
|
|
"cyclotron": {
|
|
"//This is a short term workaround to ensure that cyclotron changes trigger a rebuild": true,
|
|
"version": "0.1.12"
|
|
}
|
|
}
|