egoist / egoist/bundle-require

Tmp .mjs file in the current directory breaks other tools

Open
#33 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
185
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Sometimes I found issues like that during heavy parallel builds (prettier + jest + eslint + tsc + tsup):

```
build 01-Oct-2022 21:31:04 xxx:lint:
build 01-Oct-2022 21:31:04 xxx:lint: Oops! Something went wrong! :(
build 01-Oct-2022 21:31:04 xxx:lint:
build 01-Oct-2022 21:31:04 xxx: ESLint: 8.24.0
build 01-Oct-2022 21:31:04 xxx:
build 01-Oct-2022 21:31:04 xxx:lint: Error: ENOENT: no such file or directory, open '/home/builder/yyyy/packages/zzzz/tsup.config.bundled_q9ps7cjhg0j.mjs'
```

Looks like bundle-require creates & immediately removes **tsup.config.bundled_q9ps7cjhg0j.mjs** in the current dir instead of node_modules/.cache or /tmp/xxx. It's ok for me ('/tsup.config.bundled_*.mjs' in .eslintignore), but may lead to crazy side effects in more complicated scenarios.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.