create-rspress 2.0.0-beta.10 → 2.0.0-beta.12
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/dist/index.js +6 -6
- package/package.json +2 -2
- package/template-basic/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const src_dirname =
|
|
1
|
+
import external_node_path_default from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { create } from "create-rstack";
|
|
4
|
+
const src_dirname = external_node_path_default.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
|
-
|
|
12
|
-
root:
|
|
11
|
+
create({
|
|
12
|
+
root: external_node_path_default.resolve(src_dirname, '..'),
|
|
13
13
|
name: 'rspress',
|
|
14
14
|
templates: [
|
|
15
15
|
'basic'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rspress",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.12",
|
|
4
4
|
"description": "Create a new Rspress project",
|
|
5
5
|
"homepage": "https://rspress.rs",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-extractor": "^7.52.8",
|
|
30
|
-
"@rslib/core": "0.
|
|
30
|
+
"@rslib/core": "0.9.2",
|
|
31
31
|
"@types/node": "^22.8.1",
|
|
32
32
|
"rsbuild-plugin-publint": "^0.3.2",
|
|
33
33
|
"typescript": "^5.8.2"
|