-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
33 lines (33 loc) · 1.62 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
{
"type": "module",
"private": true,
"scripts": {
"bench": "vitest bench",
"test": "vitest -c ./test/vitest.config.ts dev",
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
"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",
"changeset:prepublish": "bun ./scripts/prepublishOnly.ts && pnpm build",
"changeset:publish": "pnpm changeset:prepublish && changeset publish",
"changeset:version": "changeset version && pnpm install --lockfile-only && pnpm format",
"clean": "rm -rf *.tsbuildinfo src/*.tsbuildinfo src/_esm src/_cjs src/_types",
"lint": "biome check --fix",
"format": "biome format --write",
"docs:dev": "pnpm --filter site dev",
"docs:build": "pnpm --filter site build",
"prepublishOnly": "bun ./scripts/prepublishOnly.ts"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@changesets/cli": "^2.27.7",
"@conflux-dev/conflux-address-js": "^2.0.1",
"@conflux-dev/hdwallet": "^0.1.2",
"@types/bun": "^1.1.6",
"@types/node": "^20.14.10",
"cip-23": "^0.2.0",
"js-conflux-sdk": "^2.4.7",
"typescript": "^5.5.3",
"vitest": "^2.1.3"
}
}