create-rsbuild 1.6.2 → 1.6.4

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.
Files changed (40) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +6 -6
  3. package/template-common/AGENTS.md +5 -5
  4. package/template-common/README.md +4 -4
  5. package/template-lit-js/package.json +1 -1
  6. package/template-lit-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  7. package/template-lit-ts/package.json +1 -1
  8. package/template-lit-ts/rsbuild.config.ts +1 -0
  9. package/template-preact-js/package.json +1 -1
  10. package/template-preact-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  11. package/template-preact-ts/package.json +1 -1
  12. package/template-preact-ts/rsbuild.config.ts +1 -0
  13. package/template-react-js/package.json +2 -2
  14. package/template-react-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  15. package/template-react-ts/package.json +4 -4
  16. package/template-react-ts/rsbuild.config.ts +1 -0
  17. package/template-react18-js/package.json +2 -2
  18. package/template-react18-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  19. package/template-react18-ts/package.json +2 -2
  20. package/template-react18-ts/rsbuild.config.ts +1 -0
  21. package/template-solid-js/package.json +1 -1
  22. package/template-solid-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  23. package/template-solid-ts/package.json +1 -1
  24. package/template-solid-ts/rsbuild.config.ts +1 -0
  25. package/template-svelte-js/package.json +2 -2
  26. package/template-svelte-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  27. package/template-svelte-ts/package.json +3 -3
  28. package/template-svelte-ts/rsbuild.config.ts +1 -0
  29. package/template-vanilla-js/package.json +1 -1
  30. package/template-vanilla-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  31. package/template-vanilla-ts/package.json +1 -1
  32. package/template-vanilla-ts/rsbuild.config.ts +1 -0
  33. package/template-vue2-js/package.json +1 -1
  34. package/template-vue2-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  35. package/template-vue2-ts/package.json +1 -1
  36. package/template-vue2-ts/rsbuild.config.ts +1 -0
  37. package/template-vue3-js/package.json +2 -2
  38. package/template-vue3-js/{rsbuild.config.mjs → rsbuild.config.js} +1 -0
  39. package/template-vue3-ts/package.json +2 -2
  40. package/template-vue3-ts/rsbuild.config.ts +1 -0
package/dist/index.js CHANGED
@@ -109,6 +109,6 @@ create({
109
109
  'solid-js',
110
110
  'solid-ts'
111
111
  ],
112
- getTemplateName,
113
- mapESLintTemplate
112
+ getTemplateName: getTemplateName,
113
+ mapESLintTemplate: mapESLintTemplate
114
114
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
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.7.3"
26
+ "create-rstack": "1.7.11"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@rsbuild/plugin-react": "^1.1.0",
30
- "@rslib/core": "0.17.0",
31
- "@types/node": "^24.9.2",
30
+ "@rslib/core": "0.18.0",
31
+ "@types/node": "^24.10.1",
32
32
  "typescript": "^5.9.3",
33
- "@rsbuild/core": "1.6.1",
33
+ "@rsbuild/core": "1.6.8",
34
34
  "@rsbuild/plugin-preact": "1.6.0",
35
35
  "@rsbuild/plugin-babel": "1.0.6",
36
- "@rsbuild/plugin-solid": "1.0.6",
37
36
  "@rsbuild/plugin-vue": "1.2.0",
37
+ "@rsbuild/plugin-solid": "1.0.6",
38
38
  "@rsbuild/plugin-svelte": "1.0.11"
39
39
  },
