Skip to content

Commit 7748cba

Browse files
committed
chore: simplify scripts and config
1 parent 4e665d7 commit 7748cba

File tree

13 files changed

+15
-21
lines changed

13 files changed

+15
-21
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ When you run `pnpm dev` under app, sub-projects start in topological order: firs
7474
```json
7575
{
7676
"scripts": {
77-
"dev": "rslib build --watch"
77+
"dev": "rslib -w"
7878
}
7979
}
8080
```
@@ -144,7 +144,7 @@ Consider a scenario where docs and lib are in the same project, and docs needs t
144144

145145
```
146146
"scripts": {
147-
"dev": "rslib build --watch",
147+
"dev": "rslib -w",
148148
"doc": "rspress dev"
149149
},
150150
```

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ lib2 依赖了 lib3:
7070
```json
7171
{
7272
"scripts": {
73-
"dev": "rslib build --watch"
73+
"dev": "rslib -w"
7474
}
7575
}
7676
```
@@ -136,7 +136,7 @@ pluginWorkspaceDev({
136136
```
137137
```
138138
"scripts": {
139-
"dev": "rslib build --watch",
139+
"dev": "rslib -w",
140140
"doc": "rspress dev"
141141
},
142142
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"dist"
2020
],
2121
"scripts": {
22-
"build": "rslib build",
22+
"build": "rslib",
2323
"bump": "npx bumpp",
24-
"dev": "rslib build --watch",
24+
"dev": "rslib -w",
2525
"lint": "biome check .",
2626
"lint:write": "biome check . --write",
2727
"prepare": "simple-git-hooks && npm run build",

rslib.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import { defineConfig } from '@rslib/core';
33
export default defineConfig({
44
lib: [
55
{
6-
format: 'esm',
76
syntax: 'es2021',
87
dts: true,
9-
experiments: { advancedEsm: true },
108
},
119
{ format: 'cjs', syntax: 'es2021' },
1210
],

test/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.0",
55
"scripts": {
66
"build": "rsbuild build",
7-
"dev": "rsbuild dev"
7+
"dev": "rsbuild"
88
},
99
"dependencies": {
1010
"@e2e/workspace-dev-components": "workspace:*"

test/components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"dist"
1414
],
1515
"scripts": {
16-
"build": "rslib build",
17-
"dev": "rslib build --watch"
16+
"build": "rslib",
17+
"dev": "rslib -w"
1818
},
1919
"devDependencies": {
2020
"@e2e/workspace-dev-utils": "workspace:*",

test/components/rslib.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default defineConfig({
1111
{
1212
bundle: false,
1313
dts: true,
14-
format: 'esm',
1514
},
1615
],
1716
output: {

test/doc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"dist"
1414
],
1515
"scripts": {
16-
"build": "rslib build",
17-
"dev": "rslib build --watch",
16+
"build": "rslib",
17+
"dev": "rslib -w",
1818
"doc": "rspress dev",
1919
"doc:build": "rspress build",
2020
"doc:preview": "rspress preview"

test/doc/rslib.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default defineConfig({
66
{
77
bundle: false,
88
dts: true,
9-
format: 'esm',
109
},
1110
],
1211
output: {

test/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"dist"
1919
],
2020
"scripts": {
21-
"build": "rslib build",
22-
"dev": "rslib build --watch"
21+
"build": "rslib",
22+
"dev": "rslib -w"
2323
},
2424
"dependencies": {
2525
"@e2e/workspace-dev-utils2": "workspace:*"

0 commit comments

Comments
 (0)