-
-
Notifications
You must be signed in to change notification settings - Fork 2
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: oom #329 #330
fix: oom #329 #330
Conversation
Run & review this pull request in StackBlitz Codeflow. |
🦋 Changeset detectedLatest commit: 8434558 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
A better solution is needed. (And to myself: it seems a bad practice to execute these configs too earlier, they're not always used actually 😂 |
And this package also not support pnpm, forget to consider pnpm-workspace.yaml |
export const monorepoPkgs = isMonorepo ? tryGlob(pkgsPath) : [] should consider changed to: export const getMonorepoPkgs = () => isMonorepo ? tryGlob(pkgsPath) : [] |
seems fnm doesn't support current .nvmrc version format used in this package: |
@JounQin But seems the variable name means to find packages in monorepo https://github.com/un-ts/pkgr/blob/master/packages/utils/src/monorepo.ts#LL15C64-L15C64 export const isMonorepo = Array.isArray(pkgsPath) && pkgsPath.length > 0
export const monorepoPkgs = isMonorepo ? tryGlob(pkgsPath) : [] |
You may need to build before committing. |
So |
我总结一下我主要关心的点:
总的来说,如果有现成的成熟的第三方库,考虑使用库而不是自己写 |
谢谢建议,明天会先弄个小的 patch fix,后面大版本改成更合理的方式。 |
看了一下最新代码,我感觉查找 package.json 时 fast-glob 用 onlyFiles: true 性能会更好 |
@tjx666 如果能提个 PR 就更好了,哈哈哈
这个包的主要用户是我自己,所以搜索相关配置是按我个人习惯实现的,这也是为啥所有包目前没有 README。 |
for given workspaces config:
should only search
fastGlob('packages/**/package.json')
instead offastGlob('packages/**')
close #329
close un-ts/synckit#134
close ota-meshi/eslint-plugin-json-schema-validator#220