Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 4.78 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 4.78 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
{
"name": "screeps-clockwork",
"version": "0.13.1",
"description": "A WASM movement library for Screeps",
"main": "dist/index.js",
"types": "dist/src/index.d.ts",
"scripts": {
"check": "run-s lint format:check typecheck",
"lint": "run-s lint:ts lint:rust",
"lint:ts": "eslint src test \"benches/**/*.ts\" types.d.ts",
"lint:rust": "cargo clippy --target wasm32-unknown-unknown --all-features -- -D warnings",
"format": "run-s format:ts format:rust",
"format:ts": "prettier --write . --ignore-unknown",
"format:rust": "cargo fmt",
"format:check": "run-s format:check:ts format:check:rust",
"format:check:ts": "prettier --check . --ignore-unknown",
"format:check:rust": "cargo fmt --check",
"typecheck": "run-s typecheck:ts typecheck:rust",
"typecheck:ts": "run-s typecheck:ts:src typecheck:ts:test",
"typecheck:ts:src": "tsc -p tsconfig.src.json --noEmit",
"typecheck:ts:test": "tsc -p tsconfig.test.json --noEmit",
"typecheck:rust": "cargo check --target wasm32-unknown-unknown --all-features",
"check:wasm-types": "run-s check:wasm-types:present check:wasm-types:src check:wasm-types:bench",
"check:wasm-types:present": "test -f src/wasm/screeps_clockwork.d.ts && test -f benches/wasm/pkg/screeps_clockwork.d.ts",
"check:wasm-types:src": "npm run build:lib && git diff --exit-code -- src/wasm/screeps_clockwork.d.ts",
"check:wasm-types:bench": "npm run bench:wasm:build && git diff --exit-code -- benches/wasm/pkg/screeps_clockwork.d.ts",
"build": "run-s build:lib build:src",
"build:lib": "wasm-pack build --target web --out-dir src/wasm --config build.rustflags=[\\'-Ctarget-feature=-reference-types\\',\\'-Ctarget-feature=-multivalue\\',\\'-Ctarget-feature=-sign-ext\\'] -Z build-std=std,panic_abort && printf '*\\n!screeps_clockwork.d.ts\\n' > src/wasm/.gitignore",
"build:src": "rollup -c",
"build:docs": "typedoc",
"bench:rust": "cargo bench --features bench --bench distance_map",
"bench:wasm:build": "wasm-pack build --target nodejs --out-dir benches/wasm/pkg --config \"build.rustflags=['-Ctarget-feature=-reference-types','-Ctarget-feature=-multivalue','-Ctarget-feature=-sign-ext']\" -Z build-std=std,panic_abort && printf '*\\n!screeps_clockwork.d.ts\\n' > benches/wasm/pkg/.gitignore && cp benches/wasm/pkg/screeps_clockwork.js benches/wasm/pkg/screeps_clockwork.cjs",
"bench:wasm:run": "node --no-liftoff --no-wasm-lazy-compilation --wasm-wrapper-tiering-budget=0 ./node_modules/vitest/vitest.mjs bench benches/wasm",
"bench:wasm": "run-s bench:wasm:build bench:wasm:run",
"bench:wasm:save": "run-s bench:wasm:build bench:wasm:save:run",
"bench:wasm:save:run": "mkdir -p target/wasm-bench && node --no-liftoff --no-wasm-lazy-compilation --wasm-wrapper-tiering-budget=0 ./node_modules/vitest/vitest.mjs bench benches/wasm --outputJson target/wasm-bench/main.json",
"bench:wasm:compare": "run-s bench:wasm:build bench:wasm:compare:run",
"bench:wasm:compare:run": "node --no-liftoff --no-wasm-lazy-compilation --wasm-wrapper-tiering-budget=0 ./node_modules/vitest/vitest.mjs bench benches/wasm --compare target/wasm-bench/main.json",
"build:pserver": "run-s build:lib build:src && rollup -c --environment DEST:pserver",
"watch": "run-s build watch:both",
"watch:lib": "bacon --headless -j build-lib",
"watch:src": "wait-on src/wasm/screeps_clockwork_bg.wasm && rollup -cw",
"watch:pserver": "rollup -cw --environment DEST:pserver",
"watch:both": "run-p watch:lib watch:pserver"
},
"repository": {
"type": "git",
"url": "git+https://github.com/glitchassassin/screeps-clockwork.git"
},
"keywords": [
"typescript",
"screeps",
"wasm",
"pathfinding"
],
"author": "Jon Winsley <jon.winsley@gmail.com>",
"license": "SEE LICENSE IN LICENSE",
"bugs": {
"url": "https://github.com/glitchassassin/screeps-clockwork/issues"
},
"homepage": "https://github.com/glitchassassin/screeps-clockwork#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^29.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/plugin-wasm": "^6.2.2",
"@types/node": "^26.0.1",
"@types/screeps": "^3.3.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"eslint": "^10.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.4.2",
"rollup": "2.79.2",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-screeps": "^1.0.1",
"source-map": "0.6.1",
"tslib": "^2.8.1",
"typedoc": "^0.28.5",
"typescript": "^6.0.3",
"vitest": "4.1.10"
},
"dependencies": {
"fastestsmallesttextencoderdecoder-encodeinto": "^1.0.22"
},
"type": "module",
"files": [
"dist/**/*"
],
"publishConfig": {
"access": "public"
}
}