Commit 5599ee6
authored
fix: update ‘js’ value type to new value ‘library’ in create library script (#253)
### Summary
The [email protected] has the wrong type value reference for javascript library, and prompt script force to choose a language for mobile.
I'm not sure it fixes everything, but script now seems to work correctly for javascript library path.
```
$ npx [email protected] awesome-module
✔ What is the name of the npm package? … react-native-awesome-module
✔ What is the description for the package? … An awesome module
✔ What is the name of package author? … Marco Travaglini
✔ What is the email address for the package author? … [email protected]
✔ What is the URL for the package author? … https://gitlab.com/napcoder
✔ What is the URL for the repository? … https://gitlab.com/napcoder/react-native-awesome-module
✔ What type of library do you want to develop? › JavaScript library
? Which languages do you want to use? › - Use arrow-keys. Return to submit.
❯ Java & Objective-C
Java & Swift
Kotlin & Objective-C
Kotlin & Swift
C++ for both iOS & Android
```
### Test plan
```
[napcoder@Ceres:~/projects/moduli/prove]$ ../../react-native-builder-bob/packages/create-react-native-library/bin/create-react-native-library awesome-module
✔ What is the name of the npm package? … react-native-awesome-module
✔ What is the description for the package? … An awesome module
✔ What is the name of package author? … Marco Travaglini
✔ What is the email address for the package author? … [email protected]
✔ What is the URL for the package author? … https://gitlab.com/napcoder
✔ What is the URL for the repository? … https://gitlab.com/napcoder/react-native-awesome-module
✔ What type of library do you want to develop? › JavaScript library
✔ What type of example app do you want to generate? › JavaScript only (with Expo and Web support)
Project created successfully at authsdk!
Get started with the project:
$ yarn
Run the example app on iOS:
$ yarn example ios
Run the example app on Android:
$ yarn example android
Run the example app on Web:
$ yarn example web
Good luck!
```1 parent a079b2a commit 5599ee6
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
0 commit comments