-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 3.9 KB
/
package.json
File metadata and controls
103 lines (103 loc) · 3.9 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
{
"name": "ts-mocker",
"type": "module",
"version": "0.1.7",
"private": true,
"workspaces": [
"packages/*"
],
"description": "ts-mocker is a performance-focused and lightweight faker library for TypeScript.",
"author": "Chris Breuer <chris@stacksjs.org>",
"license": "MIT",
"homepage": "https://github.com/stacksjs/ts-mocker#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/stacksjs/ts-mocker.git"
},
"bugs": {
"url": "https://github.com/stacksjs/ts-mocker/issues"
},
"keywords": [
"faker",
"fake-data",
"test-data",
"mock-data",
"typescript",
"locale",
"i18n",
"internationalization",
"seeding",
"testing",
"fixtures",
"random",
"generator",
"mock",
"bun",
"performance",
"lightweight",
"cli"
],
"exports": {
".": {
"types": "./packages/core/dist/index.d.ts",
"import": "./packages/core/dist/src/index.js"
},
"./*": {
"import": "./packages/core/dist/*"
}
},
"module": "./packages/core/dist/src/index.js",
"types": "./packages/core/dist/index.d.ts",
"bin": {
"ts-mocker": "./packages/core/dist/bin/cli.js",
"mock": "./packages/core/dist/bin/cli.js"
},
"files": [
"README.md",
"packages/core/dist"
],
"scripts": {
"build": "bun run scripts/build-all.ts",
"build:old": "bun --bun build.ts && bun run compile",
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/mock",
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/mock-linux-x64",
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/mock-linux-arm64",
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/mock-windows-x64.exe",
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/mock-darwin-x64",
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/mock-darwin-arm64",
"zip": "bun run zip:all",
"zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64",
"zip:linux-x64": "zip -j bin/mock-linux-x64.zip bin/mock-linux-x64",
"zip:linux-arm64": "zip -j bin/mock-linux-arm64.zip bin/mock-linux-arm64",
"zip:windows-x64": "zip -j bin/mock-windows-x64.zip bin/mock-windows-x64.exe",
"zip:darwin-x64": "zip -j bin/mock-darwin-x64.zip bin/mock-darwin-x64",
"zip:darwin-arm64": "zip -j bin/mock-darwin-arm64.zip bin/mock-darwin-arm64",
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
"test": "bun test",
"bench": "cd packages/benchmarks && bun run bench",
"lint": "bunx --bun pickier .",
"lint:fix": "bunx --bun pickier . --fix",
"format": "bunx --bun pickier . --format",
"format:fix": "bunx --bun pickier . --format --write",
"changelog": "bunx --bun @stacksjs/logsmith --verbose",
"changelog:generate": "bunx --bun @stacksjs/logsmith --output CHANGELOG.md",
"release": "bun run changelog:generate && bunx --bun @stacksjs/bumpx prompt --recursive",
"dev:docs": "bun --bun bunpress dev docs",
"build:docs": "bun --bun bunpress build docs",
"preview:docs": "bun --bun bunpress preview docs",
"typecheck": "bun --bun tsc --noEmit"
},
"devDependencies": {
"better-dx": "^0.2.7"
},
"git-hooks": {
"pre-commit": {
"staged-lint": {
"*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix"
}
},
"commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"
}
}