Skip to content

Commit 186f5a0

Browse files
committed
chore: test tsdown
1 parent 79ecdce commit 186f5a0

File tree

12 files changed

+2649
-1825
lines changed

12 files changed

+2649
-1825
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
; This is needed for prettier to be able to use the plugin specified by the `@sanity/prettier-config` preset
2+
public-hoist-pattern[]=*prettier*
3+
; @sanity/ui uses `styled-components`
4+
public-hoist-pattern[]=styled-components

.oxlintrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "react", "oxc", "import"],
4+
"ignorePatterns": ["**/dist/*", "**/.workshop/*"],
5+
"categories": {
6+
"correctness": "error",
7+
"perf": "error"
8+
},
9+
"rules": {
10+
"import/no-cycle": "error",
11+
"eslint/no-console": "error",
12+
"react/rules-of-hooks": "error",
13+
"react-in-jsx-scope": "off"
14+
}
15+
}

package.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export default defineConfig({
77
},
88
},
99
tsconfig: 'tsconfig.dist.json',
10+
// dts: 'rolldown',
1011
})

package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build": "run-s clean generate pkg:build pkg:check",
3939
"clean": "rimraf .workshop dist",
4040
"commit": "cz",
41-
"dev": "run-p workshop:dev",
41+
"dev": "pnpm workshop:dev",
4242
"format": "prettier --write --cache --ignore-unknown .",
4343
"generate": "rimraf src/icons && node -r esbuild-register scripts/generate.ts",
4444
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx --quiet",
@@ -64,7 +64,6 @@
6464
]
6565
},
6666
"browserslist": "extends @sanity/browserslist-config",
67-
"prettier": "@sanity/prettier-config",
6867
"release": {
6968
"branches": [
7069
"+([0-9])?(.{+([0-9]),x}).x",
@@ -81,31 +80,32 @@
8180
"extends": "@sanity/semantic-release-preset"
8281
},
8382
"devDependencies": {
84-
"@babel/core": "^7.26.9",
85-
"@babel/preset-env": "^7.26.9",
86-
"@babel/preset-react": "^7.26.3",
87-
"@babel/preset-typescript": "^7.26.0",
83+
"@babel/core": "^7.27.4",
84+
"@babel/preset-env": "^7.27.2",
85+
"@babel/preset-react": "^7.27.1",
86+
"@babel/preset-typescript": "^7.27.1",
8887
"@commitlint/cli": "^19.7.1",
8988
"@commitlint/config-conventional": "^19.7.1",
90-
"@sanity/pkg-utils": "^7.0.4",
91-
"@sanity/prettier-config": "^1.0.3",
89+
"@ianvs/prettier-plugin-sort-imports": "^4.4.2",
90+
"@sanity/pkg-utils": "^7.6.2",
91+
"@sanity/prettier-config": "^1.0.4",
9292
"@sanity/semantic-release-preset": "^5.0.0",
93-
"@sanity/ui": "^2.14.4",
94-
"@sanity/ui-workshop": "^2.0.31",
93+
"@sanity/ui": "^2.16.2",
94+
"@sanity/ui-workshop": "^2.1.4",
9595
"@svgr/core": "^8.1.0",
9696
"@testing-library/jest-dom": "^6.6.3",
97-
"@testing-library/react": "^16.2.0",
97+
"@testing-library/react": "^16.3.0",
9898
"@types/jest": "^29.5.14",
9999
"@types/node": "^22.13.4",
100-
"@types/react": "^19.0.10",
101-
"@types/react-dom": "^19.0.4",
100+
"@types/react": "^19.1.8",
101+
"@types/react-dom": "^19.1.6",
102102
"@typescript-eslint/eslint-plugin": "^8.25.0",
103103
"@typescript-eslint/parser": "^8.25.0",
104104
"babel-plugin-react-compiler": "beta",
105105
"camelcase": "^8.0.0",
106106
"commitizen": "^4.3.1",
107107
"cz-conventional-changelog": "^3.3.0",
108-
"esbuild": "^0.25.0",
108+
"esbuild": "^0.25.5",
109109
"esbuild-register": "^3.6.0",
110110
"eslint": "^8.57.1",
111111
"eslint-config-prettier": "^10.0.2",
@@ -124,32 +124,33 @@
124124
"mkdirp": "^3.0.1",
125125
"module-alias": "^2.2.3",
126126
"npm-run-all2": "^7.0.2",
127+
"oxlint": "^1.2.0",
127128
"prettier": "^3.5.3",
128-
"react": "^19.0.0",
129+
"react": "^19.1.0",
129130
"react-compiler-runtime": "beta",
130-
"react-dom": "^19.0.0",
131-
"react-is": "^19.0.0",
131+
"react-dom": "^19.1.0",
132+
"react-is": "^19.1.0",
132133
"rimraf": "^6.0.1",
133134
"semantic-release": "^24.2.3",
134-
"styled-components": "^6.1.15",
135-
"typescript": "5.7.3"
135+
"tsdown": "0.12.8",
136+
"typescript": "5.8.3"
136137
},
137138
"peerDependencies": {
138139
"react": "^18.3 || ^19.0.0-0"
139140
},
140-
"packageManager": "pnpm@9.15.9",
141+
"packageManager": "pnpm@10.12.1",
141142
"engines": {
142143
"node": ">=14.0.0"
143144
},
144145
"publishConfig": {
145146
"access": "public"
146147
},
147-
"esm.sh": {
148-
"bundle": false
149-
},
150148
"pnpm": {
151149
"overrides": {
152150
"conventional-changelog-conventionalcommits": ">= 8.0.0"
153151
}
152+
},
153+
"esm.sh": {
154+
"bundle": false
154155
}
155156
}

0 commit comments

Comments
 (0)