-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
76 lines (76 loc) · 2.48 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
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"name": "@npcz/magic",
"version": "1.3.16",
"description": "Emscripten port of libmagic (https://darwinsys.com/file/) with javascript interface",
"keywords": [
"libmagic",
"file",
"identification",
"mime",
"wasm"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/npcz/magic.git",
"homepage": "https://github.com/npcz/magic#readme",
"author": "Abdessattar Sassi <[email protected]>",
"license": "BSD-3-Clause",
"scripts": {
"build:dockerimage": "docker image inspect -f '.' mydockerimage || docker build --network=host -t mydockerimage .",
"build:emscripten": "napa && docker run --platform linux/amd64 --rm -v $(pwd):/src --user $(id -u):$(id -g) mydockerimage ./build.sh",
"build:lib": "tsc -p tsconfig.json",
"build:examples": "tsc -p examples/tsconfig.json",
"build": "yarn build:dockerimage && yarn build:emscripten && yarn build:lib && yarn build:examples",
"clean": "rimraf build dist coverage lib/magic-js.js lib/magic-js.wasm",
"lint": "eslint . --ignore-path .gitignore --ext .js,.ts",
"test": "jest",
"changelog": "auto-changelog -p && git add CHANGELOG.md",
"example:raw": "node build/examples/raw-binding-example.js",
"example:magic": "node build/examples/file-magic-example.js",
"examples": "yarn example:raw && yarn example:magic"
},
"devDependencies": {
"@types/jest": "^29.5.8",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"auto-changelog": "^2.4.0",
"copyfiles": "^2.4.1",
"eslint": "^8.53.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"lodash": "4.17.21",
"napa": "^3.0.0",
"node": "^21.1.0",
"prettier": "^3.1.0",
"prettier-eslint": "^16.1.2",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"resolutions": {
"ini": "^4.1.1",
"bl": "^6.0.8",
"handlebars": "^4.7.8",
"ws": "^8.14.2",
"path-parse": "^1.0.7",
"tar": "^6.2.0",
"tmpl": "^1.0.5",
"ansi-regex": "^5.0.1",
"got": "^11.8.2",
"minimatch": "^9.0.3",
"word-wrap": "^1.2.5",
"semver": "^7.5.4",
"http-cache-semantics": "^4.1.1",
"@babel/traverse": "^7.23.3"
},
"napa-config": {
"cache": false,
"log-level": "error"
},
"napa": {
"c-libmagic": "git+https://github.com/file/file.git#FILE5_45"
}
}