40
40
  "engines": {
@@ -4,11 +4,11 @@ You are an expert in JavaScript, Rsbuild, and web application development. You w
4
4
 
5
5
  ## Commands
6
6
 
7
- - `npm run dev` - Start the dev server
8
- - `npm run build` - Build the app for production
9
- - `npm run preview` - Preview the production build locally
7
+ - `{{ packageManager }} run dev` - Start the dev server
8
+ - `{{ packageManager }} run build` - Build the app for production
9
+ - `{{ packageManager }} run preview` - Preview the production build locally
10
10
 
11
11
  ## Docs
12
12
 
13
- - Rsbuild: <https://rsbuild.rs/llms.txt>
14
- - Rspack: <https://rspack.rs/llms.txt>
13
+ - Rsbuild: https://rsbuild.rs/llms.txt
14
+ - Rspack: https://rspack.rs/llms.txt
@@ -5,7 +5,7 @@
5
5
  Install the dependencies:
6
6
 
7
7
  ```bash
8
- pnpm install
8
+ {{ packageManager }} install
9
9
  ```
10
10
 
11
11
  ## Get started
@@ -13,19 +13,19 @@ pnpm install
13
13
  Start the dev server, and the app will be available at [http://localhost:3000](http://localhost:3000).
14
14
 
15
15
  ```bash
16
- pnpm dev
16
+ {{ packageManager }} run dev
17
17
  ```
18
18
 
19
19
  Build the app for production:
20
20
 
21
21
  ```bash
22
- pnpm build
22
+ {{ packageManager }} run build
23
23
  ```
24
24
 
25
25
  Preview the production build locally:
26
26
 
27
27
  ```bash
28
- pnpm preview
28
+ {{ packageManager }} run preview
29
29
  ```
30
30
 
31
31
  ## Learn more
@@ -12,6 +12,6 @@
12
12
  "lit": "^3.3.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0"
15
+ "@rsbuild/core": "^1.6.7"
16
16
  }
17
17
  }
@@ -1,6 +1,7 @@
1
1
  // @ts-check
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  html: {
6
7
  template: './src/index.html',
@@ -12,7 +12,7 @@
12
12
  "lit": "^3.3.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "typescript": "^5.9.3"
17
17
  }
18
18
  }
@@ -1,5 +1,6 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
 
3
+ // Docs: https://rsbuild.rs/config/
3
4
  export default defineConfig({
4
5
  html: {
5
6
  template: './src/index.html',
@@ -12,7 +12,7 @@
12
12
  "preact": "^10.27.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-preact": "^1.6.0"
17
17
  }
18
18
  }
@@ -2,6 +2,7 @@
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginPreact } from '@rsbuild/plugin-preact';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [pluginPreact()],
7
8
  });
@@ -12,7 +12,7 @@
12
12
  "preact": "^10.27.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-preact": "^1.6.0",
17
17
  "typescript": "^5.9.3"
18
18
  }
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginPreact } from '@rsbuild/plugin-preact';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  plugins: [pluginPreact()],
6
7
  });
@@ -13,7 +13,7 @@
13
13
  "react-dom": "^19.2.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.6.0",
17
- "@rsbuild/plugin-react": "^1.4.1"
16
+ "@rsbuild/core": "^1.6.7",
17
+ "@rsbuild/plugin-react": "^1.4.2"
18
18
  }
19
19
  }
@@ -2,6 +2,7 @@
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginReact } from '@rsbuild/plugin-react';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [pluginReact()],
7
8
  });
@@ -13,10 +13,10 @@
13
13
  "react-dom": "^19.2.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.6.0",
17
- "@rsbuild/plugin-react": "^1.4.1",
18
- "@types/react": "^19.2.2",
19
- "@types/react-dom": "^19.2.2",
16
+ "@rsbuild/core": "^1.6.7",
17
+ "@rsbuild/plugin-react": "^1.4.2",
18
+ "@types/react": "^19.2.6",
19
+ "@types/react-dom": "^19.2.3",
20
20
  "typescript": "^5.9.3"
21
21
  }
22
22
  }
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginReact } from '@rsbuild/plugin-react';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  plugins: [pluginReact()],
6
7
  });
@@ -13,7 +13,7 @@
13
13
  "react-dom": "^18.3.1"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.6.0",
17
- "@rsbuild/plugin-react": "^1.4.1"
16
+ "@rsbuild/core": "^1.6.7",
17
+ "@rsbuild/plugin-react": "^1.4.2"
18
18
  }
19
19
  }
@@ -2,6 +2,7 @@
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginReact } from '@rsbuild/plugin-react';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [pluginReact()],
7
8
  });
@@ -13,8 +13,8 @@
13
13
  "react-dom": "^18.3.1"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.6.0",
17
- "@rsbuild/plugin-react": "^1.4.1",
16
+ "@rsbuild/core": "^1.6.7",
17
+ "@rsbuild/plugin-react": "^1.4.2",
18
18
  "@types/react": "^18.3.18",
19
19
  "@types/react-dom": "^18.3.5",
20
20
  "typescript": "^5.9.3"
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginReact } from '@rsbuild/plugin-react';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  plugins: [pluginReact()],
6
7
  });
@@ -12,7 +12,7 @@
12
12
  "solid-js": "^1.9.10"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-babel": "^1.0.6",
