diff --git a/packages/cli/package.json b/packages/cli/package.json index 58e47f4c8..cee3dc8d9 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -46,7 +46,7 @@ "ipfs-http-client": "55.0.0", "jayson": "4.0.0", "js-yaml": "3.14.1", - "prettier": "3.0.3", + "prettier": "1.19.1", "request": "2.88.2", "semver": "7.4.0", "sync-request": "6.1.0", diff --git a/packages/cli/src/command-helpers/scaffold.ts b/packages/cli/src/command-helpers/scaffold.ts index 43e20cb35..ea800509d 100644 --- a/packages/cli/src/command-helpers/scaffold.ts +++ b/packages/cli/src/command-helpers/scaffold.ts @@ -31,7 +31,7 @@ export const generateDataSource = async ( network, 'source', yaml.parse( - await prettier.format( + prettier.format( protocolManifest.source({ contract: contractAddress, contractName, startBlock }), { parser: 'yaml', @@ -40,7 +40,7 @@ export const generateDataSource = async ( ), 'mapping', yaml.parse( - await prettier.format(protocolManifest.mapping({ abi, contractName }), { + prettier.format(protocolManifest.mapping({ abi, contractName }), { parser: 'yaml', }), ), diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 32586cc37..7dfae0a42 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + patchedDependencies: oclif@3.8.1: hash: rxmtqiusuyruv7tkwux5gvotbm @@ -301,8 +305,8 @@ importers: specifier: 3.14.1 version: 3.14.1 prettier: - specifier: 3.0.3 - version: 3.0.3 + specifier: 1.19.1 + version: 1.19.1 request: specifier: 2.88.2 version: 2.88.2 @@ -12347,6 +12351,7 @@ packages: resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} engines: {node: '>=14'} hasBin: true + dev: true /pretty-bytes@5.6.0: resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==} @@ -15322,7 +15327,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false