Skip to content

Commit 93f587d

Browse files
committed
⚡ Create library in subfolder, fixes #7
1 parent e550d4a commit 93f587d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Navigate into an empty directory to execute the command.
2424
$ react-native-create-library MyFancyLibrary
2525
```
2626

27-
This will create the library **in the current folder**.
27+
This will create the folder `MyFancyLibrary` in which the library will be created in.
2828

2929
```
3030
Usage: react-native-create-library [options] <name>

lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = ({
6767
platforms,
6868
};
6969

70-
const filename = template.name(args);
70+
const filename = path.join(name, template.name(args));
7171
const baseDir = filename.split(path.basename(filename))[0];
7272

7373
return createFolder(baseDir).then(() =>

0 commit comments

Comments
 (0)