-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
82 lines (82 loc) · 3.14 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
{
"workspaces": ["examples/*", "docs", "src", "test"],
"private": true,
"type": "module",
"scripts": {
"build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
"build:cjs": "tsc --project ./tsconfig.build.json --outDir ./src/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./src/_cjs/package.json",
"build:esm": "tsc --project ./tsconfig.build.json --module es2022 --moduleResolution bundler --outDir ./src/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./src/_esm/package.json",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --moduleResolution bundler --declarationDir ./src/_types --emitDeclarationOnly --declaration --declarationMap",
"changeset": "changeset",
"changeset:release": "bun run build && bun run prepublishOnly && changeset publish",
"changeset:version": "changeset version && bun scripts/updateVersion.ts && bun install --lockfile-only",
"clean": "rimraf src/_esm src/_cjs src/_types *.tsbuildinfo",
"docs:build": "bun run build && cd docs && bun run build",
"docs:dev": "cd docs && bun run dev",
"format": "biome format . --write",
"generate": "bun scripts/concatDocs.ts",
"lint": "biome check .",
"lint:fix": "bun run lint --write",
"postinstall": "bun run generate && bun x patch-package",
"prepare": "bun x simple-git-hooks",
"prepublishOnly": "bun scripts/prepublishOnly.ts",
"size": "size-limit",
"test": "vitest -c ./test/vitest.config.ts dev",
"test:cov": "vitest run -c ./test/vitest.integration.config.ts --coverage",
"test:integration": "vitest -c ./test/vitest.integration.config.ts",
"test:typecheck": "vitest typecheck -c ./test/vitest.config.ts --no-threads",
"trace": "tsc --noEmit --generateTrace ./trace --incremental false --project playground/tsconfig.json",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@biomejs/biome": "^1.8.1",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.27.5",
"@size-limit/preset-small-lib": "^9.0.0",
"@types/fs-extra": "^11.0.4",
"@types/json-schema": "^7.0.15",
"@types/node": "20.8.1",
"@vitest/coverage-v8": "^0.34.6",
"ajv": "^8.16.0",
"ajv-formats": "^2.1.1",
"bun": "^1.1.12",
"fs-extra": "^11.2.0",
"json-schema": "^0.4.0",
"json-schema-deref-sync": "^0.14.0",
"openai": "4.50.0",
"rimraf": "^5.0.7",
"simple-git-hooks": "^2.11.1",
"size-limit": "^9.0.0",
"typescript": "^5.4.5",
"which-pm-runs": "1.1.0",
"zod": "^3.23.8"
},
"simple-git-hooks": {
"pre-commit": "bun run format && bun run lint:fix"
},
"size-limit": [
{
"name": "hopfield (esm)",
"path": "src/_esm/index.js",
"limit": "1 KB",
"import": "*"
},
{
"name": "hopfield (cjs)",
"path": "src/_cjs/index.js",
"limit": "1 KB"
},
{
"name": "hop (esm)",
"import": "{ hop }",
"path": "src/_esm/index.js",
"limit": "600 B"
},
{
"name": "hop (cjs)",
"import": "{ hop }",
"path": "src/_cjs/index.js",
"limit": "600 B"
}
]
}