create-rsbuild 1.7.0 → 2.0.0-alpha.2

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 (31) hide show
  1. package/package.json +10 -10
  2. package/template-lit-js/package.json +1 -1
  3. package/template-lit-ts/package.json +1 -1
  4. package/template-preact-js/package.json +3 -3
  5. package/template-preact-ts/package.json +3 -3
  6. package/template-react-js/package.json +2 -2
  7. package/template-react-ts/package.json +3 -3
  8. package/template-react18-js/package.json +2 -2
  9. package/template-react18-ts/package.json +2 -2
  10. package/template-rstest/react-js/package.json +3 -2
  11. package/template-rstest/react-js/rstest.config.js +2 -3
  12. package/template-rstest/react-ts/package.json +3 -2
  13. package/template-rstest/react-ts/rstest.config.ts +2 -3
  14. package/template-rstest/vanilla-js/package.json +3 -2
  15. package/template-rstest/vanilla-js/rstest.config.js +2 -1
  16. package/template-rstest/vanilla-ts/package.json +3 -2
  17. package/template-rstest/vanilla-ts/rstest.config.ts +2 -1
  18. package/template-rstest/vue-js/package.json +3 -2
  19. package/template-rstest/vue-js/rstest.config.js +2 -3
  20. package/template-rstest/vue-ts/package.json +3 -2
  21. package/template-rstest/vue-ts/rstest.config.ts +2 -3
  22. package/template-solid-js/package.json +3 -3
  23. package/template-solid-ts/package.json +3 -3
  24. package/template-svelte-js/package.json +3 -3
  25. package/template-svelte-ts/package.json +3 -3
  26. package/template-vanilla-js/package.json +1 -1
  27. package/template-vanilla-ts/package.json +1 -1
  28. package/template-vue2-js/package.json +2 -2
  29. package/template-vue2-ts/package.json +2 -2
  30. package/template-vue3-js/package.json +2 -2
  31. package/template-vue3-ts/package.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "1.7.0",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "repository": {
@@ -27,18 +27,18 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@rsbuild/plugin-react": "^1.1.0",
30
- "@rslib/core": "0.19.1",
31
- "@types/node": "^24.10.4",
30
+ "@rslib/core": "0.19.2",
31
+ "@types/node": "^24.10.9",
32
32
  "typescript": "^5.9.3",
33
- "@rsbuild/core": "1.7.2",
34
- "@rsbuild/plugin-babel": "1.0.6",
35
- "@rsbuild/plugin-preact": "1.7.0",
36
- "@rsbuild/plugin-solid": "1.0.6",
37
- "@rsbuild/plugin-svelte": "1.0.11",
38
- "@rsbuild/plugin-vue": "1.2.2"
33
+ "@rsbuild/core": "2.0.0-alpha.2",
34
+ "@rsbuild/plugin-babel": "1.0.7",
35
+ "@rsbuild/plugin-solid": "1.0.7",
36
+ "@rsbuild/plugin-preact": "1.7.1",
37
+ "@rsbuild/plugin-svelte": "1.0.12",
38
+ "@rsbuild/plugin-vue": "1.2.3"
39
39
  },
40
40
  "engines": {
41
- "node": ">=18.12.0"
41
+ "node": "^20.19.0 || >=22.12.0"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",
@@ -12,6 +12,6 @@
12
12
  "lit": "^3.3.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1"
15
+ "@rsbuild/core": "^2.0.0-0"
16
16
  }
17
17
  }
@@ -12,7 +12,7 @@
12
12
  "lit": "^3.3.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
15
+ "@rsbuild/core": "^2.0.0-0",
16
16
  "typescript": "^5.9.3"
17
17
  }
18
18
  }
@@ -9,10 +9,10 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "preact": "^10.28.1"
12
+ "preact": "^10.28.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-preact": "^1.7.0"
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-preact": "^1.7.1"
17
17
  }
18
18
  }
@@ -9,11 +9,11 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "preact": "^10.28.1"
12
+ "preact": "^10.28.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-preact": "^1.7.0",
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-preact": "^1.7.1",
17
17
  "typescript": "^5.9.3"
18
18
  }
19
19
  }
@@ -13,7 +13,7 @@
13
13
  "react-dom": "^19.2.3"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.7.1",
17
- "@rsbuild/plugin-react": "^1.4.2"
16
+ "@rsbuild/core": "^2.0.0-0",
17
+ "@rsbuild/plugin-react": "^1.4.3"
18
18
  }
19
19
  }
@@ -13,9 +13,9 @@
13
13
  "react-dom": "^19.2.3"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.7.1",
