raszi / node-tmp

Temporary file and directory creator for node.js
MIT License
736 stars 92 forks source link

Let's move this to github.com/tmp and also make this a npmjs tmp organisation and use scoped packages #232

Closed silkentrance closed 2 years ago

silkentrance commented 4 years ago

@raszi I would like to move tmp over to npmjs.com/tmp and github.com/tmp, if that is fine with you.

We both would then be owners of these organisations, so that either of us could make a new release and publish that to npmjs.com.

The main reason for this is that ATM I do not have any access to the repository as a maintainer and I am unable to publish new releases to npm in case of hotfixes that need to go out ASAP.

At the beginning, though, I want to publish one package @tmp/tmp-test-environment which can be used in conjunction with jest. (overcomes issues with jest and their use of child processes and also worker threads.)

The package would live under github.com/tmp/tmp-test-environment. for the time being, this can be using the existing tmp package. I already invited you as an owner of that github organisation, so please join the effort.

In order to keep the commit history of tmp we should make a clone and use that as a starter.

In the long run I would like to dissect tmp into multiple packages and also introduce some extra functionality, also getting rid of the listeners and make them separate packages that the user can then require as needed.

This will also include a rewrite using Typescript and will also introduce lerna for overall package and process management, with the core packages all located in a single mono repo.

For the time being, tmp and @tmp/* will coexist, until the new solution becomes stable.

In addition, I would like to start off with a 1.0.0-alpha release since the changes will be breaking and no backwards compatibility can be achieved. We would then migrate this to a 1.0.0-beta and 1.0.0-stable release as soon as possible.

Envisioned Changes