type-a-bin 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +680 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mock-bin-preload.d.ts +21 -0
- package/dist/mock-bin-preload.js +221 -0
- package/dist/mock-bin-windows.d.ts +10 -0
- package/dist/mock-bin-windows.js +182 -0
- package/dist/mock-bin.d.ts +64 -0
- package/dist/mock-bin.js +147 -0
- package/package.json +57 -0
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "type-a-bin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Mock any executable binary for testing in Node.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": "==26"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@ast-grep/cli": "^0.44.1",
|
|
23
|
+
"@ast-grep/cli-linux-x64-gnu": "^0.44.1",
|
|
24
|
+
"@biomejs/biome": "^2.5.4",
|
|
25
|
+
"@types/node": "^26.1.1",
|
|
26
|
+
"convert-to-arrow": "^1.1.4",
|
|
27
|
+
"del-cli": "^7.0.0",
|
|
28
|
+
"npm-run-all2": "^9.0.2",
|
|
29
|
+
"oxlint": "^1.74.0",
|
|
30
|
+
"oxlint-tsgolint": "^0.25.0",
|
|
31
|
+
"tsx": "^4.23.1",
|
|
32
|
+
"typescript": "^7.0.2",
|
|
33
|
+
"vitest": "^4.1.10"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build:lib": "pnpm del-cli dist && pnpm tsc && pnpm del-cli dist/tests",
|
|
37
|
+
"build": "pnpm build:lib && pnpm -r build",
|
|
38
|
+
"format:arrows": "pnpm convert-to-arrow \"{src,packages/*/src}/**/*.{ts,tsx}\"",
|
|
39
|
+
"format:biome": "pnpm biome format --write .",
|
|
40
|
+
"format:braces": "pnpm strip-braces .",
|
|
41
|
+
"format:check": "pnpm biome check --write .",
|
|
42
|
+
"format": "npm-run-all format:arrows format:braces format:biome format:check format:md",
|
|
43
|
+
"lint:biome": "pnpm biome check .",
|
|
44
|
+
"lint:oxlint": "pnpm oxlint .",
|
|
45
|
+
"lint": "npm-run-all lint:biome lint:oxlint lint:exports lint:functions lint:file-comment lint:md lint:peer-deps",
|
|
46
|
+
"strip-braces": "pnpm exec ast-grep scan --rule .ast-grep/rules/strip-braces.yml -U",
|
|
47
|
+
"lint:exports": "pnpm exec ast-grep scan --rule .ast-grep/rules/no-inline-export.yml --error=no-inline-export --globs '!**/*.d.ts' .",
|
|
48
|
+
"lint:functions": "pnpm exec ast-grep scan --rule .ast-grep/rules/no-function-declaration.yml --error=no-function-declaration --globs '!**/*.d.ts' .",
|
|
49
|
+
"lint:file-comment": "pnpm exec ast-grep scan --rule .ast-grep/rules/no-file-comment.yml --error=no-file-comment --globs '!**/*.d.ts' .",
|
|
50
|
+
"lint:md": "tsx scripts/pandoc-md.mts --check",
|
|
51
|
+
"lint:peer-deps": "tsx scripts/peer-deps.mts",
|
|
52
|
+
"format:md": "tsx scripts/pandoc-md.mts --write",
|
|
53
|
+
"test:lib": "vitest run",
|
|
54
|
+
"test": "pnpm build:lib && pnpm test:lib && pnpm -r test",
|
|
55
|
+
"test:watch": "vitest"
|
|
56
|
+
}
|
|
57
|
+
}
|