Add option to allow app directory globs from packages
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 185
- PR merge metrics
- No merged PRs in 30d
Description
For things like automatic loading of translation files, it may be nice to allow globs of files even when they are not within the package boundary. Right now the following fails if it's part of a module:
const en = fs.readFileSync(path.resolve('locales/en.json');
In my specific case, I was also interested in having an installed module be able to preserve a directory by doing:
fs.statSync(path.resolve('app-data-dir'));
But there may be more examples, like automatically loaded config files from the app/working directory.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by tracing how package-boundary handling treats fs.readFileSync with path.resolve and fs.statSync, then determine how an option should cover external globs and app-data-dir preservation. Done means supported files outside the package boundary are included without breaking existing tracing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100