create-rsbuild 0.2.17 → 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
package/README.md
CHANGED
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
|
|
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,
|
|
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
|
@@ -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: [
|
|
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: [
|
|
6
|
+
plugins: [
|
|
7
|
+
pluginBabel({
|
|
8
|
+
include: /\.(?:jsx|tsx)$/,
|
|
9
|
+
exclude: /[\\/]node_modules[\\/]/,
|
|
10
|
+
}),
|
|
11
|
+
pluginSolid(),
|
|
12
|
+
],
|
|
7
13
|
});
|