File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/create-gator-app/src/lib Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { configurePackageJson } from "./helpers/configure-package-json";
1111import { ErrorCodes , BuilderError } from "./types/builder-error" ;
1212import { BuilderConfig } from "./config" ;
1313import ora from "ora" ;
14+ import path from "path" ;
1415
1516export class Builder {
1617 private builderConfig : BuilderConfig ;
@@ -31,6 +32,9 @@ export class Builder {
3132 await this . configureWeb3Auth ( ) ;
3233 }
3334 await this . configurePackage ( ) ;
35+ if ( this . options . packageManager === "yarn" ) {
36+ await this . configureYarnLock ( ) ;
37+ }
3438 if ( ! this . options . skipInstall ) {
3539 await this . installDependencies ( ) ;
3640 }
@@ -105,6 +109,10 @@ export class Builder {
105109 }
106110 }
107111
112+ private async configureYarnLock ( ) : Promise < void > {
113+ await fs . createFile ( path . join ( this . options . targetDir , "yarn.lock" ) ) ;
114+ }
115+
108116 private async installDependencies ( ) : Promise < void > {
109117 this . spinner . start ( "Installing dependencies..." ) ;
110118 try {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const configurePackageJson = async (
1818 if ( builderConfig . shouldAddWeb3AuthConfig ( ) ) {
1919 pkgJson . dependencies = {
2020 ...pkgJson . dependencies ,
21- "@web3auth/modal" : "v10 .0.0" ,
21+ "@web3auth/modal" : "^10 .0.0" ,
2222 } ;
2323
2424 // If the project is using vite-react, we need to add the buffer and process
You can’t perform that action at this time.
0 commit comments