@rspress/core 2.0.0-beta.3 → 2.0.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
+ <picture>
2
+ <img alt="Rspress Banner" src="https://assets.rspack.rs/rspress/rspress-banner.png">
3
+ </picture>
4
+
1
5
  # @rspress/core
2
6
 
3
- The core package for [Rspress](https://rspress.dev).
7
+ A fast Rsbuild-based static site generator.
8
+
9
+ ## Documentation
10
+
11
+ See [Documentation](https://rspress.rs/).
12
+
13
+ ## Contributing
14
+
15
+ Please read the [Contributing Guide](https://github.com/web-infra-dev/rspress/blob/main/CONTRIBUTING.md).
16
+
17
+ ## License
18
+
19
+ Rspress is [MIT licensed](https://github.com/web-infra-dev/rspress/blob/main/LICENSE).
package/bin/rspress.js ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ import nodeModule from 'node:module';
3
+
4
+ // enable on-disk code caching of all modules loaded by Node.js
5
+ // requires Nodejs >= 22.8.0
6
+ const { enableCompileCache } = nodeModule;
7
+ if (enableCompileCache) {
8
+ try {
9
+ enableCompileCache();
10
+ } catch {
11
+ // ignore errors
12
+ }
13
+ }
14
+
15
+ import('../dist/cli.js');