Skip to content

Commit d689cf6

Browse files
committed
chore: simplify Rslib commands and config
1 parent 6e76ee1 commit d689cf6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Build, Test, and Development Commands
1010
- `pnpm install` respects `pnpm-lock.yaml`; mixing package managers is forbidden to avoid dependency drift.
11-
- `pnpm dev` runs `rslib build --watch` for tight feedback while hacking on `src/`.
11+
- `pnpm dev` runs `rslib -w` for tight feedback while hacking on `src/`.
1212
- `pnpm build` generates production artifacts and doubles as a pre-publish smoke test; run it before every PR or release.
1313
- `pnpm test` triggers `pnpm build && rstest`, which runs the CLI integration suite.
1414
- `pnpm prebundle [pkg1 pkg2 ...] --config path/to/config` executes the CLI for all configured dependencies or a filtered subset; use `--config` to point at custom fixtures.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"compiled"
1717
],
1818
"scripts": {
19-
"build": "rslib build",
20-
"dev": "rslib build --watch",
19+
"build": "rslib",
20+
"dev": "rslib -w",
2121
"prebundle": "node ./bin.js",
2222
"prepare": "npm run build",
2323
"bump": "npx bumpp",

rslib.config.ts

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

33
export default defineConfig({
4-
lib: [{ format: 'esm', syntax: 'es2021', dts: { bundle: false } }],
4+
lib: [{ syntax: 'es2021', dts: { bundle: false } }],
55
tools: {
66
rspack: {
77
externals: [/[\\/]compiled[\\/]/],

0 commit comments

Comments
 (0)