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

feat: ensure all paths are relative to the rootPath #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simonfan
Copy link

Hello! Thanks for the lib! I've made a very simple change suggestion:

BREAKING CHANGE
Previously, paths were relative if the question was not provided a rootPath path option and, if provided a rootPath, they became absolute (by including ${rootPath}${relativePath}. This update makes all paths relative, leaving the responsibility of building absolute paths to the consumer.

Reasons for update:

  • Make return behavior consistent (always relative) and independent of rootPath option being set
  • Improved UI when using rootPath (only the relative portion is shown and search goes only through relative paths)

BREAKING CHANGE
Previously, paths were relative if the question was not provided a
rootPath path option and, if provided a rootPath, they became
absolute (by including ${rootPath}${relativePath}. This update
makes all paths relative, leaving the responsibility of building
absolute paths to the consumer.
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

Successfully merging this pull request may close these issues.

None yet

1 participant