Skip to content

Commit b368dd6

Browse files
committed
chore: simplify scripts and config
1 parent 9b9d319 commit b368dd6

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

package.json

Lines changed: 2 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": "rslib build",
20-
"dev": "rslib build --watch",
19+
"build": "rslib",
20+
"dev": "rslib -w",
2121
"lint": "biome check .",
2222
"lint:write": "biome check . --write",
2323
"prepare": "simple-git-hooks && npm run build",

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "0.0.0",
55
"scripts": {
6-
"dev": "npx rsbuild dev",
6+
"dev": "npx rsbuild",
77
"build": "npx rsbuild build"
88
}
99
}

rslib.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import { defineConfig } from '@rslib/core';
22

33
export default defineConfig({
44
lib: [
5-
{ format: 'esm', syntax: 'es2021', dts: true },
5+
{ syntax: 'es2021', dts: true },
66
{ format: 'cjs', syntax: 'es2021' },
77
],
8-
output: {
9-
target: 'node',
10-
},
118
});

0 commit comments

Comments
 (0)