-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
36 lines (36 loc) · 1.61 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
{
"private": true,
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "^1.8.1",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@types/node": "^20",
"fast-glob": "^3.3.2",
"simple-git-hooks": "^2.9.0",
"typescript": "5.0.4"
},
"scripts": {
"build": "pnpm clean && pnpm run build:types && pnpm run build:cjs && pnpm run build:esm",
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./src/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./src/_cjs/package.json",
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./src/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./src/_esm/package.json",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./src/_types --emitDeclarationOnly --declaration --declarationMap",
"clean": "rm -rf *.tsbuildinfo src/*.tsbuildinfo src/_esm src/_cjs src/_types",
"release:check": "changeset status --verbose --since=origin/main",
"release:publish": "pnpm install && pnpm build && changeset publish",
"release:version": "changeset version && pnpm install --lockfile-only",
"format": "biome format --write",
"lint": "biome check",
"preconstruct": "bun .scripts/preconstruct.ts",
"preinstall": "npx only-allow pnpm",
"typecheck": "tsc --noEmit",
"dev:docs": "pnpm -r --filter site dev",
"prepare": "npx simple-git-hooks"
},
"simple-git-hooks": {
"pre-commit": "pnpm format && pnpm lint"
},
"publishConfig": {
"access": "public"
}
}