Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f964ac3

Browse files
author
rutvik
committed
Changed: package version to 1.0.18 and enhance project setup for Bun dependency installation
1 parent 1fb52ad commit f964ac3

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

‎demo‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b541eda9998fee5f47b978e6f5e5cbab5f2533bf

‎index.js‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ const main = async (repositoryUrl, directoryName, husky) => {
139139
`echo N | npx @react-native-community/cli init ${directoryName} --pm bun`
140140
);
141141

142+
shell.exec("bun install");
143+
144+
//3. Installing the dependencies.
145+
console.log("installing... ", dependencyList);
146+
shell.exec(`bun add ${dependencyList.join(" ")}`, shellOptions);
147+
shell.exec(`bun add -D ${devDependencyList.join(" ")}`, shellOptions);
148+
142149
if (!husky) {
143150
shell.exec(`bun remove husky`, shellOptions);
144151
}
@@ -206,17 +213,17 @@ const main = async (repositoryUrl, directoryName, husky) => {
206213
`echo "\n.env\n\!**/fastlane/.env" >> ${directoryName}/.gitignore`
207214
);
208215

209-
shell.exec("bun install");
210-
211-
//3. Installing the dependencies.
212-
console.log("installing... ", dependencyList);
213-
shell.exec(`bun add ${dependencyList.join(" ")}`, shellOptions);
214-
shell.exec(`bun add -D ${devDependencyList.join(" ")}`,shellOptions);
216+
if(os.platform()!=="win32"){
217+
shell.exec("sh postinstall",shellOptions);
218+
}else{
219+
shell.exec("node ./moduleResolver.js", shellOptions);
220+
shell.exec("node ./env.config/env.config.js", shellOptions);
221+
}
215222

216223
console.log(`Application generated... its ready to use.
217224
To get started,
218225
- cd ${directoryName}
219-
- bun run dev
226+
- bun run android
220227
`);
221228

222229
// console.log(

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-app-starter",
3-
"version": "1.0.17",
3+
"version": "1.0.18",
44
"description": "A React Native Template.",
55
"main": "index.js",
66
"bin": "index.js",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /