Skip to content

Commit 72ac26b

Browse files
authored
chore(build): switch to Rslib (#15)
1 parent 9e1fb75 commit 72ac26b

File tree

4 files changed

+69
-12
lines changed

4 files changed

+69
-12
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"types": "./dist/index.d.ts",
1717
"files": ["dist"],
1818
"scripts": {
19-
"build": "tsup",
20-
"dev": "tsup --watch",
19+
"build": "rslib build",
20+
"dev": "rslib build --watch",
2121
"lint": "biome check .",
2222
"lint:write": "biome check . --write",
2323
"prepare": "simple-git-hooks && npm run build",
@@ -63,6 +63,7 @@
6363
"@biomejs/biome": "^1.9.4",
6464
"@playwright/test": "^1.48.2",
6565
"@rsbuild/core": "^1.0.19",
66+
"@rslib/core": "^0.0.16",
6667
"@types/node": "^22.8.6",
6768
"nano-staged": "^0.8.0",
6869
"playwright": "^1.48.2",

pnpm-lock.yaml

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rslib.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from '@rslib/core';
2+
3+
export default defineConfig({
4+
lib: [
5+
{ format: 'esm', syntax: 'es2021', dts: true },
6+
{ format: 'cjs', syntax: 'es2021' },
7+
],
8+
output: {
9+
target: 'node',
10+
},
11+
});

tsup.config.ts

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

0 commit comments

Comments
 (0)