Skip to content

Conversation

@developit
Copy link
Member

This fixes #1331.

Note: I just made this edit quickly, need to install tempy and update the package lock.

@vesahyp
Copy link

vesahyp commented Nov 12, 2020

This would solve our problems of developers and gitlab CI running preact-cli on the same server.

@rschristian rschristian requested a review from a team as a code owner December 24, 2022 04:52
@changeset-bot
Copy link

changeset-bot bot commented Dec 24, 2022

🦋 Changeset detected

Latest commit: dfc52af

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Patch

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

Comment on lines +48 to +51
const tmpDir = join(
os.tmpdir(),
`preact-cli-${Math.floor(Math.random() * 100000)}`
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think tempy is rather overkill for our needs, especially with the number of dependencies it adds: http://npm.anvaka.com/#/view/2d/tempy

A random number between 0 and 100,000 should be sufficient enough to avoid conflicts I think.

@rschristian rschristian merged commit bea4f50 into master Dec 24, 2022
@rschristian rschristian deleted the avoid-file-locks branch December 24, 2022 06:45
@preact-bot preact-bot mentioned this pull request Dec 24, 2022
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.

Running two builds in parallel?

4 participants