create-rspress 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
@@ -19,7 +19,7 @@ npx create-rspress -d my-project
19
19
 
20
20
  ## Documentation
21
21
 
22
- https://rspress.dev/
22
+ https://rspress.rs/
23
23
 
24
24
  ## Contributing
25
25
 
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
2
- import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
3
- import * as __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__ from "create-rstack";
4
- const src_dirname = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname((0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(import.meta.url));
1
+ import node_path from "node:path";
2
+ import { fileURLToPath } from "node:url";
3
+ import { create } from "create-rstack";
4
+ const src_dirname = node_path.dirname(fileURLToPath(import.meta.url));
5
5
  async function getTemplateName() {
6
6
  return 'basic';
7
7
  }
8
8
  function mapESLintTemplate() {
9
9
  return 'vanilla-ts';
10
10
  }
11
- (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.create)({
12
- root: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(src_dirname, '..'),
11
+ create({
12
+ root: node_path.resolve(src_dirname, '..'),
13
13
  name: 'rspress',
14
14
  templates: [
15
15
  'basic'
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "create-rspress",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.31",
4
4
  "description": "Create a new Rspress project",
5
- "homepage": "https://rspress.dev",
5
+ "homepage": "https://rspress.rs",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/web-infra-dev/rspress.git",
@@ -23,13 +23,13 @@
23
23
  "bin.js"
24
24
  ],
25
25
  "dependencies": {
26
- "create-rstack": "1.4.0"
26
+ "create-rstack": "1.5.6"
27
27
  },
28
28
  "devDependencies": {
29
- "@microsoft/api-extractor": "^7.52.5",
30
- "@rslib/core": "0.6.7",
31
- "@types/node": "^18.11.17",
32
- "rsbuild-plugin-publint": "^0.3.1",
29
+ "@microsoft/api-extractor": "^7.52.11",
30
+ "@rslib/core": "0.12.4",
31
+ "@types/node": "^22.8.1",
32
+ "rsbuild-plugin-publint": "^0.3.3",
33
33
  "typescript": "^5.8.2"
34
34
  },
35
35
  "engines": {
@@ -37,7 +37,6 @@
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",
40
- "provenance": true,
41
40
  "registry": "https://registry.npmjs.org/"
42
41
  },
43
42
  "scripts": {
@@ -11,6 +11,6 @@
11
11
  },
12
12
  {
13
13
  "text": "API",
14
- "link": "https://rspress.dev/api/index.html"
14
+ "link": "https://rspress.rs/api/index.html"
15
15
  }
16
16
  ]
@@ -178,9 +178,10 @@ You can also apply line highlighting and code block title at the same time, for
178
178
  **Input:**
179
179
 
180
180
  ````md
181
- ```js title="hello.js" {1,3-5}
182
- console.log('Hello World');
181
+ ```js title="hello.js"
182
+ console.log('Hello World'); // [\!code highlight]
183
183
 
184
+ // [\!code highlight:3]
184
185
  const a = 1;
185
186
 
186
187
  console.log(a);
@@ -191,11 +192,16 @@ console.log(b);
191
192
  ```
192
193
  ````
193
194
 
195
+ :::warning
196
+ The backslash (`\`) in `[\!code highlight]` is for Markdown escaping to display the raw syntax. Do not include it when using this notation in your actual code.
197
+ :::
198
+
194
199
  **Output:**
195
200
 
196
- ```js title="hello.js" {1,3-5}
197
- console.log('Hello World');
201
+ ```js title="hello.js"
202
+ console.log('Hello World'); // [!code highlight]
198
203
 
204
+ // [!code highlight:3]
199
205
  const a = 1;
200
206
 
201
207
  console.log(a);
@@ -8,9 +8,9 @@
8
8
  "preview": "rspress preview"
9
9
  },
10
10
  "dependencies": {
11
- "rspress": "^1.40.2"
11
+ "@rspress/core": "^2.0.0-beta.29"
12
12
  },
13
13
  "devDependencies": {
14
- "@types/node": "^18.11.17"
14
+ "@types/node": "^22.8.1"
15
15
  }
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import * as path from 'node:path';
2
- import { defineConfig } from 'rspress/config';
2
+ import { defineConfig } from '@rspress/core';
3
3
 
4
4
  export default defineConfig({
5
5
  root: path.join(__dirname, 'docs'),
@@ -1,17 +1,25 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2020",
4
3
  "lib": ["DOM", "ES2020"],
5
- "module": "ESNext",
6
4
  "jsx": "react-jsx",
5
+ "target": "ES2020",
7
6
  "noEmit": true,
8
- "strict": true,
9
7
  "skipLibCheck": true,
10
- "isolatedModules": true,
11
- "resolveJsonModule": true,
12
- "moduleResolution": "bundler",
13
8
  "useDefineForClassFields": true,
14
- "allowImportingTsExtensions": true
9
+
10
+ /* modules */
11
+ "module": "ESNext",
12
+ "moduleDetection": "force",
13
+ "moduleResolution": "bundler",
14
+ "verbatimModuleSyntax": true,
15
+ "resolveJsonModule": true,
16
+ "allowImportingTsExtensions": true,
17
+ "isolatedModules": true,
18
+
19
+ /* type checking */
20
+ "strict": true,
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": true
15
23
  },
16
24
  "include": ["docs", "theme", "rspress.config.ts"],
17
25
  "mdx": {