create-rsbuild 2.0.0-beta.7 → 2.0.0-beta.8
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 +4 -5
- package/package.json +9 -9
- package/template-lit-js/package.json +1 -1
- package/template-lit-ts/package.json +1 -1
- package/template-preact-js/package.json +1 -1
- package/template-preact-ts/package.json +1 -1
- package/template-react-js/package.json +1 -1
- package/template-react-ts/package.json +1 -1
- package/template-react18-js/package.json +1 -1
- package/template-react18-ts/package.json +1 -1
- package/template-solid-js/package.json +1 -1
- package/template-solid-ts/package.json +1 -1
- package/template-svelte-js/package.json +1 -1
- package/template-svelte-ts/package.json +2 -2
- package/template-vanilla-js/package.json +1 -1
- package/template-vanilla-ts/package.json +1 -1
- package/template-vue2-js/package.json +1 -1
- package/template-vue2-ts/package.json +1 -1
- package/template-vue3-js/package.json +1 -1
- package/template-vue3-ts/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import node_fs from "node:fs";
|
|
2
2
|
import node_path from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
3
|
import { checkCancel, copyFolder, create, select as external_create_rstack_select } from "create-rstack";
|
|
5
|
-
const src_dirname = node_path.dirname(fileURLToPath(import.meta.url));
|
|
6
4
|
const frameworkAlias = {
|
|
7
5
|
vue: 'vue3',
|
|
8
6
|
'solid-js': 'solid'
|
|
@@ -107,8 +105,9 @@ function mapRstestTemplate(templateName) {
|
|
|
107
105
|
const language = templateName.split('-')[1];
|
|
108
106
|
return `vanilla-${language}`;
|
|
109
107
|
}
|
|
108
|
+
const root = node_path.join(import.meta.dirname, '..');
|
|
110
109
|
create({
|
|
111
|
-
root:
|
|
110
|
+
root: root,
|
|
112
111
|
name: 'rsbuild',
|
|
113
112
|
templates: [
|
|
114
113
|
'vanilla-js',
|
|
@@ -135,7 +134,7 @@ create({
|
|
|
135
134
|
order: 'pre',
|
|
136
135
|
action: ({ templateName, distFolder, addAgentsMdSearchDirs })=>{
|
|
137
136
|
const rstestTemplate = mapRstestTemplate(templateName);
|
|
138
|
-
const toolFolder = node_path.join(
|
|
137
|
+
const toolFolder = node_path.join(root, 'template-rstest');
|
|
139
138
|
const subFolder = node_path.join(toolFolder, rstestTemplate);
|
|
140
139
|
copyFolder({
|
|
141
140
|
from: subFolder,
|
|
@@ -149,7 +148,7 @@ create({
|
|
|
149
148
|
value: 'tailwindcss',
|
|
150
149
|
label: 'Tailwind CSS - styling',
|
|
151
150
|
action: async ({ distFolder })=>{
|
|
152
|
-
const from = node_path.join(
|
|
151
|
+
const from = node_path.join(root, 'template-tailwindcss');
|
|
153
152
|
copyFolder({
|
|
154
153
|
from: from,
|
|
155
154
|
to: distFolder,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rsbuild",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.8",
|
|
4
4
|
"description": "Create a new Rsbuild project",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"repository": {
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"bin.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"create-rstack": "1.8.
|
|
26
|
+
"create-rstack": "1.8.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@rsbuild/plugin-react": "^1.1.0",
|
|
30
|
-
"@rslib/core": "0.
|
|
31
|
-
"@types/node": "^24.
|
|
30
|
+
"@rslib/core": "0.20.0-canary-202603101",
|
|
31
|
+
"@types/node": "^24.12.0",
|
|
32
32
|
"typescript": "^5.9.3",
|
|
33
|
-
"@rsbuild/core": "2.0.0-beta.
|
|
33
|
+
"@rsbuild/core": "2.0.0-beta.8",
|
|
34
34
|
"@rsbuild/plugin-babel": "1.1.1",
|
|
35
|
-
"@rsbuild/plugin-preact": "1.7.1",
|
|
36
|
-
"@rsbuild/plugin-solid": "1.1.0",
|
|
37
35
|
"@rsbuild/plugin-svelte": "1.1.0",
|
|
36
|
+
"@rsbuild/plugin-solid": "1.1.0",
|
|
37
|
+
"@rsbuild/plugin-preact": "1.7.1",
|
|
38
38
|
"@rsbuild/plugin-vue": "1.2.6"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"registry": "https://registry.npmjs.org/"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
|
-
"build": "rslib build",
|
|
49
|
-
"dev": "rslib build -w",
|
|
48
|
+
"build": "rslib build --syntax es2023",
|
|
49
|
+
"dev": "rslib build --syntax es2023 -w",
|
|
50
50
|
"start": "node ./dist/index.js",
|
|
51
51
|
"bump": "pnpx bumpp --no-tag"
|
|
52
52
|
}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"svelte": "^5.53.7"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@rsbuild/core": "^2.0.0-beta.
|
|
16
|
+
"@rsbuild/core": "^2.0.0-beta.7",
|
|
17
17
|
"@rsbuild/plugin-svelte": "^1.1.0",
|
|
18
|
-
"svelte-check": "^4.4.
|
|
18
|
+
"svelte-check": "^4.4.5",
|
|
19
19
|
"typescript": "^5.9.3"
|
|
20
20
|
}
|
|
21
21
|
}
|