File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
scripts/generator-adapter/generators/app Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,10 @@ export default class extends Generator.default {
278278 // Add dependencies to existing package.json
279279 const pkgJson = {
280280 devDependencies : {
281- '@types/jest' : '27 .5.2 ' ,
282- '@types/node' : '16.18.119 ' ,
283- nock : '13.5.5 ' ,
284- typescript : '5.6 .3' ,
281+ '@types/jest' : '^29 .5.14 ' ,
282+ '@types/node' : '22.14.1 ' ,
283+ nock : '13.5.6 ' ,
284+ typescript : '5.8 .3' ,
285285 } ,
286286 dependencies : {
287287 '@chainlink/external-adapter-framework' : this . props . frameworkVersion ,
@@ -310,7 +310,12 @@ export default class extends Generator.default {
310310
311311 // install stage is used to run npm or yarn install scripts
312312 async install ( ) {
313- await execAsPromise ( `yarn install --cwd ${ this . args [ 0 ] } /${ this . props . adapterName } ` ) ;
313+ try {
314+ await execAsPromise ( `yarn install --cwd ${ this . args [ 0 ] } /${ this . props . adapterName } ` )
315+ } catch ( e ) {
316+ console . log ( e )
317+ await execAsPromise ( `yarn --cwd ${ this . args [ 0 ] } /${ this . props . adapterName } install` )
318+ }
314319 }
315320
316321 // end is the last stage. can be used for messages or cleanup
You can’t perform that action at this time.
0 commit comments