Skip to content

Commit adc8273

Browse files
committed
setup @thirdweb-dev/nexus package
1 parent f790c9f commit adc8273

File tree

20 files changed

+3123
-1494
lines changed

20 files changed

+3123
-1494
lines changed

.changeset/witty-spies-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
expose some useful erc20 extensions

packages/nexus/biome.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"extends": "//",
4+
"overrides": [
5+
{
6+
"assist": {
7+
"actions": {
8+
"source": {
9+
"useSortedKeys": "off"
10+
}
11+
}
12+
},
13+
"includes": ["package.json"]
14+
}
15+
]
16+
}

packages/nexus/knip.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": ["src/exports/**"],
4+
"ignore": ["src/**/__generated__/**", "**/*.bench.ts"],
5+
"ignoreBinaries": ["printf"],
6+
"ignoreDependencies": ["tslib"],
7+
"project": ["src/**/*.{ts,tsx}"],
8+
"rules": {
9+
"enumMembers": "off",
10+
"optionalPeerDependencies": "off"
11+
}
12+
}

packages/nexus/package.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"author": "thirdweb eng <[email protected]>",
3+
"browser": {
4+
"crypto": false
5+
},
6+
"bugs": {
7+
"url": "https://github.com/thirdweb-dev/js/issues"
8+
},
9+
"dependencies": {
10+
"x402": "0.7.0",
11+
"zod": "3.25.75"
12+
},
13+
"devDependencies": {
14+
"@biomejs/biome": "2.0.6",
15+
"knip": "5.60.2",
16+
"rimraf": "6.0.1",
17+
"size-limit": "11.2.0",
18+
"typescript": "5.8.3"
19+
},
20+
"engines": {
21+
"node": ">=22"
22+
},
23+
"exports": {
24+
".": {
25+
"types": "./dist/types/exports/nexus.d.ts",
26+
"import": "./dist/esm/exports/nexus.js",
27+
"default": "./dist/cjs/exports/nexus.js"
28+
}
29+
},
30+
"files": [
31+
"dist/*",
32+
"src/*",
33+
"!**/*.tsbuildinfo",
34+
"!**/*.test.ts",
35+
"!**/*.test.tsx",
36+
"!**/*.test.ts.snap",
37+
"!**/*.test-d.ts",
38+
"!**/*.bench.ts",
39+
"!tsconfig.build.json"
40+
],
41+
"license": "Apache-2.0",
42+
"main": "./dist/cjs/exports/nexus.js",
43+
"module": "./dist/esm/exports/nexus.js",
44+
"name": "@thirdweb-dev/nexus",
45+
"peerDependencies": {
46+
"typescript": ">=5.0.4"
47+
},
48+
"peerDependenciesMeta": {
49+
"typescript": {
50+
"optional": true
51+
}
52+
},
53+
"repository": {
54+
"type": "git",
55+
"url": "git+https://github.com/thirdweb-dev/js.git#main"
56+
},
57+
"scripts": {
58+
"build": "pnpm clean && pnpm build:types && pnpm build:cjs && pnpm build:esm",
59+
"build:cjs": "tsc --noCheck --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
60+
"build:esm": "tsc --noCheck --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json",
61+
"build:types": "tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
62+
"clean": "rimraf dist",
63+
"dev": "tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch",
64+
"dev:cjs": "printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json && tsc --noCheck --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false --watch",
65+
"dev:esm": "printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json && tsc --noCheck --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm --watch",
66+
"fix": "biome check ./src --fix",
67+
"format": "biome format ./src --write",
68+
"knip": "knip",
69+
"lint": "knip && biome check ./src && tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --noEmit",
70+
"size": "size-limit",
71+
"typecheck": "tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --noEmit"
72+
},
73+
"sideEffects": false,
74+
"type": "module",
75+
"types": "./dist/types/exports/nexus.d.ts",
76+
"typings": "./dist/types/exports/nexus.d.ts",
77+
"version": "0.0.0"
78+
}

0 commit comments

Comments
 (0)