-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
189 lines (189 loc) · 6.69 KB
/
package.json
File metadata and controls
189 lines (189 loc) · 6.69 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"name": "globlin",
"version": "1.0.0-beta.1",
"description": "2-3x faster drop-in replacement for glob v13, built with Rust",
"main": "./js/index.js",
"types": "./js/index.d.ts",
"exports": {
".": {
"types": "./js/index.d.ts",
"import": "./js/index.js",
"require": "./js/index.js"
},
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/CapSoftware/globlin.git"
},
"homepage": "https://github.com/CapSoftware/globlin#readme",
"bugs": {
"url": "https://github.com/CapSoftware/globlin/issues"
},
"author": "",
"license": "MIT",
"keywords": [
"glob",
"globbing",
"pattern",
"match",
"file",
"directory",
"fast",
"rust",
"napi",
"native",
"performance",
"drop-in",
"replacement",
"minimatch",
"wildcard"
],
"files": [
"index.js",
"index.d.ts",
"js/**/*.js",
"js/**/*.d.ts",
"js/**/*.d.ts.map",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"napi": {
"name": "globlin",
"package": {
"name": "@capsoftware/globlin"
},
"triples": {
"defaults": true,
"additional": [
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc"
]
}
},
"engines": {
"node": ">=20.0.0"
},
"os": [
"darwin",
"linux",
"win32"
],
"cpu": [
"x64",
"arm64",
"ia32"
],
"scripts": {
"artifacts": "napi artifacts",
"build": "napi build --platform --release && npm run build:ts",
"build:debug": "napi build --platform && npm run build:ts",
"build:ts": "tsc -p tsconfig.build.json",
"build:native": "napi build --platform --release",
"clean": "rm -rf js/*.js js/*.mjs js/*.d.ts js/*.map",
"prepublishOnly": "npm run clean && npm run build",
"lint": "npm run lint:ts && npm run lint:rust",
"lint:ts": "eslint 'js/**/*.ts' 'tests/**/*.ts' 'benches/**/*.ts'",
"lint:rust": "cargo clippy -- -D warnings",
"lint:fix": "npm run lint:ts -- --fix",
"format": "npm run format:ts && npm run format:rust",
"format:ts": "prettier --write 'js/**/*.ts' 'tests/**/*.ts' 'benches/**/*.ts' 'benches/**/*.js'",
"format:rust": "cargo fmt",
"format:check": "prettier --check 'js/**/*.ts' 'tests/**/*.ts' 'benches/**/*.ts' && cargo fmt -- --check",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:types": "tsd",
"typecheck": "tsc --noEmit",
"coverage": "npm run coverage:js && npm run coverage:rust",
"coverage:js": "vitest run --coverage",
"coverage:rust": "cargo tarpaulin --out Xml --out Html --output-dir coverage/rust --skip-clean --ignore-tests",
"coverage:ci": "npm run coverage:js && cargo tarpaulin --out Xml --output-dir coverage --skip-clean --ignore-tests",
"bench": "bash benches/benchmark.sh",
"bench:small": "bash benches/benchmark.sh small",
"bench:medium": "bash benches/benchmark.sh medium",
"bench:large": "bash benches/benchmark.sh large",
"bench:poc": "npx tsx benches/poc_bench.ts",
"bench:poc:medium": "npx tsx benches/poc_bench.ts --medium",
"bench:poc:all": "npx tsx benches/poc_bench.ts --all",
"bench:phase2": "npx tsx benches/phase2_bench.ts medium",
"bench:phase2:all": "npx tsx benches/phase2_bench.ts all",
"bench:node": "npx tsx benches/node_bench.ts",
"bench:node:small": "npx tsx benches/node_bench.ts --small",
"bench:node:all": "npx tsx benches/node_bench.ts --all",
"bench:rust": "cargo bench",
"bench:ci": "npx tsx benches/bench-ci.ts --output bench-results.json",
"bench:profile": "npx tsx benches/profile_node.ts",
"bench:boundary": "npx tsx benches/profile_boundary.ts",
"bench:parallel": "npx tsx benches/parallel_bench.ts",
"bench:parallel:all": "npx tsx benches/parallel_bench.ts --all",
"bench:parallel:large": "npx tsx benches/parallel_bench.ts --large",
"bench:cache": "npx tsx benches/cache_reuse_bench.ts",
"bench:cache:perf": "npx tsx benches/cache_performance_bench.ts",
"bench:vs-fg": "npx tsx benches/vs_fast_glob_bench.ts",
"bench:vs-fg:all": "npx tsx benches/vs_fast_glob_bench.ts --all",
"bench:vs-fg:large": "npx tsx benches/vs_fast_glob_bench.ts --large",
"bench:api:sync": "npx tsx benches/api/sync_bench.ts",
"bench:api:async": "npx tsx benches/api/async_bench.ts",
"bench:api:async:bottleneck": "npx tsx benches/api/async_bottleneck_analysis.ts",
"bench:api:stream": "npx tsx benches/api/stream_bench.ts",
"bench:api:stream:bottleneck": "npx tsx benches/api/stream_bottleneck_analysis.ts",
"bench:api:iterator": "npx tsx benches/api/iterator_bench.ts",
"bench:api:iterator:bottleneck": "npx tsx benches/api/iterator_bottleneck_analysis.ts",
"bench:api:glob-class": "npx tsx benches/api/glob_class_bench.ts",
"bench:api:glob-class:bottleneck": "npx tsx benches/api/glob_class_bottleneck_analysis.ts",
"bench:api:utility": "npx tsx benches/api/utility_bench.ts",
"bench:api:utility:bottleneck": "npx tsx benches/api/utility_bottleneck_analysis.ts",
"bench:api:with-file-types": "npx tsx benches/api/with_file_types_bench.ts",
"bench:setup": "node benches/setup-fixtures.js",
"bench:setup:huge": "node benches/setup-huge-fixture.js",
"universal": "napi universal",
"version": "napi version"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@napi-rs/cli": "^2.18.0",
"@types/node": "^20.0.0",
"@vitest/coverage-v8": "^1.0.0",
"eslint": "^9.39.2",
"fast-check": "^4.5.3",
"fast-glob": "^3.3.3",
"glob": "^10.3.0",
"prettier": "^3.7.4",
"tsd": "^0.33.0",
"tsx": "^4.7.0",
"typescript": "^5.0.0",
"typescript-eslint": "^8.52.0",
"vitest": "^1.0.0"
},
"dependencies": {
"minimatch": "^10.1.1",
"minipass": "^7.1.2",
"path-scurry": "^2.0.0"
},
"optionalDependencies": {
"@capsoftware/globlin-darwin-arm64": "1.0.0-beta.1",
"@capsoftware/globlin-darwin-x64": "1.0.0-beta.1",
"@capsoftware/globlin-linux-arm64-gnu": "1.0.0-beta.1",
"@capsoftware/globlin-linux-arm64-musl": "1.0.0-beta.1",
"@capsoftware/globlin-linux-x64-gnu": "1.0.0-beta.1",
"@capsoftware/globlin-linux-x64-musl": "1.0.0-beta.1",
"@capsoftware/globlin-win32-arm64-msvc": "1.0.0-beta.1",
"@capsoftware/globlin-win32-ia32-msvc": "1.0.0-beta.1",
"@capsoftware/globlin-win32-x64-msvc": "1.0.0-beta.1"
},
"tsd": {
"directory": "tests",
"testFilePattern": "types.test-d.ts",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "NodeNext",
"module": "NodeNext"
}
}
}