@@ -51,25 +51,30 @@ export const createPackageJson = async (
51
51
packageJson [ "dependencies" ] [ "@project-serum/borsh" ] = "^0.2.5" ;
52
52
packageJson [ "dependencies" ] [ "@solana/wallet-adapter-react-ui" ] =
53
53
"^0.9.11" ;
54
- packageJson [ "dependencies" ] [ "@solana/wallet-adapter-phantom" ] = "^0.9.8" ;
55
- packageJson [ "dependencies" ] [ "@solana/wallet-adapter-react" ] = "^0.15.8" ;
56
- packageJson [ "dependencies" ] [ "@solana/wallet-adapter-base" ] = "^0.9.9" ;
54
+ packageJson [ "dependencies" ] [ "@solana/wallet-adapter-phantom" ] =
55
+ "^0.9.8" ;
56
+ packageJson [ "dependencies" ] [ "@solana/wallet-adapter-react" ] =
57
+ "^0.15.8" ;
58
+ packageJson [ "dependencies" ] [ "@solana/wallet-adapter-base" ] =
59
+ "^0.9.9" ;
57
60
packageJson [ "dependencies" ] [ "@solana/web3.js" ] = "^1.50.1" ;
58
61
}
59
62
60
63
if ( useBackend ) {
61
64
switch ( backendProvider ) {
62
65
case "hardhat" :
63
- packageJson [ "devDependencies" ] [ "@nomicfoundation/hardhat-toolbox" ] =
64
- "^1.0.2" ;
66
+ packageJson [ "devDependencies" ] [
67
+ "@nomicfoundation/hardhat-toolbox"
68
+ ] = "^1.0.2" ;
65
69
packageJson [ "devDependencies" ] [ "hardhat" ] = "^2.10.1" ;
66
70
break ;
67
71
case "foundry" :
68
72
console . log (
69
73
"It will be soon released - reverting to Hardhat as of now"
70
74
) ;
71
- packageJson [ "devDependencies" ] [ "@nomicfoundation/hardhat-toolbox" ] =
72
- "^1.0.2" ;
75
+ packageJson [ "devDependencies" ] [
76
+ "@nomicfoundation/hardhat-toolbox"
77
+ ] = "^1.0.2" ;
73
78
packageJson [ "devDependencies" ] [ "@hardhat" ] = "^2.10.1" ;
74
79
break ;
75
80
default :
@@ -78,7 +83,10 @@ export const createPackageJson = async (
78
83
}
79
84
80
85
bar1 . update ( 150 ) ;
81
- fs . writeFileSync ( "package.json" , JSON . stringify ( packageJson , null , "\t" ) ) ;
86
+ fs . writeFileSync (
87
+ "package.json" ,
88
+ JSON . stringify ( packageJson , null , "\t" )
89
+ ) ;
82
90
bar1 . update ( 200 ) ;
83
91
bar1 . stop ( ) ;
84
92
0 commit comments