create-rsbuild 0.2.18 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # create-rsbuild
2
2
 
3
+ ## 0.3.0
4
+
3
5
  ## 0.2.18
4
6
 
5
7
  ## 0.2.17
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Rsbuild
6
6
 
7
- Unleash the power of Rspack with the out-of-the-box build tool.
7
+ The Rspack-based build tool. It's fast, out-of-the-box and extensible.
8
8
 
9
9
  ## Documentation
10
10
 
package/dist/index.js CHANGED
@@ -59,7 +59,7 @@ async function main() {
59
59
  placeholder: "my-project",
60
60
  validate(value) {
61
61
  if (value.length === 0) {
62
- return `Target folder is required`;
62
+ return "Target folder is required";
63
63
  }
64
64
  if (import_fs.default.existsSync(import_path.default.join(cwd, value))) {
65
65
  return `"${value}" is not empty, please input another folder`;
@@ -90,7 +90,7 @@ async function main() {
90
90
  });
91
91
  checkCancel(language);
92
92
  const srcFolder = import_path.default.join(packageRoot, `template-${framework}-${language}`);
93
- const commonFolder = import_path.default.join(packageRoot, `template-common`);
93
+ const commonFolder = import_path.default.join(packageRoot, "template-common");
94
94
  const distFolder = import_path.default.join(cwd, targetDir);
95
95
  copyFolder(commonFolder, distFolder, version);
96
96
  copyFolder(srcFolder, distFolder, version, import_path.default.basename(targetDir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.2.18",
3
+ "version": "0.3.0",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -14,8 +14,8 @@
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "workspace:*",
16
16
  "@rsbuild/plugin-react": "workspace:*",
17
- "@types/react": "^18",
18
- "@types/react-dom": "^18",
17
+ "@types/react": "^18.2.47",
18
+ "@types/react-dom": "^18.2.18",
19
19
  "typescript": "^5.3.0"
20
20
  }
21
21
  }
@@ -3,5 +3,11 @@ import { pluginBabel } from '@rsbuild/plugin-babel';
3
3
  import { pluginSolid } from '@rsbuild/plugin-solid';
4
4
 
5
5
  export default defineConfig({
6
- plugins: [pluginBabel(), pluginSolid()],
6
+ plugins: [
7
+ pluginBabel({
8
+ include: /\.(?:jsx|tsx)$/,
9
+ exclude: /[\\/]node_modules[\\/]/,
10
+ }),
11
+ pluginSolid(),
12
+ ],
7
13
  });
@@ -3,5 +3,11 @@ import { pluginBabel } from '@rsbuild/plugin-babel';
3
3
  import { pluginSolid } from '@rsbuild/plugin-solid';
4
4
 
5
5
  export default defineConfig({
6
- plugins: [pluginBabel(), pluginSolid()],
6
+ plugins: [
7
+ pluginBabel({
8
+ include: /\.(?:jsx|tsx)$/,
9
+ exclude: /[\\/]node_modules[\\/]/,
10
+ }),
11
+ pluginSolid(),
12
+ ],
7
13
  });