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

Export utilities in umbrella package #2223

Open
arboleya opened this issue May 3, 2024 · 1 comment
Open

Export utilities in umbrella package #2223

arboleya opened this issue May 3, 2024 · 1 comment
Labels

Comments

@arboleya
Copy link
Member

arboleya commented May 3, 2024

We should export all secondary entry points (utilities) using dedicated entry points in the fuels umbrella package.

For example:

  • fuels/test-utils — all test utilities from all sub-packages
  • fuels/cli-utils — all CLI utilities from all sub-packages

The idea is that each of these would consolidate all utilities of the same group.

A few examples I grabbed from the codebase:

import { generateTestWallet } from '@fuel-ts/account/test-utils';
import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils';
import { findBinPath } from '@fuel-ts/utils/cli-utils';

The umbrella package should be the only thing users should have to deal with.

@arboleya arboleya added the chore label May 3, 2024
@nedsalk
Copy link
Contributor

nedsalk commented May 3, 2024

Related comment. That PR has implementation for how the infrastructure part of this issue would be handled.

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

No branches or pull requests

2 participants