create-rsbuild 1.0.4 → 1.0.6
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 +1 -2
- package/package.json +2 -2
- package/template-lit-js/package.json +1 -1
- package/template-lit-ts/package.json +1 -1
- package/template-lit-ts/tsconfig.json +12 -6
- package/template-preact-js/package.json +3 -3
- package/template-preact-ts/package.json +3 -3
- package/template-preact-ts/tsconfig.json +13 -7
- package/template-react-js/package.json +2 -2
- package/template-react-ts/package.json +3 -3
- package/template-react-ts/tsconfig.json +12 -6
- package/template-solid-js/package.json +4 -4
- package/template-solid-ts/package.json +4 -4
- package/template-solid-ts/tsconfig.json +13 -7
- package/template-svelte-js/package.json +2 -2
- package/template-svelte-ts/package.json +2 -2
- package/template-svelte-ts/tsconfig.json +12 -6
- package/template-svelte4-js/package.json +2 -2
- package/template-svelte4-ts/package.json +2 -2
- package/template-svelte4-ts/tsconfig.json +12 -6
- package/template-vanilla-js/package.json +1 -1
- package/template-vanilla-ts/package.json +1 -1
- package/template-vanilla-ts/tsconfig.json +12 -6
- package/template-vue2-js/package.json +1 -1
- package/template-vue2-ts/package.json +1 -1
- package/template-vue2-ts/tsconfig.json +12 -6
- package/template-vue3-js/package.json +2 -2
- package/template-vue3-ts/package.json +2 -2
- package/template-vue3-ts/tsconfig.json +13 -7
package/dist/index.js
CHANGED
|
@@ -6,8 +6,7 @@ const frameworkAlias = {
|
|
|
6
6
|
vue: 'vue3',
|
|
7
7
|
'solid-js': 'solid'
|
|
8
8
|
};
|
|
9
|
-
async function getTemplateName(
|
|
10
|
-
let { template } = param;
|
|
9
|
+
async function getTemplateName({ template }) {
|
|
11
10
|
if ('string' == typeof template) {
|
|
12
11
|
const pair = template.split('-');
|
|
13
12
|
const language = pair[1] ?? 'js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rsbuild",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Create a new Rsbuild project",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"bin.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"create-rstack": "1.0.
|
|
26
|
+
"create-rstack": "1.0.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "18.x",
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"
|
|
4
|
+
"target": "ES2020",
|
|
6
5
|
"noEmit": true,
|
|
7
|
-
"strict": true,
|
|
8
6
|
"skipLibCheck": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"useDefineForClassFields": false,
|
|
9
|
+
|
|
10
|
+
/* modules */
|
|
11
|
+
"module": "ESNext",
|
|
9
12
|
"isolatedModules": true,
|
|
10
13
|
"resolveJsonModule": true,
|
|
11
|
-
"moduleResolution": "
|
|
12
|
-
"useDefineForClassFields": false,
|
|
14
|
+
"moduleResolution": "Bundler",
|
|
13
15
|
"allowImportingTsExtensions": true,
|
|
14
|
-
|
|
16
|
+
|
|
17
|
+
/* type checking */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true
|
|
15
21
|
},
|
|
16
22
|
"include": ["src"]
|
|
17
23
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"preview": "rsbuild preview"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"preact": "^10.24.
|
|
11
|
+
"preact": "^10.24.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@rsbuild/core": "^1.0.
|
|
15
|
-
"@rsbuild/plugin-preact": "^1.0
|
|
14
|
+
"@rsbuild/core": "^1.0.18",
|
|
15
|
+
"@rsbuild/plugin-preact": "^1.1.0"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"preview": "rsbuild preview"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"preact": "^10.24.
|
|
11
|
+
"preact": "^10.24.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@rsbuild/core": "^1.0.
|
|
15
|
-
"@rsbuild/plugin-preact": "^1.0
|
|
14
|
+
"@rsbuild/core": "^1.0.18",
|
|
15
|
+
"@rsbuild/plugin-preact": "^1.1.0",
|
|
16
16
|
"typescript": "^5.6.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "react-jsx",
|
|
7
|
-
"
|
|
5
|
+
"target": "ES2020",
|
|
8
6
|
"noEmit": true,
|
|
9
|
-
"strict": true,
|
|
10
7
|
"skipLibCheck": true,
|
|
8
|
+
"jsxImportSource": "preact",
|
|
9
|
+
"useDefineForClassFields": true,
|
|
10
|
+
|
|
11
|
+
/* modules */
|
|
12
|
+
"module": "ESNext",
|
|
11
13
|
"isolatedModules": true,
|
|
12
14
|
"resolveJsonModule": true,
|
|
13
|
-
"moduleResolution": "
|
|
14
|
-
"useDefineForClassFields": true,
|
|
15
|
+
"moduleResolution": "Bundler",
|
|
15
16
|
"allowImportingTsExtensions": true,
|
|
16
17
|
"paths": {
|
|
17
18
|
"react": ["./node_modules/preact/compat/"],
|
|
18
19
|
"react-dom": ["./node_modules/preact/compat/"]
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
/* type checking */
|
|
23
|
+
"strict": true,
|
|
24
|
+
"noUnusedLocals": true,
|
|
25
|
+
"noUnusedParameters": true
|
|
20
26
|
},
|
|
21
27
|
"include": ["src"]
|
|
22
28
|
}
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"react-dom": "^18.3.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.0.
|
|
16
|
-
"@rsbuild/plugin-react": "^1.0.
|
|
17
|
-
"@types/react": "^18.3.
|
|
15
|
+
"@rsbuild/core": "^1.0.18",
|
|
16
|
+
"@rsbuild/plugin-react": "^1.0.5",
|
|
17
|
+
"@types/react": "^18.3.12",
|
|
18
18
|
"@types/react-dom": "^18.3.1",
|
|
19
19
|
"typescript": "^5.6.3"
|
|
20
20
|
}
|
|
@@ -1,17 +1,23 @@
|
|
|
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,
|
|
8
|
+
"useDefineForClassFields": true,
|
|
9
|
+
|
|
10
|
+
/* modules */
|
|
11
|
+
"module": "ESNext",
|
|
10
12
|
"isolatedModules": true,
|
|
11
13
|
"resolveJsonModule": true,
|
|
12
|
-
"moduleResolution": "
|
|
13
|
-
"
|
|
14
|
-
|
|
14
|
+
"moduleResolution": "Bundler",
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
|
|
17
|
+
/* type checking */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true
|
|
15
21
|
},
|
|
16
22
|
"include": ["src"]
|
|
17
23
|
}
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"preview": "rsbuild preview"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"solid-js": "^1.9.
|
|
11
|
+
"solid-js": "^1.9.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@rsbuild/core": "^1.0.
|
|
15
|
-
"@rsbuild/plugin-babel": "^1.0.
|
|
16
|
-
"@rsbuild/plugin-solid": "^1.0.
|
|
14
|
+
"@rsbuild/core": "^1.0.18",
|
|
15
|
+
"@rsbuild/plugin-babel": "^1.0.2",
|
|
16
|
+
"@rsbuild/plugin-solid": "^1.0.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"preview": "rsbuild preview"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"solid-js": "^1.9.
|
|
11
|
+
"solid-js": "^1.9.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@rsbuild/core": "^1.0.
|
|
15
|
-
"@rsbuild/plugin-babel": "^1.0.
|
|
16
|
-
"@rsbuild/plugin-solid": "^1.0.
|
|
14
|
+
"@rsbuild/core": "^1.0.18",
|
|
15
|
+
"@rsbuild/plugin-babel": "^1.0.2",
|
|
16
|
+
"@rsbuild/plugin-solid": "^1.0.3",
|
|
17
17
|
"typescript": "^5.6.3"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "preserve",
|
|
7
|
-
"
|
|
5
|
+
"target": "ES2020",
|
|
8
6
|
"noEmit": true,
|
|
9
|
-
"strict": true,
|
|
10
7
|
"skipLibCheck": true,
|
|
8
|
+
"jsxImportSource": "solid-js",
|
|
9
|
+
"useDefineForClassFields": true,
|
|
10
|
+
|
|
11
|
+
/* modules */
|
|
12
|
+
"module": "ESNext",
|
|
11
13
|
"isolatedModules": true,
|
|
12
14
|
"resolveJsonModule": true,
|
|
13
|
-
"moduleResolution": "
|
|
14
|
-
"
|
|
15
|
-
|
|
15
|
+
"moduleResolution": "Bundler",
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
|
|
18
|
+
/* type checking */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true
|
|
16
22
|
},
|
|
17
23
|
"include": ["src"]
|
|
18
24
|
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"
|
|
4
|
+
"target": "ES2020",
|
|
6
5
|
"noEmit": true,
|
|
7
|
-
"strict": true,
|
|
8
6
|
"skipLibCheck": true,
|
|
9
7
|
// svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
10
8
|
// to enforce using `import type` instead of `import` for Types.
|
|
11
9
|
"verbatimModuleSyntax": true,
|
|
10
|
+
"useDefineForClassFields": true,
|
|
11
|
+
|
|
12
|
+
/* modules */
|
|
13
|
+
"module": "ESNext",
|
|
12
14
|
"isolatedModules": true,
|
|
13
15
|
"resolveJsonModule": true,
|
|
14
|
-
"moduleResolution": "
|
|
15
|
-
"
|
|
16
|
-
|
|
16
|
+
"moduleResolution": "Bundler",
|
|
17
|
+
"allowImportingTsExtensions": true,
|
|
18
|
+
|
|
19
|
+
/* type checking */
|
|
20
|
+
"strict": true,
|
|
21
|
+
"noUnusedLocals": true,
|
|
22
|
+
"noUnusedParameters": true
|
|
17
23
|
},
|
|
18
24
|
"include": ["src"]
|
|
19
25
|
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"
|
|
4
|
+
"target": "ES2020",
|
|
6
5
|
"noEmit": true,
|
|
7
|
-
"strict": true,
|
|
8
6
|
"skipLibCheck": true,
|
|
9
7
|
// svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
10
8
|
// to enforce using `import type` instead of `import` for Types.
|
|
11
9
|
"verbatimModuleSyntax": true,
|
|
10
|
+
"useDefineForClassFields": true,
|
|
11
|
+
|
|
12
|
+
/* modules */
|
|
13
|
+
"module": "ESNext",
|
|
12
14
|
"isolatedModules": true,
|
|
13
15
|
"resolveJsonModule": true,
|
|
14
|
-
"moduleResolution": "
|
|
15
|
-
"
|
|
16
|
-
|
|
16
|
+
"moduleResolution": "Bundler",
|
|
17
|
+
"allowImportingTsExtensions": true,
|
|
18
|
+
|
|
19
|
+
/* type checking */
|
|
20
|
+
"strict": true,
|
|
21
|
+
"noUnusedLocals": true,
|
|
22
|
+
"noUnusedParameters": true
|
|
17
23
|
},
|
|
18
24
|
"include": ["src"]
|
|
19
25
|
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"
|
|
4
|
+
"target": "ES2020",
|
|
6
5
|
"noEmit": true,
|
|
7
|
-
"strict": true,
|
|
8
6
|
"skipLibCheck": true,
|
|
7
|
+
"useDefineForClassFields": true,
|
|
8
|
+
|
|
9
|
+
/* modules */
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"moduleResolution": "Bundler",
|
|
9
12
|
"isolatedModules": true,
|
|
10
13
|
"resolveJsonModule": true,
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
"allowImportingTsExtensions": true,
|
|
15
|
+
|
|
16
|
+
/* type checking */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true
|
|
14
20
|
},
|
|
15
21
|
"include": ["src"]
|
|
16
22
|
}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "preserve",
|
|
5
|
+
"target": "ES2020",
|
|
7
6
|
"noEmit": true,
|
|
8
|
-
"strict": true,
|
|
9
7
|
"skipLibCheck": true,
|
|
8
|
+
"useDefineForClassFields": true,
|
|
9
|
+
|
|
10
|
+
/* modules */
|
|
11
|
+
"module": "ESNext",
|
|
10
12
|
"isolatedModules": true,
|
|
11
13
|
"resolveJsonModule": true,
|
|
12
|
-
"moduleResolution": "
|
|
13
|
-
"
|
|
14
|
-
|
|
14
|
+
"moduleResolution": "Bundler",
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
|
|
17
|
+
/* type checking */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true
|
|
15
21
|
},
|
|
16
22
|
"include": ["src"]
|
|
17
23
|
}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "preserve",
|
|
7
|
-
"
|
|
5
|
+
"target": "ES2020",
|
|
8
6
|
"noEmit": true,
|
|
9
|
-
"strict": true,
|
|
10
7
|
"skipLibCheck": true,
|
|
8
|
+
"jsxImportSource": "vue",
|
|
9
|
+
"useDefineForClassFields": true,
|
|
10
|
+
|
|
11
|
+
/* modules */
|
|
12
|
+
"module": "ESNext",
|
|
11
13
|
"isolatedModules": true,
|
|
12
14
|
"resolveJsonModule": true,
|
|
13
|
-
"moduleResolution": "
|
|
14
|
-
"
|
|
15
|
-
|
|
15
|
+
"moduleResolution": "Bundler",
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
|
|
18
|
+
/* type checking */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true
|
|
16
22
|
},
|
|
17
23
|
"include": ["src"]
|
|
18
24
|
}
|