-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
63 lines (63 loc) · 2.11 KB
/
package.json
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
{
"name": "@akpoflash/media-recorder",
"version": "0.0.24",
"description": "",
"main": "./lib/index-cjs.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"sideEffects": false,
"files": [
"lib"
],
"scripts": {
"build": "tsc && npm run rollup && npm run terser",
"rollup": "rollup --external react --input ./lib/index.js --file ./lib/index-cjs.js --format cjs --plugin @rollup/plugin-node-resolve",
"terser": "for file in $(find ./lib -name '*.js'); do terser --compress --mangle --mangle-props reserved=[__esModule],regex=/^__/ --output $file -- $file; done || exit 1",
"clean": "rm -rf ./lib ./docs",
"test": "jest --detectOpenHandles --forceExit",
"docs": "typedoc ./src/main/index.ts",
"publish-docs": "[ -d ./docs ] && [[ ! $(git status --porcelain) ]] && branch=$(git rev-parse --abbrev-ref HEAD) && sha=$(git rev-parse --short HEAD) && t=$(mktemp -d) && cp -R ./docs/ $t && git checkout ghpages && ls -A | grep -wv .git | xargs rm -rf && cp -R $t/ . && git add . && git commit -m \"Updated docs ($sha)\" && git push && git checkout $branch",
"release-docs": "npm run clean && npm run docs && npm run publish-docs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AkpoFlash/media-recorder.git"
},
"author": "Kirill Anisimov",
"license": "MIT",
"bugs": {
"url": "https://github.com/AkpoFlash/media-recorder/issues"
},
"homepage": "https://github.com/AkpoFlash/media-recorder#readme",
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"diagnostics": {
"ignoreCodes": [
151001
]
}
}
}
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.0.0",
"@testing-library/react-hooks": "^7.0.1",
"@types/jest": "^27.0.3",
"@types/react": "^17.0.37",
"jest": "^27.0.2",
"react-test-renderer": "^17.0.2",
"rollup": "^2.50.5",
"terser": "^5.7.0",
"ts-jest": "^27.0.2",
"typedoc": "^0.21.2",
"typescript": "^4.3.2"
},
"peerDependencies": {
"react": ">=16.14.0"
},
"dependencies": {
"react-hookers": "^5.0.0"
}
}