-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpackage.json
More file actions
155 lines (154 loc) · 4.28 KB
/
package.json
File metadata and controls
155 lines (154 loc) · 4.28 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "@posthog/wizard",
"version": "1.34.0",
"homepage": "https://github.com/PostHog/wizard",
"repository": "https://github.com/PostHog/wizard",
"description": "The PostHog wizard helps you to configure your project",
"keywords": [
"posthog",
"wizard",
"sdk",
"cli",
"project",
"setup",
"install",
"configure"
],
"bin": {
"wizard": "dist/bin.js"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist/bin.*",
"dist/src",
"package.json",
"README.md"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "0.2.50",
"@clack/core": "^0.3.4",
"@clack/prompts": "0.7.0",
"@langchain/core": "^0.3.40",
"axios": "1.7.4",
"chalk": "^2.4.1",
"fast-glob": "^3.3.3",
"glob": "9.3.5",
"inquirer": "^6.2.0",
"jsonc-parser": "^3.3.1",
"lodash": "^4.17.21",
"magicast": "^0.2.10",
"opn": "^5.4.0",
"posthog-node": "^4.18.0",
"read-env": "^1.3.0",
"recast": "^0.23.3",
"semver": "^7.5.3",
"uuid": "^11.1.0",
"xcode": "3.0.1",
"xml-js": "^1.6.11",
"yargs": "^16.2.0",
"zod": "^3.24.2",
"zod-to-json-schema": "^3.24.3"
},
"devDependencies": {
"@babel/types": "~7.21.4",
"@types/chai": "^4.3.17",
"@types/glob": "^7.2.0",
"@types/inquirer": "^0.0.43",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.15",
"@types/node": "^18.19.76",
"@types/opn": "5.1.0",
"@types/rimraf": "^3.0.2",
"@types/semver": "^7.3.7",
"@types/yargs": "^16.0.9",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"dotenv": "^16.4.7",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^25.3.0",
"husky": "^9.1.7",
"jest": "^29.5.0",
"lint-staged": "^15.5.1",
"msw": "^2.10.4",
"prettier": "^2.8.7",
"rimraf": "^3.0.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsx": "^4.20.3",
"typescript": "^5.0.4"
},
"engines": {
"node": ">=18",
"npm": ">=3.10.7"
},
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
"scripts": {
"clean": "rm -rf ./dist",
"prebuild": "pnpm clean",
"build:watch": "pnpm tsc -w",
"build": "pnpm tsc",
"postbuild": "chmod +x ./dist/bin.js && cp -r scripts/** dist && cp -r src/utils/rules dist/src/utils && pnpm test:smoke",
"test:smoke": "node -e \"require('./dist/bin.js')\" 2>&1 | head -5 | grep -q 'PostHog Wizard' || (echo 'Smoke test failed: compiled binary crashed on load' && exit 1)",
"lint": "pnpm lint:prettier && pnpm lint:eslint",
"lint:prettier": "prettier --check \"{lib,src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --format stylish",
"fix": "pnpm fix:eslint && pnpm fix:prettier",
"fix:prettier": "prettier --write \"{lib,src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"test": "pnpm build && jest",
"test:e2e": "pnpm build && ./e2e-tests/run.sh",
"test:e2e-record": "export RECORD_FIXTURES=true && pnpm build && ./e2e-tests/run.sh",
"try": "tsx bin.ts",
"dev": "pnpm build && pnpm link --global && pnpm build:watch",
"test:watch": "jest --watch",
"prepare": "husky"
},
"jest": {
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"dist"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"modulePathIgnorePatterns": [
"<rootDir>/dist/"
],
"testPathIgnorePatterns": [
"/dist/",
"/node_modules/",
"\\.d\\.(jsx?|tsx?)$",
"\\.no-jest\\.(jsx?|tsx?)$",
"/e2e-tests/"
],
"testEnvironment": "node",
"moduleNameMapper": {
"^@anthropic-ai/claude-agent-sdk$": "<rootDir>/__mocks__/@anthropic-ai/claude-agent-sdk.ts"
}
},
"lint-staged": {
"*.{js,ts,tsx,jsx}": "pnpm fix"
},
"author": "PostHog",
"license": "MIT",
"volta": {
"node": "20.18.2",
"pnpm": "10.23.0"
}
}