@wagmi/cli
Advanced tools
Comparing version 0.0.0-canary-20240613151143 to 0.0.0-canary-20240625152428
import dedent from 'dedent'; | ||
import { execa, execaCommandSync } from 'execa'; | ||
import { fdir } from 'fdir'; | ||
import { default as fs } from 'fs-extra'; | ||
import { globby } from 'globby'; | ||
import { basename, extname, join, resolve } from 'pathe'; | ||
@@ -51,6 +51,6 @@ import pc from 'picocolors'; | ||
async function getArtifactPaths(artifactsDirectory) { | ||
return await globby([ | ||
...include.map((x) => `${artifactsDirectory}/**/${x}`), | ||
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`), | ||
]); | ||
const crawler = new fdir() | ||
.withBasePath() | ||
.glob(...include.map((x) => `${artifactsDirectory}/**/${x}`), ...exclude.map((x) => `!${artifactsDirectory}/**/${x}`)); | ||
return crawler.crawl(artifactsDirectory).withPromise(); | ||
} | ||
@@ -57,0 +57,0 @@ const project = resolve(process.cwd(), config.project ?? ''); |
import { execa } from 'execa'; | ||
import { fdir } from 'fdir'; | ||
import { default as fs } from 'fs-extra'; | ||
import { globby } from 'globby'; | ||
import { basename, extname, join, resolve } from 'pathe'; | ||
@@ -24,6 +24,6 @@ import pc from 'picocolors'; | ||
async function getArtifactPaths(artifactsDirectory) { | ||
return await globby([ | ||
...include.map((x) => `${artifactsDirectory}/**/${x}`), | ||
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`), | ||
]); | ||
const crawler = new fdir() | ||
.withBasePath() | ||
.glob(...include.map((x) => `${artifactsDirectory}/**/${x}`), ...exclude.map((x) => `!${artifactsDirectory}/**/${x}`)); | ||
return crawler.crawl(artifactsDirectory).withPromise(); | ||
} | ||
@@ -30,0 +30,0 @@ const project = resolve(process.cwd(), config.project); |
@@ -1,2 +0,2 @@ | ||
export const version = '0.0.0-canary-20240613151143'; | ||
export const version = '0.0.0-canary-20240625152428'; | ||
//# sourceMappingURL=version.js.map |
@@ -38,26 +38,16 @@ import type { Address } from 'viem'; | ||
export declare function blockExplorer(config: BlockExplorerConfig): { | ||
contracts: () => import("../types.js").MaybePromise<ContractConfig<number, undefined>[]>; | ||
contracts: () => import("../types.js").MaybePromise<ContractConfig[]>; | ||
name: string; | ||
run?: ((config: { | ||
contracts: { | ||
abi: import("abitype").Abi; | ||
address?: `0x${string}` | Record<number, `0x${string}`> | undefined; | ||
name: string; | ||
content: string; | ||
meta: { | ||
abiName: string; | ||
addressName?: string | undefined; | ||
configName?: string | undefined; | ||
}; | ||
}[]; | ||
contracts: import("../config.js").Contract[]; | ||
isTypeScript: boolean; | ||
outputs: readonly { | ||
plugin: Pick<import("../config.js").Plugin, "name">; | ||
imports?: string | undefined; | ||
prepend?: string | undefined; | ||
imports?: string; | ||
prepend?: string; | ||
content: string; | ||
}[]; | ||
}) => import("../types.js").MaybePromise<{ | ||
imports?: string | undefined; | ||
prepend?: string | undefined; | ||
imports?: string; | ||
prepend?: string; | ||
content: string; | ||
@@ -64,0 +54,0 @@ }>) | undefined; |
@@ -75,26 +75,16 @@ import type { ContractConfig } from '../config.js'; | ||
export declare function etherscan<chainId extends ChainId>(config: EtherscanConfig<chainId>): { | ||
contracts: () => import("../types.js").MaybePromise<ContractConfig<number, undefined>[]>; | ||
contracts: () => import("../types.js").MaybePromise<ContractConfig[]>; | ||
name: string; | ||
run?: ((config: { | ||
contracts: { | ||
abi: import("abitype").Abi; | ||
address?: `0x${string}` | Record<number, `0x${string}`> | undefined; | ||
name: string; | ||
content: string; | ||
meta: { | ||
abiName: string; | ||
addressName?: string | undefined; | ||
configName?: string | undefined; | ||
}; | ||
}[]; | ||
contracts: import("../config.js").Contract[]; | ||
isTypeScript: boolean; | ||
outputs: readonly { | ||
plugin: Pick<import("../config.js").Plugin, "name">; | ||
imports?: string | undefined; | ||
prepend?: string | undefined; | ||
imports?: string; | ||
prepend?: string; | ||
content: string; | ||
}[]; | ||
}) => import("../types.js").MaybePromise<{ | ||
imports?: string | undefined; | ||
prepend?: string | undefined; | ||
imports?: string; | ||
prepend?: string; | ||
content: string; | ||
@@ -101,0 +91,0 @@ }>) | undefined; |
@@ -26,26 +26,16 @@ import type * as chain from 'viem/chains'; | ||
export declare function sourcify<chainId extends ChainId>(config: SourcifyConfig<chainId>): { | ||
contracts: () => import("../types.js").MaybePromise<ContractConfig<number, undefined>[]>; | ||
contracts: () => import("../types.js").MaybePromise<ContractConfig[]>; | ||
name: string; | ||
run?: ((config: { | ||
contracts: { | ||
abi: import("abitype").Abi; | ||
address?: `0x${string}` | Record<number, `0x${string}`> | undefined; | ||
name: string; | ||
content: string; | ||
meta: { | ||
abiName: string; | ||
addressName?: string | undefined; | ||
configName?: string | undefined; | ||
}; | ||
}[]; | ||
contracts: import("../config.js").Contract[]; | ||
isTypeScript: boolean; | ||
outputs: readonly { | ||
plugin: Pick<import("../config.js").Plugin, "name">; | ||
imports?: string | undefined; | ||
prepend?: string | undefined; | ||
imports?: string; | ||
prepend?: string; | ||
content: string; | ||
}[]; | ||
}) => import("../types.js").MaybePromise<{ | ||
imports?: string | undefined; | ||
prepend?: string | undefined; | ||
imports?: string; | ||
prepend?: string; | ||
content: string; | ||
@@ -52,0 +42,0 @@ }>) | undefined; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.0.0-canary-20240613151143"; | ||
export declare const version = "0.0.0-canary-20240625152428"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "@wagmi/cli", | ||
"description": "Manage and generate code from Ethereum ABIs", | ||
"version": "0.0.0-canary-20240613151143", | ||
"version": "0.0.0-canary-20240625152428", | ||
"license": "MIT", | ||
@@ -62,6 +62,6 @@ "repository": { | ||
"dependencies": { | ||
"abitype": "^1.0.2", | ||
"abitype": "^1.0.4", | ||
"bundle-require": "^4.0.2", | ||
"cac": "^6.7.14", | ||
"change-case": "^4.1.2", | ||
"change-case": "^5.4.4", | ||
"chokidar": "^3.5.3", | ||
@@ -73,8 +73,9 @@ "dedent": "^0.7.0", | ||
"execa": "^8.0.1", | ||
"fdir": "^6.1.1", | ||
"find-up": "^6.3.0", | ||
"fs-extra": "^11.2.0", | ||
"globby": "^13.2.2", | ||
"ora": "^6.3.1", | ||
"pathe": "^1.1.2", | ||
"picocolors": "^1.0.0", | ||
"picomatch": "^3.0.0", | ||
"prettier": "^3.0.3", | ||
@@ -81,0 +82,0 @@ "viem": "2.x", |
import dedent from 'dedent' | ||
import { execa, execaCommandSync } from 'execa' | ||
import { fdir } from 'fdir' | ||
import { default as fs } from 'fs-extra' | ||
import { globby } from 'globby' | ||
@@ -129,6 +129,9 @@ import { basename, extname, join, resolve } from 'pathe' | ||
async function getArtifactPaths(artifactsDirectory: string) { | ||
return await globby([ | ||
...include.map((x) => `${artifactsDirectory}/**/${x}`), | ||
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`), | ||
]) | ||
const crawler = new fdir() | ||
.withBasePath() | ||
.glob( | ||
...include.map((x) => `${artifactsDirectory}/**/${x}`), | ||
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`), | ||
) | ||
return crawler.crawl(artifactsDirectory).withPromise() | ||
} | ||
@@ -135,0 +138,0 @@ |
import { execa } from 'execa' | ||
import { fdir } from 'fdir' | ||
import { default as fs } from 'fs-extra' | ||
import { globby } from 'globby' | ||
import { basename, extname, join, resolve } from 'pathe' | ||
@@ -96,6 +96,9 @@ import pc from 'picocolors' | ||
async function getArtifactPaths(artifactsDirectory: string) { | ||
return await globby([ | ||
...include.map((x) => `${artifactsDirectory}/**/${x}`), | ||
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`), | ||
]) | ||
const crawler = new fdir() | ||
.withBasePath() | ||
.glob( | ||
...include.map((x) => `${artifactsDirectory}/**/${x}`), | ||
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`), | ||
) | ||
return crawler.crawl(artifactsDirectory).withPromise() | ||
} | ||
@@ -102,0 +105,0 @@ |
@@ -1,1 +0,1 @@ | ||
export const version = '0.0.0-canary-20240613151143' | ||
export const version = '0.0.0-canary-20240625152428' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
502576
21
4904
+ Addedfdir@^6.1.1
+ Addedpicomatch@^3.0.0
+ Addedchange-case@5.4.4(transitive)
+ Addedfdir@6.3.0(transitive)
+ Addedpicomatch@3.0.1(transitive)
- Removedglobby@^13.2.2
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removedcamel-case@4.1.2(transitive)
- Removedcapital-case@1.0.4(transitive)
- Removedchange-case@4.1.2(transitive)
- Removedconstant-case@3.0.4(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removeddot-case@3.0.4(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedglobby@13.2.2(transitive)
- Removedheader-case@2.0.4(transitive)
- Removedignore@5.3.2(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedno-case@3.0.4(transitive)
- Removedparam-case@3.0.4(transitive)
- Removedpascal-case@3.1.2(transitive)
- Removedpath-case@3.0.4(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsentence-case@3.0.4(transitive)
- Removedslash@4.0.0(transitive)
- Removedsnake-case@3.0.4(transitive)
- Removedtslib@2.7.0(transitive)
- Removedupper-case@2.0.2(transitive)
- Removedupper-case-first@2.0.2(transitive)
Updatedabitype@^1.0.4
Updatedchange-case@^5.4.4