Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
81 lines (81 loc) · 3.02 KB
/
Copy pathpackage.json
File metadata and controls
81 lines (81 loc) · 3.02 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
{
"version": "2.7.2",
"name": "cs2parser",
"description": "A fully typed Counter-Strike 2 demo and live GOTV broadcast parser for Node.js, Bun, and browsers.",
"author": {
"name": "Hubert Walczak",
"email": "hubertwalczak8@gmail.com",
"url": "https://hwalczak.com"
},
"sideEffects": false,
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/osztenkurden/cs2parser.git"
},
"bugs": {
"url": "https://github.com/osztenkurden/cs2parser/issues"
},
"homepage": "https://github.com/osztenkurden/cs2parser#readme",
"dependencies": {
"@bufbuild/protobuf": "^2.15.0"
},
"license": "MPL-2.0",
"engines": {
"node": ">=22.0.0"
},
"files": [
"./dist",
"ACKNOWLEDGEMENTS",
"MIGRATION.md"
],
"types": "./dist/index.d.mts",
"exports": {
".": "./dist/index.mjs",
"./package.json": "./package.json",
"./browser": {
"types": "./dist/browser.d.mts",
"import": "./dist/browser.mjs",
"default": "./dist/browser.mjs"
}
},
"scripts": {
"typecheck": "tsc && tsc -p tsconfig.browser.json",
"format": "prettier --write src/",
"format:check": "prettier --check src/",
"build": "npm run generate:messages:check && npm run generate:delta-schema:check && bun scripts/build-snappy-wasm.ts --check && bun scripts/build-entities-wasm.ts --check && bun scripts/generate-broadcast-descriptors.ts --check && npm run typecheck && tsdown",
"test": "bun test --timeout 300000",
"test:watch": "bun test --watch --timeout 300000",
"test:coverage": "bun test --coverage --timeout 300000",
"test:node": "node tests/node/package.smoke.mjs",
"prepublishOnly": "npm run format:check && npm run build",
"prepare": "husky",
"generate:entities": "bun scripts/generate-entity-types.ts",
"generate:events": "bun scripts/generate-event-types.ts",
"generate:protos": "bun scripts/generate-protos.ts",
"generate:messages": "bun scripts/generate-message-registry.ts",
"generate:delta-schema": "bun scripts/generate-usercmd-delta-schema.ts",
"generate:delta-schema:check": "bun scripts/generate-usercmd-delta-schema.ts --check",
"generate:messages:check": "bun scripts/generate-message-registry.ts --check",
"generate": "bun scripts/generate-protos.ts && bun scripts/generate-message-registry.ts && bun scripts/generate-usercmd-delta-schema.ts && bun scripts/generate-entity-types.ts --snapshot",
"benchmark": "bun scripts/benchmark-compare.mjs",
"build:snappy": "bun scripts/build-snappy-wasm.ts",
"build:entities": "bun scripts/build-entities-wasm.ts",
"build:all": "bun scripts/build-all.ts",
"generate:broadcast-descriptors": "bun scripts/generate-broadcast-descriptors.ts",
"test:browser": "npm run build && tsc -p tests/browser/tsconfig.json && playwright test"
},
"devDependencies": {
"@commitlint/cli": "^20.5.3",
"@commitlint/config-conventional": "^20.5.3",
"@playwright/test": "^1.63.0",
"@types/bun": "^1.4.2",
"@types/node": "^22.20.2",
"husky": "^9.1.7",
"prettier": "^3.9.6",
"snappy": "^7.4.3",
"ts-proto": "2.11.6",
"tsdown": "^0.22.14",
"typescript": "^7.0.2"
}
}