Skip to content

Commit 8738957

Browse files
committed
chore: simplify scripts and config
1 parent d5b46f4 commit 8738957

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
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",
2424
"test": "pnpm run /^test:/",
2525
"test:e2e": "playwright test",
26-
"test:unit": "rstest run",
26+
"test:unit": "rstest",
2727
"bump": "npx bumpp"
2828
},
2929
"simple-git-hooks": {

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +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
],
88
});

0 commit comments

Comments
 (0)