-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
90 lines (90 loc) · 3.23 KB
/
Copy pathpackage.json
File metadata and controls
90 lines (90 loc) · 3.23 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
{
"name": "virtual-gamepad-lib",
"private": false,
"description": "Emulate and display virtual and real gamepads on the web",
"version": "0.3.3",
"packageManager": "pnpm@9.14.2",
"type": "module",
"sideEffects": false,
"//": "Note sideEffects:false indicates compatibility with tree shaking at compilation time. This does not mean all fuctions in this package are side-effect free at runtime! E.g. Once you initilize a new GamepadEmulator() the browser Gamepad API is monkeypatched (but can be reverted)",
"author": "Kyle Worcester-Moore",
"license": "MIT",
"homepage": "https://github.com/KW-M/virtual-gamepad-lib#readme",
"bugs": {
"url": "https://github.com/KW-M/virtual-gamepad-lib/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/KW-M/virtual-gamepad-lib.git"
},
"keywords": [
"gaming",
"arcade",
"emulator",
"joystick",
"typescript",
"gamepad",
"touch",
"accessability"
],
"peerDependencies": {
"svgo": "^3.3.2"
},
"devDependencies": {
"@vitest/browser": "^2.1.9",
"@vitest/ui": "^2.1.9",
"np": "^10.2.0",
"packito": "^0.5.0",
"typedoc": "^0.26.11",
"typedoc-material-theme": "^1.4.0",
"typescript": "^5.8.3",
"vite": "^5.4.19",
"vite-plugin-dts": "^4.5.4",
"vitest": "^2.1.9"
},
"scripts": {
"test": "vitest --run",
"build": "tsc && vite build",
"examples:build": "tsc --project examples; rm src/*.js; vite build --config examples/vite.config.js",
"examples:watch": "vite --config examples/vite.config.js --host",
"examples:preview": "vite preview --config examples/vite.config.js --host",
"docs:build": "typedoc --options typedoc.json src/*",
"docs:watch": "typedoc --options typedoc.json src/* --watch",
"svgs:optimize": "svgo --recursive --folder ./gamepad_asset_originals/svg/ --output ./gamepad_assets/",
"pub": "rm -r ./dist || true; (pnpm i && pnpm run svgs:optimize && pnpm run build && pnpm run examples:build && pnpm run docs:build && pnpm run test && cp -r ./dist ./dist/dist && np --no-tests --no-publish && packito -d ./dist --nopublish && pnpm publish ./dist) || rm -r ./dist",
"pub-preview": "rm -r ./dist || true; (pnpm i && pnpm run svgs:optimize && pnpm run build && pnpm run examples:build && pnpm run docs:build && pnpm run test && cp -r ./dist ./dist/dist && echo 'np & pnpm are in dry-run mode' && np --preview --no-tests --no-publish && packito -d ./dist --nopublish && pnpm publish --dry-run --no-git-checks ./dist)"
},
"module": "./src/index.ts",
"main": "./dist/cjs/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./src/index.ts"
},
"./enums": {
"import": "./src/enums.ts"
},
"./GamepadApiWrapper": {
"import": "./src/GamepadApiWrapper.ts"
},
"./GamepadDisplay": {
"import": "./src/GamepadDisplay.ts"
},
"./GamepadEmulator": {
"import": "./src/GamepadEmulator.ts"
},
"./utilities": {
"import": "./src/utilities.ts"
},
"./helpers": {
"import": "./src/helpers.ts"
},
"./gamepad_assets/*": {
"import": "./gamepad_assets/*",
"default": "./gamepad_assets/*"
},
"./svgo.config.js": {
"import": "./svgo.config.js"
}
}
}