17
17
  "@rsbuild/plugin-solid": "^1.0.6"
18
18
  }
@@ -3,6 +3,7 @@ import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginBabel } from '@rsbuild/plugin-babel';
4
4
  import { pluginSolid } from '@rsbuild/plugin-solid';
5
5
 
6
+ // Docs: https://rsbuild.rs/config/
6
7
  export default defineConfig({
7
8
  plugins: [
8
9
  pluginBabel({
@@ -12,7 +12,7 @@
12
12
  "solid-js": "^1.9.10"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-babel": "^1.0.6",
17
17
  "@rsbuild/plugin-solid": "^1.0.6",
18
18
  "typescript": "^5.9.3"
@@ -2,6 +2,7 @@ import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginBabel } from '@rsbuild/plugin-babel';
3
3
  import { pluginSolid } from '@rsbuild/plugin-solid';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [
7
8
  pluginBabel({
@@ -9,10 +9,10 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "svelte": "^5.43.2"
12
+ "svelte": "^5.43.14"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-svelte": "^1.0.11"
17
17
  }
18
18
  }
@@ -2,6 +2,7 @@
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginSvelte } from '@rsbuild/plugin-svelte';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [pluginSvelte()],
7
8
  });
@@ -10,12 +10,12 @@
10
10
  "svelte-check": "svelte-check --tsconfig ./tsconfig.json"
11
11
  },
12
12
  "dependencies": {
13
- "svelte": "^5.43.2"
13
+ "svelte": "^5.43.14"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.6.0",
16
+ "@rsbuild/core": "^1.6.7",
17
17
  "@rsbuild/plugin-svelte": "^1.0.11",
18
- "svelte-check": "^4.3.3",
18
+ "svelte-check": "^4.3.4",
19
19
  "typescript": "^5.9.3"
20
20
  }
21
21
  }
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginSvelte } from '@rsbuild/plugin-svelte';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  plugins: [pluginSvelte()],
6
7
  });
@@ -9,6 +9,6 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
12
- "@rsbuild/core": "^1.6.0"
12
+ "@rsbuild/core": "^1.6.7"
13
13
  }
14
14
  }
@@ -1,4 +1,5 @@
1
1
  // @ts-check
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({});
@@ -9,7 +9,7 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
12
- "@rsbuild/core": "^1.6.0",
12
+ "@rsbuild/core": "^1.6.7",
13
13
  "typescript": "^5.9.3"
14
14
  }
15
15
  }
@@ -1,3 +1,4 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
 
3
+ // Docs: https://rsbuild.rs/config/
3
4
  export default defineConfig({});
@@ -12,7 +12,7 @@
12
12
  "vue": "^2.7.16"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-vue2": "^1.0.4"
17
17
  }
18
18
  }
@@ -2,6 +2,7 @@
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginVue2 } from '@rsbuild/plugin-vue2';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [pluginVue2()],
7
8
  });
@@ -12,7 +12,7 @@
12
12
  "vue": "^2.7.16"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-vue2": "^1.0.4",
17
17
  "typescript": "^5.9.3"
18
18
  }
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginVue2 } from '@rsbuild/plugin-vue2';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  plugins: [pluginVue2()],
6
7
  });
@@ -9,10 +9,10 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "vue": "^3.5.22"
12
+ "vue": "^3.5.24"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-vue": "^1.2.0"
17
17
  }
18
18
  }
@@ -2,6 +2,7 @@
2
2
  import { defineConfig } from '@rsbuild/core';
3
3
  import { pluginVue } from '@rsbuild/plugin-vue';
4
4
 
5
+ // Docs: https://rsbuild.rs/config/
5
6
  export default defineConfig({
6
7
  plugins: [pluginVue()],
7
8
  });
@@ -9,10 +9,10 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "vue": "^3.5.22"
12
+ "vue": "^3.5.24"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.6.0",
15
+ "@rsbuild/core": "^1.6.7",
16
16
  "@rsbuild/plugin-vue": "^1.2.0",
17
17
  "typescript": "^5.9.3"
18
18
  }
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from '@rsbuild/core';
2
2
  import { pluginVue } from '@rsbuild/plugin-vue';
3
3
 
4
+ // Docs: https://rsbuild.rs/config/
4
5
  export default defineConfig({
5
6
  plugins: [pluginVue()],
6
7
  });