17
- "@rsbuild/plugin-react": "^1.4.2",
18
- "@types/react": "^19.2.7",
16
+ "@rsbuild/core": "^2.0.0-0",
17
+ "@rsbuild/plugin-react": "^1.4.3",
18
+ "@types/react": "^19.2.8",
19
19
  "@types/react-dom": "^19.2.3",
20
20
  "typescript": "^5.9.3"
21
21
  }
@@ -13,7 +13,7 @@
13
13
  "react-dom": "^18.3.1"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.7.1",
17
- "@rsbuild/plugin-react": "^1.4.2"
16
+ "@rsbuild/core": "^2.0.0-0",
17
+ "@rsbuild/plugin-react": "^1.4.3"
18
18
  }
19
19
  }
@@ -13,8 +13,8 @@
13
13
  "react-dom": "^18.3.1"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.7.1",
17
- "@rsbuild/plugin-react": "^1.4.2",
16
+ "@rsbuild/core": "^2.0.0-0",
17
+ "@rsbuild/plugin-react": "^1.4.3",
18
18
  "@types/react": "^18.3.18",
19
19
  "@types/react-dom": "^18.3.5",
20
20
  "typescript": "^5.9.3"
@@ -7,7 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/react": "^16.3.1",
10
- "@rstest/core": "^0.7.8",
11
- "happy-dom": "^20.0.11"
10
+ "@rstest/core": "^0.8.0",
11
+ "@rstest/adapter-rsbuild": "^0.2.0",
12
+ "happy-dom": "^20.3.3"
12
13
  }
13
14
  }
@@ -1,9 +1,8 @@
1
- import { pluginReact } from '@rsbuild/plugin-react';
1
+ import { withRsbuildConfig } from '@rstest/adapter-rsbuild';
2
2
  import { defineConfig } from '@rstest/core';
3
3
 
4
4
  // Docs: https://rstest.rs/config/
5
5
  export default defineConfig({
6
- plugins: [pluginReact()],
7
- testEnvironment: 'happy-dom',
6
+ extends: withRsbuildConfig(),
8
7
  setupFiles: ['./tests/rstest.setup.js'],
9
8
  });
@@ -7,7 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/react": "^16.3.1",
10
- "@rstest/core": "^0.7.8",
11
- "happy-dom": "^20.0.11"
10
+ "@rstest/core": "^0.8.0",
11
+ "@rstest/adapter-rsbuild": "^0.2.0",
12
+ "happy-dom": "^20.3.3"
12
13
  }
13
14
  }
@@ -1,9 +1,8 @@
1
- import { pluginReact } from '@rsbuild/plugin-react';
1
+ import { withRsbuildConfig } from '@rstest/adapter-rsbuild';
2
2
  import { defineConfig } from '@rstest/core';
3
3
 
4
4
  // Docs: https://rstest.rs/config/
5
5
  export default defineConfig({
6
- plugins: [pluginReact()],
7
- testEnvironment: 'happy-dom',
6
+ extends: withRsbuildConfig(),
8
7
  setupFiles: ['./tests/rstest.setup.ts'],
9
8
  });
@@ -6,7 +6,8 @@
6
6
  "devDependencies": {
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
- "@rstest/core": "^0.7.8",
10
- "happy-dom": "^20.0.11"
9
+ "@rstest/core": "^0.8.0",
10
+ "@rstest/adapter-rsbuild": "^0.2.0",
11
+ "happy-dom": "^20.3.3"
11
12
  }
12
13
  }
@@ -1,7 +1,8 @@
1
+ import { withRsbuildConfig } from '@rstest/adapter-rsbuild';
1
2
  import { defineConfig } from '@rstest/core';
2
3
 
3
4
  // Docs: https://rstest.rs/config/
4
5
  export default defineConfig({
5
- testEnvironment: 'happy-dom',
6
+ extends: withRsbuildConfig(),
6
7
  setupFiles: ['./tests/rstest.setup.js'],
7
8
  });
@@ -6,7 +6,8 @@
6
6
  "devDependencies": {
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
- "@rstest/core": "^0.7.8",
10
- "happy-dom": "^20.0.11"
9
+ "@rstest/core": "^0.8.0",
10
+ "@rstest/adapter-rsbuild": "^0.2.0",
11
+ "happy-dom": "^20.3.3"
11
12
  }
12
13
  }
@@ -1,7 +1,8 @@
1
+ import { withRsbuildConfig } from '@rstest/adapter-rsbuild';
1
2
  import { defineConfig } from '@rstest/core';
2
3
 
3
4
  // Docs: https://rstest.rs/config/
4
5
  export default defineConfig({
5
- testEnvironment: 'happy-dom',
6
+ extends: withRsbuildConfig(),
6
7
  setupFiles: ['./tests/rstest.setup.ts'],
7
8
  });
