Commit Graph

33 Commits

Author SHA1 Message Date
the-sun-will-rise-tomorrow 1186a8a9f1 src/generate.ts: Undo Nix shebang patching
Fixes generation of a broken yarn-project.nix when running a Nix-built
Yarn.
2024-11-06 12:30:17 +00:00
Stéphan Kochen fa3a2e3238 Fix isolated builds with --mode=skip-build 2024-02-19 08:51:57 +01:00
Stéphan Kochen ae5a039396 Collapse newlines 2024-02-11 14:03:23 +01:00
Stéphan Kochen 56e3459543 Support isolated builds with a combined cache 2024-02-11 14:02:57 +01:00
Stéphan Kochen df1c72a4f6 Use a combined cache derivation by default 2024-02-06 19:20:45 +01:00
Stéphan Kochen 67fadc3f61 Relax an isolatedBuilds check 2024-02-06 12:11:26 +01:00
Stéphan Kochen f5c9f25c94 Fix missing PnP linkers if node_modules exists
This can happen because some tools write to `node_modules/.cache` as a
convention.
2023-11-01 13:36:01 +01:00
Stéphan Kochen ca3d96ae1d Fix optional dependencies 2023-10-30 14:14:52 +01:00
Stéphan Kochen ee8c72b3a9 Yarn v4 support 2023-10-29 22:23:22 +01:00
Stéphan Kochen a1ab08efae Upgrade prettier 2023-10-29 13:39:57 +01:00
Nick Novitski 52227131b8 Remove references to lockfileFilename
This field will be removed from yarn in version 4: https://github.com/yarnpkg/berry/pull/5604

With this change, the plugin works with the current canary release, v4.0.0-rc.53.
2023-10-10 08:36:51 -07:00
Stéphan Kochen c680c0b6af Error if cache folder is outside project 2023-01-23 15:18:06 +01:00
Stéphan Kochen 10a8f5a83b More relative path fixes 2023-01-23 15:13:50 +01:00
Stéphan Kochen 59ff733bf0 Fix yarn path when nix expr is in a subdirectory 2023-01-23 13:56:46 +01:00
Stéphan Kochen a357ca5b7f Fix incorrect paths in generated expression 2022-11-09 13:22:02 +01:00
Stéphan Kochen c02b964a4c Fix incomplete render when --mode is used 2022-10-23 08:58:56 +02:00
Stéphan Kochen 26d88f0295 Sort cache entries 2022-10-22 21:40:19 +02:00
Stéphan Kochen 321a0d7e19 Remove unused imports 2022-02-13 21:19:54 +01:00
Adrian Gierakowski c999d4070c feature: handle git dependencies
- add git and cacert as deps to cacheDrvs
- use pkg.reference instead of version in package.json of isolated builds
  since it allow yarn to find the git repo (this will probably also fix
  oter type of deps)
2022-01-26 07:35:39 +01:00
Stéphan Kochen 01bf568bdc Revert "feature: handle git dependencies"
This reverts commit f957a93479.
2022-01-25 22:22:38 +01:00
Adrian Gierakowski f957a93479 feature: handle git dependencies
- add git and cacert as deps to cacheDrvs
- use pkg.reference instead of version in package.json of isolated builds
  since it allow yarn to find the git repo (this will probably also fix
  oter type of deps)
2022-01-21 16:04:09 +00:00
Stéphan Kochen 00b7adf473 Upgrade dependencies, require Yarn 3.1.0 2021-12-14 09:55:35 +01:00
Stéphan Kochen d2c46886a6 Handle Yarn cache entries without checksums 2021-12-14 09:50:00 +01:00
Stéphan Kochen 2757cfd115 Upgrade to Yarn v3 2021-08-15 21:36:55 +02:00
Stéphan Kochen 153254f62a Isolated builds of dependencies 2021-04-30 15:10:47 +02:00
Stéphan Kochen e54893e726 Sort cache entry listing 2020-12-03 11:43:46 +01:00
Stéphan Kochen ce4172544a Don't generate default.nix if flake.nix exists 2020-12-01 15:15:02 +01:00
Stéphan Kochen c0a00b0637 Fix preloading missing some files 2020-08-30 08:59:50 +02:00
Stéphan Kochen d3c6821257 Don't touch 'yarn dlx' installations 2020-08-27 17:20:56 +02:00
Stéphan Kochen a1fe6181f1 Add some settings 2020-08-26 09:10:07 +02:00
Stéphan Kochen ccfc83af5d Docs, and rebuild dist 2020-08-25 22:48:31 +02:00
Stéphan Kochen fcba68fd6f Preload cache into Nix store 2020-08-25 22:37:26 +02:00
Stéphan Kochen 5d3ed3c119 Split into modules and reorganize 2020-08-25 18:56:49 +02:00