Skip to content

Commit

Permalink
chore(build): switch to Rslib (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Nov 9, 2024
1 parent 8380f52 commit e0814dd
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 12 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"build": "rslib build",
"dev": "rslib build --watch",
"lint": "biome check .",
"lint:write": "biome check . --write",
"prepare": "simple-git-hooks && npm run build",
Expand All @@ -43,6 +43,7 @@
"@playwright/test": "^1.48.2",
"@rsbuild/core": "^1.1.0",
"@rsbuild/plugin-less": "1.1.0",
"@rslib/core": "^0.0.16",
"@types/node": "^20.17.6",
"nano-staged": "^0.8.0",
"playwright": "^1.48.2",
Expand Down
182 changes: 182 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions rslib.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
{ format: 'esm', syntax: 'es2021', dts: true },
{ format: 'cjs', syntax: 'es2021' },
],
output: {
target: 'node',
},
});
10 changes: 0 additions & 10 deletions tsup.config.ts

This file was deleted.

0 comments on commit e0814dd

Please sign in to comment.