-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
113 lines (113 loc) · 3.98 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "@photostructure/fs-metadata",
"version": "0.1.6",
"description": "Cross-platform native filesystem metadata retrieval for Node.js",
"homepage": "https://photostructure.github.io/fs-metadata/",
"types": "./dist/types/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/photostructure/fs-metadata.git"
},
"license": "MIT",
"scripts": {
"install": "node-gyp-build",
"clean": "run-p clean:*",
"clean:dist": "del-cli coverage dist docs \"*.tsbuildinfo\"",
"clean:gyp-cache": "del-cli build %USERPROFILE%/.node-gyp ~/.node-gyp",
"clean:gyp": "node-gyp clean",
"node-gyp-rebuild": "node-gyp rebuild",
"configure": "node scripts/configure.mjs",
"prebuildify": "prebuildify --napi --tag-libc --strip",
"prebuild": "run-s configure prebuildify",
"compile": "run-p compile:*",
"compile:esm": "tsc -p tsconfig.esm.json --noEmit",
"compile:cjs": "tsc -p tsconfig.cjs.json --noEmit",
"compile:types": "tsc -p tsconfig.types.json",
"postcompile:types": "mv dist/types/index.d.mts dist/types/index.d.ts",
"watch": "tsc --watch",
"bundle": "run-p bundle:* compile:types",
"bundle:cjs": "tsup src/index.cts --format cjs --tsconfig tsconfig.cjs.json",
"bundle:esm": "tsup src/index.mts --format esm --tsconfig tsconfig.esm.json",
"docs": "typedoc --tsconfig tsconfig.esm.json --out docs src/index.mts",
"jest:coverage": "jest --coverage",
"jest:watch": "npm t -- --watch",
"jest:clear": "jest --clearCache",
"// tests": "`compile` validates the typescript compiles with tsc. `lint` checks for style issues. `bundle` uses tsup to emit the CJS and ESM rollups that the integration tests depend on. `test:*` runs the tests.",
"tests": "run-s compile lint bundle test:*",
"test": "npm run test:cjs",
"test:cjs": "jest --config jest.config.cjs",
"test:esm": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --config jest.config.mjs",
"// test:memory:todo": "set up valgrind or similar",
"test:memory": "cross-env TEST_MEMORY=1 node --expose-gc --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --config jest.config.mjs --no-coverage src/memory.test.ts",
"lint": "eslint",
"lint:fix": "eslint --fix",
"fmt": "run-p fmt:*",
"// fmt:cpp": "on ubuntu: `sudo apt install clang-format`",
"fmt:cpp": "clang-format --style=LLVM -i src/*.cpp src/*/*.cpp src/*/*.h || true",
"fmt:js": "prettier --write \"scripts/**/*.?js\" \"*.?js\"",
"fmt:json": "prettier --write \"**/*.json\"",
"fmt:pkg": "npm pkg fix",
"fmt:ts": "prettier --write \"**/*.(c|m)?ts\"",
"precommit": "run-s fmt clean prebuild tests",
"prepare-release": "npm run bundle",
"release": "release-it"
},
"gypfile": true,
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18.0.0"
},
"os": [
"darwin",
"linux",
"win32"
],
"cpu": [
"x64",
"arm64"
],
"keywords": [
"filesystem",
"metadata",
"native",
"node-addon",
"windows",
"linux",
"macos",
"cross-platform"
],
"dependencies": {
"node-addon-api": "^8.3.0",
"node-gyp-build": "^4.8.4"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"cross-env": "^7.0.3",
"del-cli": "^6.0.0",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"jest-environment-node": "^29.7.0",
"jest-extended": "^4.0.2",
"jest": "^29.7.0",
"node-gyp": "^11.0.0",
"npm-run-all": "4.1.5",
"prebuildify": "^6.0.1",
"prettier-plugin-organize-imports": "4.1.0",
"prettier": "^3.4.2",
"release-it": "^17.10.0",
"terser": "^5.37.0",
"ts-jest": "^29.2.5",
"tsup": "^8.3.5",
"typedoc": "^0.27.5",
"typescript-eslint": "^8.18.1",
"typescript": "^5.7.2"
}
}