Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typechain-compiler ProjectFiles path option #29

Open
shunsukew opened this issue Jan 23, 2023 · 0 comments
Open

typechain-compiler ProjectFiles path option #29

shunsukew opened this issue Jan 23, 2023 · 0 comments

Comments

@shunsukew
Copy link

shunsukew commented Jan 23, 2023

Right now, projectFiles path is configurable only by config.json file as explained in typechain-compiler usage.

export interface Config {
    projectFiles: string[]; // Path to all project files, everystring in glob format
    skipLinting : boolean; // Skip linting of project files
    artifactsPath : string; // Path to artifacts folder, where artifacts will be stored it will save both .contract and .json (contract ABI)
    typechainGeneratedPath : string; // Path to typechain generated folder
}

However, when integrating typechain-compiler to some tools (swanky-cli in our case), we need to compile user-specified contracts only out of all contracts inside swanky-cli's project folder.
(For example, a swanky-cli project sample has flipper and psp22 contracts, and users want to compile flipper only just by passing cli arguments)

To do this, typechain-compiler needs to have a more flexible way of choosing which projects to compile. In addition to config.json file, by taking optional flag like npx typechain-compiler --projectFiles /path/to/project_files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant