We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5abb564 + 7adf9ca commit 3221d0fCopy full SHA for 3221d0f
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "create-react-webpack",
3
- "version": "0.1.0",
+ "version": "0.1.1",
4
"description": "create-react-webpack ",
5
"main": "scripts/create.js",
6
"bin": {
scripts/create.js
@@ -12,7 +12,9 @@ var args = process.argv.slice(2);
12
var dirName = args[0];
13
var end_to_end = args[1];
14
15
-if (dirName[0].match("^[A-Z0-9]")) {
+if (dirName === "undefined") {
16
+ throw new Error(ErrorMessage("directory name can't be empty"));
17
+} else if (dirName[0].match("^[A-Z0-9]")) {
18
throw new Error(
19
ErrorMessage("directory name can't start from capital letters ")
20
);
0 commit comments