Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 4.54 KB
/
Copy pathpackage.json
File metadata and controls
75 lines (75 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"private": true,
"packageManager": "pnpm@11.7.0",
"engines": {
"node": "24.x"
},
"scripts": {
"build-rollup": "pnpm --filter=posthog-js build-rollup",
"bundle-size:array": "node packages/browser/scripts/compare-array-bundle-size.mjs",
"clean": "turbo clean",
"clean:dep": "rm -rf node_modules && pnpm -r exec rm -rf node_modules",
"format": "oxfmt --check 'packages/**/*.{ts,tsx,js,jsx,mjs,cjs}' '!packages/rrweb/**' '!packages/**/playground/**' '!packages/**/examples/**'",
"format:fix": "oxfmt --write 'packages/**/*.{ts,tsx,js,jsx,mjs,cjs}' '!packages/rrweb/**' '!packages/**/playground/**' '!packages/**/examples/**'",
"knip": "knip",
"lint": "pnpm format && pnpm lint:oxlint && turbo lint",
"lint:fix": "pnpm lint:oxlint:fix && turbo lint:fix && pnpm format:fix",
"lint:oxlint": "oxlint -c .oxlintrc.correctness.json packages",
"lint:oxlint:fix": "oxlint -c .oxlintrc.correctness.json --fix packages",
"lint:playground": "oxfmt --check 'playground/**/*.{ts,tsx,js,jsx,mjs,json,md}' && oxlint --report-unused-disable-directives-severity error playground",
"lint:playground:fix": "oxlint --fix --report-unused-disable-directives-severity error playground && oxfmt --write 'playground/**/*.{ts,tsx,js,jsx,mjs,json,md}'",
"test": "turbo run lint test:unit test:built test:functional test:e2e test:rrweb //#test:rrweb-declarations",
"test:unit": "turbo run test:unit test:built //#test:rrweb-declarations",
"test:rrweb-declarations": "node --test scripts/rrweb-declarations.test.mjs",
"test:rrweb-consumers": "node --test scripts/rrweb-consumer-types.test.mjs",
"test:rrweb-package-exports": "pnpm turbo run build --filter=@posthog/rrweb-all --filter=rrdom-nodejs && node --test scripts/rrweb-package-exports.test.mjs",
"test:built": "turbo test:built",
"test:nextjs-integration": "pnpm turbo run build --filter=@posthog/nextjs-config --filter=posthog-node --filter=posthog-js --concurrency=50% && pnpm --filter=@posthog/nextjs-config test:integration",
"test:rrweb": "turbo test:rrweb",
"test:dependency-cooldown": "node --test scripts/__tests__/dependency-cooldown.test.mjs",
"test:build-graph": "node --test scripts/__tests__/build-graph.test.mjs",
"test:dev-watch": "node --test scripts/test-dev-watch.mjs",
"test:functional": "turbo test:functional",
"test:e2e": "turbo test:e2e",
"test:mcp-harness": "node packages/mcp/harness/run-all.mjs",
"build": "turbo build",
"check-types": "turbo run check-types",
"dev": "turbo dev",
"package": "export PACKAGE_DEST=$(pwd)/target && turbo package",
"prepare": "if [ -z \"$CI\" ] && [ \"$PREK\" != \"0\" ] && [ \"$HUSKY\" != \"0\" ] && command -v git >/dev/null 2>&1 && [ -x node_modules/.bin/prek ] && git rev-parse --is-inside-work-tree >/dev/null 2>&1; then node_modules/.bin/prek install; fi",
"check:package-tarballs": "node scripts/check-package-tarballs.js",
"package:watch": "export PACKAGE_DEST=$(pwd)/target && turbo watch package",
"bump": "pnpm changeset version",
"check:public-api": "node scripts/check-public-api.js",
"generate-references": "pnpm turbo --filter='posthog-js^...' --filter='posthog-node^...' --filter='posthog-react-native^...' build && node scripts/generate-sdk-reference.mjs browser && node scripts/generate-sdk-reference.mjs node && node scripts/generate-sdk-reference.mjs react-native",
"test:rrweb-dev-watch": "node --test scripts/rrweb-dev-watch.test.mjs"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.2",
"@changesets/cli": "^2.29.8",
"@changesets/read": "^0.6.6",
"@j178/prek": "^0.4.14",
"@posthog/coherence": "^1.10.1",
"@types/node": "^22.19.1",
"es-check": "7.2.1",
"esbuild": "^0.25.0",
"esbuild-plugin-umd-wrapper": "catalog:",
"eslint-plugin-compat": "6.2.0",
"eslint-plugin-react": "^7.37.5",
"knip": "^6.34.0",
"oxfmt": "^0.65.0",
"oxlint": "^1.80.0",
"rimraf": "^6.1.3",
"rolldown": "catalog:",
"rolldown-plugin-dts": "catalog:",
"rollup": "catalog:",
"rollup-plugin-visualizer": "^7.1.1",
"ts-node": "^10.9.2",
"turbo": "^2.9.16",
"typedoc": "0.28.20",
"typedoc-plugin-markdown": "4.14.1",
"typedoc-plugin-missing-exports": "4.1.4",
"typescript": "catalog:",
"vitest": "catalog:"
}
}