-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 2.45 KB
/
package.json
File metadata and controls
71 lines (71 loc) · 2.45 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
{
"name": "annyang",
"version": "3.0.0",
"description": "A JavaScript library for adding voice commands to your site, using speech recognition",
"keywords": ["speech", "recognition", "voice", "commands", "speechrecognition"],
"homepage": "https://www.talater.com/annyang/",
"bugs": {
"url": "https://github.com/TalAter/annyang/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/TalAter/annyang.git"
},
"license": "MIT",
"author": "Tal Ater <tal@talater.com> (https://www.talater.com/)",
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/annyang.d.ts",
"default": "./dist/annyang.js"
},
"require": {
"types": "./dist/annyang.d.cts",
"default": "./dist/annyang.cjs"
}
}
},
"main": "./dist/annyang.cjs",
"module": "./dist/annyang.js",
"types": "./dist/annyang.d.ts",
"files": ["dist"],
"sideEffects": false,
"engines": {
"node": ">=18"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint src test",
"format": "prettier --write src test package.json",
"format:check": "prettier --check src test package.json",
"typecheck": "tsc --noEmit",
"docs": "typedoc && cat docs/api-intro.md docs/README.md docs/api-footer.md > docs/README.tmp && mv docs/README.tmp docs/README.md",
"test:manual": "pnpm build && cp dist/annyang.iife.min.js test-manual/ && npx esbuild test-manual/esm-app.js --bundle --alias:annyang=./dist/annyang.js --outfile=test-manual/dist/esm-app.js && npx esbuild test-manual/cjs-app.js --bundle --alias:annyang=./dist/annyang.cjs --outfile=test-manual/dist/cjs-app.js && npx http-server test-manual -p 8081 -c-1 -o",
"demo": "concurrently -n build,serve -c blue,green \"tsup --watch\" \"npx http-server . -p 8080 -c-1\"",
"prepublishOnly": "pnpm test && pnpm lint && pnpm typecheck && pnpm build && pnpm docs"
},
"devDependencies": {
"@types/dom-speech-recognition": "^0.0.9",
"concurrently": "^9.2.1",
"corti": "^2.1.0",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.8.1",
"tsup": "^8.5.1",
"typedoc": "^0.28.18",
"typedoc-plugin-markdown": "^4.11.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.58.0",
"vitest": "^4.1.2"
},
"packageManager": "pnpm@10.30.3",
"pnpm": {
"overrides": {
"flatted": ">=3.4.0"
}
}
}