Skip to content

Commit 3873049

Browse files
committed
Fix new adapter generator
1 parent dc4d6e3 commit 3873049

File tree

1 file changed

+10
-5
lines changed
  • scripts/generator-adapter/generators/app

1 file changed

+10
-5
lines changed

scripts/generator-adapter/generators/app/index.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)