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

[fix] defaultRootIndex is not working - also not a valid option #203

Open
3 tasks done
mikevalstar opened this issue Oct 27, 2022 · 0 comments
Open
3 tasks done

[fix] defaultRootIndex is not working - also not a valid option #203

mikevalstar opened this issue Oct 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mikevalstar
Copy link
Contributor

Describe the bug

Node.js version: 16.13.1

OS version: MacOS 12.6

Description: When setting the defaultRootIndex it does not work; specifically setting it to 'index.ts'

Actual behavior

The option on start does not seem to be taken into account. Additionally this variable is not part of the types on the object.

Expected behavior

it should use this option

Code to reproduce

const bree = new Bree({
  root: path.join(__dirname, 'jobsv2'),
  defaultRootIndex: 'index.ts',
  defaultExtension: 'ts',
  acceptedExtensions: ['ts', 'js', 'mjs'],
  outputWorkerMetadata: true,
});

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
  • I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
@mikevalstar mikevalstar added the bug Something isn't working label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant