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

Improve fuels init directory detection #3614

Closed
petertonysmith94 opened this issue Jan 23, 2025 · 0 comments · Fixed by #3638
Closed

Improve fuels init directory detection #3614

petertonysmith94 opened this issue Jan 23, 2025 · 0 comments · Fixed by #3638
Assignees
Labels
bug Issue is a bug

Comments

@petertonysmith94
Copy link
Contributor

Summary

Improve fuels init directory detection, such that, when using the glob pattern for this single program directory:

npx fuels init --predicates ./predicate/* --output ./src/predicate_api

For the following directory structure:

└── predicate
    └── Forc.toml

Actual

We obtain the following fuels.config.ts

import { createConfig } from 'fuels';

export default createConfig({
  predicates: [
        'predicate/Forc.lock',
        'predicate/Forc.toml',
        'predicate/out',
        'predicate/src',
  ],
  output: './src/predicate_api',
});

Expected

We'd expect the following fuels.config.ts

import { createConfig } from 'fuels';

export default createConfig({
  predicates: [
        'predicate'
  ],
  output: './src/predicate_api',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant