Skip to content

Commit 49a9e5f

Browse files
authored
docs: update Rslib website URL (#1026)
1 parent 261342f commit 49a9e5f

File tree

18 files changed

+52
-52
lines changed

18 files changed

+52
-52
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The following diagram illustrates the relationship between Rslib and other tools
4242

4343
## 📚 Getting started
4444

45-
To get started with Rslib, see the [Quick Start](https://lib.rsbuild.dev/guide/start/quick-start).
45+
To get started with Rslib, see the [Quick start](https://rslib.rs/guide/start/quick-start).
4646

4747
## 🦀 Rstack
4848

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Rslib 基于 Rsbuild 实现,并完全复用 Rsbuild 的能力和生态系统
4242

4343
## 📚 快速上手
4444

45-
你可以参考 [快速上手](https://lib.rsbuild.dev/zh/guide/start/quick-start) 来开始体验 Rslib。
45+
你可以参考 [快速上手](https://rslib.rs/zh/guide/start/quick-start) 来开始体验 Rslib。
4646

4747
## 🦀 Rstack
4848

examples/module-federation/mf-host/rsbuild.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default defineConfig({
1919
},
2020
},
2121
// Enable this when the output of Rslib is build under 'production' mode, while the host app is 'development'.
22-
// Reference: https://lib.rsbuild.dev/guide/advanced/module-federation#faqs
22+
// Reference: https://rslib.rs/guide/advanced/module-federation#faqs
2323
shareStrategy: 'loaded-first',
2424
}),
2525
],

packages/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Rslib is a library development tool powered by [Rsbuild](https://rsbuild.dev). I
88

99
## Documentation
1010

11-
https://lib.rsbuild.dev/
11+
https://rslib.rs/
1212

1313
## Contributing
1414

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@rslib/core",
33
"version": "0.9.0",
44
"description": "The Rsbuild-based library development tool.",
5-
"homepage": "https://lib.rsbuild.dev",
5+
"homepage": "https://rslib.rs",
66
"bugs": {
77
"url": "https://github.com/web-infra-dev/rslib/issues"
88
},

packages/core/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ const composeEntryConfig = async (
10431043
throw new Error(
10441044
`The ${color.cyan('source.entry')} configuration should be an object, but received ${typeof entries}: ${color.cyan(
10451045
entries,
1046-
)}. Checkout ${color.green('https://lib.rsbuild.dev/config/rsbuild/source#sourceentry')} for more details.`,
1046+
)}. Checkout ${color.green('https://rslib.rs/config/rsbuild/source#sourceentry')} for more details.`,
10471047
);
10481048
}
10491049

@@ -1054,7 +1054,7 @@ const composeEntryConfig = async (
10541054
? entry
10551055
: path.resolve(root, entry);
10561056
const isDirLike = path.extname(entryAbsPath) === '';
1057-
const dirError = `Glob pattern ${color.cyan(`"${entry}"`)} is not supported when "bundle" is "true", considering "bundle" to "false" to use bundleless mode, or specify a file entry to bundle. See ${color.green('https://lib.rsbuild.dev/guide/basic/output-structure')} for more details.`;
1057+
const dirError = `Glob pattern ${color.cyan(`"${entry}"`)} is not supported when "bundle" is "true", considering "bundle" to "false" to use bundleless mode, or specify a file entry to bundle. See ${color.green('https://rslib.rs/guide/basic/output-structure')} for more details.`;
10581058

10591059
if (fs.existsSync(entryAbsPath)) {
10601060
const stats = fs.statSync(entryAbsPath);

packages/core/src/types/config.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,31 @@ export type Dts =
5252
/**
5353
* Whether to bundle the declaration files.
5454
* @defaultValue `false`
55-
* @see {@link https://lib.rsbuild.dev/config/lib/dts#dtsbundle}
55+
* @see {@link https://rslib.rs/config/lib/dts#dtsbundle}
5656
*/
5757
bundle?: boolean;
5858
/**
5959
* The output directory of declaration files.
60-
* @defaultValue {@link https://lib.rsbuild.dev/config/lib/dts#default-value}
61-
* @see {@link https://lib.rsbuild.dev/config/lib/dts#dtsdistpath}
60+
* @defaultValue {@link https://rslib.rs/config/lib/dts#default-value}
61+
* @see {@link https://rslib.rs/config/lib/dts#dtsdistpath}
6262
*/
6363
distPath?: string;
6464
/**
6565
* Whether to generate declaration files with building the project references.
6666
* @defaultValue `false`
67-
* @see {@link https://lib.rsbuild.dev/config/lib/dts#dtsbuild}
67+
* @see {@link https://rslib.rs/config/lib/dts#dtsbuild}
6868
*/
6969
build?: boolean;
7070
/**
7171
* Whether to abort the build process when an error occurs during declaration files generation.
7272
* @defaultValue `true`
73-
* @see {@link https://lib.rsbuild.dev/config/lib/dts#dtsabortonerror}
73+
* @see {@link https://rslib.rs/config/lib/dts#dtsabortonerror}
7474
*/
7575
abortOnError?: boolean;
7676
/**
7777
* Whether to automatically set the declaration file extension based on the {@link format} option.
7878
* @defaultValue `false`
79-
* @see {@link https://lib.rsbuild.dev/config/lib/dts#dtsautoextension}
79+
* @see {@link https://rslib.rs/config/lib/dts#dtsautoextension}
8080
*/
8181
autoExtension?: boolean;
8282
}
@@ -88,25 +88,25 @@ export type AutoExternal =
8888
/**
8989
* Whether to automatically externalize dependencies of type `dependencies`.
9090
* @defaultValue `true`
91-
* @see {@link https://lib.rsbuild.dev/config/lib/auto-external#autoexternaldependencies}
91+
* @see {@link https://rslib.rs/config/lib/auto-external#autoexternaldependencies}
9292
*/
9393
dependencies?: boolean;
9494
/**
9595
* Whether to automatically externalize dependencies of type `optionalDependencies`.
9696
* @defaultValue `true`
97-
* @see {@link https://lib.rsbuild.dev/config/lib/auto-external#autoexternaloptionaldependencies}
97+
* @see {@link https://rslib.rs/config/lib/auto-external#autoexternaloptionaldependencies}
9898
*/
9999
optionalDependencies?: boolean;
100100
/**
101101
* Whether to automatically externalize dependencies of type `peerDependencies`.
102102
* @defaultValue `true`
103-
* @see {@link https://lib.rsbuild.dev/config/lib/auto-external#autoexternalpeerdependencies}
103+
* @see {@link https://rslib.rs/config/lib/auto-external#autoexternalpeerdependencies}
104104
*/
105105
peerDependencies?: boolean;
106106
/**
107107
* Whether to automatically externalize dependencies of type `devDependencies`.
108108
* @defaultValue `false`
109-
* @see {@link https://lib.rsbuild.dev/config/lib/auto-external#autoexternaldevdependencies}
109+
* @see {@link https://rslib.rs/config/lib/auto-external#autoexternaldevdependencies}
110110
*/
111111
devDependencies?: boolean;
112112
};
@@ -120,37 +120,37 @@ export type BannerAndFooter = {
120120
export type Shims = {
121121
/**
122122
* Configure the shims for CommonJS output.
123-
* @see {@link https://lib.rsbuild.dev/config/lib/shims#shimscjs}
123+
* @see {@link https://rslib.rs/config/lib/shims#shimscjs}
124124
*/
125125
cjs?: {
126126
/**
127127
* Whether to inject shims for the `import.meta.url` in CommonJS output.
128128
* @defaultValue `true`
129-
* @see {@link https://lib.rsbuild.dev/config/lib/shims#shimscjsimportmetaurl}
129+
* @see {@link https://rslib.rs/config/lib/shims#shimscjsimportmetaurl}
130130
*/
131131
'import.meta.url'?: boolean;
132132
};
133133
/**
134134
* Configure the shims for ESM output.
135-
* @see {@link https://lib.rsbuild.dev/config/lib/shims#shimsesm}
135+
* @see {@link https://rslib.rs/config/lib/shims#shimsesm}
136136
*/
137137
esm?: {
138138
/**
139139
* Whether to inject shims for the global `__filename` of CommonJS in ESM output.
140140
* @defaultValue `false`
141-
* @see {@link https://lib.rsbuild.dev/config/lib/shims#shimsesm__filename}
141+
* @see {@link https://rslib.rs/config/lib/shims#shimsesm__filename}
142142
*/
143143
__filename?: boolean;
144144
/**
145145
* Whether to inject shims for the global `__dirname` of CommonJS in ESM output.
146146
* @defaultValue `false`
147-
* @see {@link https://lib.rsbuild.dev/config/lib/shims#shimsesm__dirname}
147+
* @see {@link https://rslib.rs/config/lib/shims#shimsesm__dirname}
148148
*/
149149
__dirname?: boolean;
150150
/**
151151
* Whether to inject shims for the global `require` of CommonJS in ESM output.
152152
* @defaultValue `false`
153-
* @see {@link https://lib.rsbuild.dev/config/lib/shims#shimsesmrequire}
153+
* @see {@link https://rslib.rs/config/lib/shims#shimsesmrequire}
154154
*/
155155
require?: boolean;
156156
};
@@ -210,61 +210,61 @@ export interface LibConfig extends EnvironmentConfig {
210210
/**
211211
* The unique identifier of the library.
212212
* @defaultValue `undefined`
213-
* @see {@link https://lib.rsbuild.dev/config/lib/id}
213+
* @see {@link https://rslib.rs/config/lib/id}
214214
*/
215215
id?: string;
216216
/**
217217
* Output format for the generated JavaScript files.
218218
* @defaultValue `'esm'`
219-
* @see {@link https://lib.rsbuild.dev/config/lib/format}
219+
* @see {@link https://rslib.rs/config/lib/format}
220220
*/
221221
format?: Format;
222222
/**
223223
* Whether to bundle the library.
224224
* @defaultValue `true`
225-
* @see {@link https://lib.rsbuild.dev/config/lib/bundle}
225+
* @see {@link https://rslib.rs/config/lib/bundle}
226226
*/
227227
bundle?: boolean;
228228
/**
229229
* Whether to automatically set the file extension based on {@link format} option in the JavaScript output files.
230230
* @defaultValue `true`
231-
* @see {@link https://lib.rsbuild.dev/config/lib/auto-extension}
231+
* @see {@link https://rslib.rs/config/lib/auto-extension}
232232
*/
233233
autoExtension?: boolean;
234234
/**
235235
* Whether to automatically externalize dependencies of different dependency types and do not bundle them.
236236
* @defaultValue `true` when {@link format} is `cjs` or `esm`, `false` when {@link format} is `umd` or `mf`.
237-
* @see {@link https://lib.rsbuild.dev/config/lib/auto-external}
237+
* @see {@link https://rslib.rs/config/lib/auto-external}
238238
*/
239239
autoExternal?: AutoExternal;
240240
/**
241241
* Configure the redirect of the import paths, applicable {@link bundle} is set to `false`.
242242
* @defaultValue `{}`
243-
* @see {@link https://lib.rsbuild.dev/config/lib/redirect}
243+
* @see {@link https://rslib.rs/config/lib/redirect}
244244
*/
245245
redirect?: Redirect;
246246
/**
247247
* Configure the syntax to which JavaScript and CSS will be downgraded.
248248
* @defaultValue `'esnext'`
249-
* @see {@link https://lib.rsbuild.dev/config/lib/syntax}
249+
* @see {@link https://rslib.rs/config/lib/syntax}
250250
*/
251251
syntax?: Syntax;
252252
/**
253253
* Whether to import SWC helper functions from `@swc/helpers` instead of inlining them.
254254
* @defaultValue `false`
255-
* @see {@link https://lib.rsbuild.dev/config/lib/external-helpers}
255+
* @see {@link https://rslib.rs/config/lib/external-helpers}
256256
*/
257257
externalHelpers?: boolean;
258258
/**
259259
* Inject content into the top of each JavaScript, CSS or declaration file.
260260
* @defaultValue `{}`
261-
* @see {@link https://lib.rsbuild.dev/config/lib/banner}
261+
* @see {@link https://rslib.rs/config/lib/banner}
262262
*/
263263
banner?: BannerAndFooter;
264264
/**
265265
* Inject content into the bottom of each JavaScript, CSS or declaration file.
266266
* @defaultValue `{}`
267-
* @see {@link https://lib.rsbuild.dev/config/lib/footer}
267+
* @see {@link https://rslib.rs/config/lib/footer}
268268
*/
269269
footer?: BannerAndFooter;
270270
/**
@@ -283,25 +283,25 @@ export interface LibConfig extends EnvironmentConfig {
283283
* },
284284
* };
285285
* ```
286-
* @see {@link https://lib.rsbuild.dev/config/lib/shims}
286+
* @see {@link https://rslib.rs/config/lib/shims}
287287
*/
288288
shims?: Shims;
289289
/**
290290
* Configure the generation of the TypeScript declaration files.
291291
* @defaultValue `false`
292-
* @see {@link https://lib.rsbuild.dev/config/lib/dts}
292+
* @see {@link https://rslib.rs/config/lib/dts}
293293
*/
294294
dts?: Dts;
295295
/**
296296
* The export name of the UMD bundle.
297297
* @defaultValue `undefined`
298-
* @see {@link https://lib.rsbuild.dev/config/lib/umd-name}
298+
* @see {@link https://rslib.rs/config/lib/umd-name}
299299
*/
300300
umdName?: Rspack.LibraryName;
301301
/**
302302
* The base directory of the output files.
303303
* @defaultValue `undefined`
304-
* @see {@link https://lib.rsbuild.dev/config/lib/out-base}
304+
* @see {@link https://rslib.rs/config/lib/out-base}
305305
*/
306306
outBase?: string;
307307
/**
@@ -328,7 +328,7 @@ interface RslibOutputConfig extends OutputConfig {
328328
* When minify is not specified, Rslib will use a sane default for minify options.
329329
* The default options will only perform dead code elimination and unused code elimination.
330330
*
331-
* @see {@link https://lib.rsbuild.dev/config/rsbuild/output#outputminify}
331+
* @see {@link https://rslib.rs/config/rsbuild/output#outputminify}
332332
*/
333333
minify?: OutputConfig['minify'];
334334
}

packages/create-rslib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Rslib is a library development tool powered by [Rsbuild](https://rsbuild.dev). I
88

99
## Documentation
1010

11-
https://lib.rsbuild.dev/
11+
https://rslib.rs/
1212

1313
## Contributing
1414

packages/create-rslib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "create-rslib",
33
"version": "0.9.0",
44
"description": "Create a new Rslib project",
5-
"homepage": "https://lib.rsbuild.dev",
5+
"homepage": "https://rslib.rs",
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/web-infra-dev/rslib.git",

packages/plugin-dts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ An [Rsbuild plugin](https://www.npmjs.com/package/rsbuild-plugin-dts) to emit de
88

99
## Using in Rslib
1010

11-
Read [Declaration files](https://lib.rsbuild.dev/guide/advanced/dts) and [lib.dts](https://lib.rsbuild.dev/config/lib/dts) for more details.
11+
Read [Declaration files](https://rslib.rs/guide/advanced/dts) and [lib.dts](https://rslib.rs/config/lib/dts) for more details.
1212

1313
## Using in Rsbuild
1414

@@ -38,7 +38,7 @@ export default {
3838

3939
Whether to bundle the declaration files.
4040

41-
If you want to [bundle declaration files](https://lib.rsbuild.dev/guide/advanced/dts#bundle-declaration-files) files, you should:
41+
If you want to [bundle declaration files](https://rslib.rs/guide/advanced/dts#bundle-declaration-files) files, you should:
4242

4343
1. Install `@microsoft/api-extractor` as a development dependency, which is the underlying tool used for bundling declaration files.
4444

0 commit comments

Comments
 (0)