@@ -7,7 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/vue": "^8.1.0",
10
- "@rstest/core": "^0.7.8",
11
- "happy-dom": "^20.0.11"
10
+ "@rstest/core": "^0.8.0",
11
+ "@rstest/adapter-rsbuild": "^0.2.0",
12
+ "happy-dom": "^20.3.3"
12
13
  }
13
14
  }
@@ -1,9 +1,8 @@
1
- import { pluginVue } from '@rsbuild/plugin-vue';
1
+ import { withRsbuildConfig } from '@rstest/adapter-rsbuild';
2
2
  import { defineConfig } from '@rstest/core';
3
3
 
4
4
  // Docs: https://rstest.rs/config/
5
5
  export default defineConfig({
6
- plugins: [pluginVue()],
7
- testEnvironment: 'happy-dom',
6
+ extends: withRsbuildConfig(),
8
7
  setupFiles: ['./tests/rstest.setup.js'],
9
8
  });
@@ -7,7 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/vue": "^8.1.0",
10
- "@rstest/core": "^0.7.8",
11
- "happy-dom": "^20.0.11"
10
+ "@rstest/core": "^0.8.0",
11
+ "@rstest/adapter-rsbuild": "^0.2.0",
12
+ "happy-dom": "^20.3.3"
12
13
  }
13
14
  }
@@ -1,9 +1,8 @@
1
- import { pluginVue } from '@rsbuild/plugin-vue';
1
+ import { withRsbuildConfig } from '@rstest/adapter-rsbuild';
2
2
  import { defineConfig } from '@rstest/core';
3
3
 
4
4
  // Docs: https://rstest.rs/config/
5
5
  export default defineConfig({
6
- plugins: [pluginVue()],
7
- testEnvironment: 'happy-dom',
6
+ extends: withRsbuildConfig(),
8
7
  setupFiles: ['./tests/rstest.setup.ts'],
9
8
  });
@@ -12,8 +12,8 @@
12
12
  "solid-js": "^1.9.10"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-babel": "^1.0.6",
17
- "@rsbuild/plugin-solid": "^1.0.6"
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-babel": "^1.0.7",
17
+ "@rsbuild/plugin-solid": "^1.0.7"
18
18
  }
19
19
  }
@@ -12,9 +12,9 @@
12
12
  "solid-js": "^1.9.10"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-babel": "^1.0.6",
17
- "@rsbuild/plugin-solid": "^1.0.6",
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-babel": "^1.0.7",
17
+ "@rsbuild/plugin-solid": "^1.0.7",
18
18
  "typescript": "^5.9.3"
19
19
  }
20
20
  }
@@ -9,10 +9,10 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "svelte": "^5.46.1"
12
+ "svelte": "^5.46.4"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-svelte": "^1.0.11"
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-svelte": "^1.0.12"
17
17
  }
18
18
  }
@@ -10,11 +10,11 @@
10
10
  "svelte-check": "svelte-check --tsconfig ./tsconfig.json"
11
11
  },
12
12
  "dependencies": {
13
- "svelte": "^5.46.1"
13
+ "svelte": "^5.46.4"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^1.7.1",
17
- "@rsbuild/plugin-svelte": "^1.0.11",
16
+ "@rsbuild/core": "^2.0.0-0",
17
+ "@rsbuild/plugin-svelte": "^1.0.12",
18
18
  "svelte-check": "^4.3.5",
19
19
  "typescript": "^5.9.3"
20
20
  }
@@ -9,6 +9,6 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
12
- "@rsbuild/core": "^1.7.1"
12
+ "@rsbuild/core": "^2.0.0-0"
13
13
  }
14
14
  }
@@ -9,7 +9,7 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
12
- "@rsbuild/core": "^1.7.1",
12
+ "@rsbuild/core": "^2.0.0-0",
13
13
  "typescript": "^5.9.3"
14
14
  }
15
15
  }
@@ -12,7 +12,7 @@
12
12
  "vue": "^2.7.16"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-vue2": "^1.0.5"
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-vue2": "^1.0.6"
17
17
  }
18
18
  }
@@ -12,8 +12,8 @@
12
12
  "vue": "^2.7.16"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-vue2": "^1.0.5",
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-vue2": "^1.0.6",
17
17
  "typescript": "^5.9.3"
18
18
  }
19
19
  }
@@ -12,7 +12,7 @@
12
12
  "vue": "^3.5.26"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-vue": "^1.2.2"
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-vue": "^1.2.3"
17
17
  }
18
18
  }
@@ -12,8 +12,8 @@
12
12
  "vue": "^3.5.26"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^1.7.1",
16
- "@rsbuild/plugin-vue": "^1.2.2",
15
+ "@rsbuild/core": "^2.0.0-0",
16
+ "@rsbuild/plugin-vue": "^1.2.3",
17
17
  "typescript": "^5.9.3"
18
18
  }
19
19
  }