Commit Graph

39 Commits

Author SHA1 Message Date
Zoltan Kochan
e6a2654a27 feat: run prepare scripts of Git dependencies (#3394)
close #855
2021-04-28 02:22:25 +03:00
Zoltan Kochan
be121a3e1d test: skip some unstable tests on Windows 2021-03-02 02:20:59 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
3503951d39 perf: don't use graceful-fs and mz/fs (#3129) 2021-02-09 13:44:07 +02:00
Zoltan Kochan
7578a5ad4b fix: lockfile needs to be updated on change of neverBuiltDependencies 2021-01-24 04:52:53 +02:00
Zoltan Kochan
9ad8c27bf0 feat: ignoring the build of specific dependencies (#3080)
* feat: ignoring the build of specific dependencies

close #3071

* test: add test for neverBuiltDependencies

* docs: add changesets

* test: lockfile-file
2021-01-23 16:27:39 +02:00
Zoltan Kochan
e8c1f80f58 test(supi): migrate to Jest
PR #3003
ref #2858
2020-12-05 16:25:02 +02:00
Zoltan Kochan
f591fdeeb9 feat: support Plug'n'Play
ref #2902
PR #2908
2020-10-11 13:12:02 +03:00
Zoltan Kochan
203e65ac89 fix: the value of INIT_CWD env variable for dep scripts
PR #2897
2020-09-26 17:05:42 +03:00
Zoltan Kochan
1c8a02e996 style: use eslint instead of tslint
PR #2796
close #2300
2020-08-24 02:01:25 +03:00
Zoltan Kochan
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
9fbb74ecb5 feat!: reduce nesting in the virtual store
PR #2546
2020-05-11 21:31:21 +03:00
Zoltan Kochan
b5f66c0f2b perf: less dirs in the virtual store directory
Reduce the number of directories in the virtual store directory.
Don't create a subdirectory for the package version. Append the
package version to the package name directory.

close #2521
PR #2531
2020-05-06 02:15:55 +03:00
Zoltan Kochan
f516d266c9 feat: executable are saved into a separate dir
Executables are saved into a separate subdirectory
inside the content-addressable filesystem.

ref #2470
2020-04-27 22:14:12 +03:00
Zoltan Kochan
7555caf788 test: temporarily skip failing tests 2020-04-26 15:40:03 +03:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +02:00
Zoltan Kochan
917c3ead09 Squashed commit of the following:
commit acba24cdeb2c2500b940c3c5cf94013ccde6e436
Author: Zoltan Kochan <z@kochan.io>
Date:   Sun Dec 29 19:39:17 2019 +0200

    style: remove consecutive blank lines

commit c8584b484662489bde7c5095df72c8e01ac828df
Merge: 56c54e8d 9c9a3849
Author: Zoltan Kochan <z@kochan.io>
Date:   Sun Dec 29 19:37:07 2019 +0200

    Merge branch 'master' into refactor/typings/use-dt/tape-promise

commit 56c54e8d4e
Author: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Date:   Sat Dec 28 13:15:00 2019 +0100

    refactor(typings): Use `@types/tape‑promise`

close #2241
2019-12-29 22:18:58 +02:00
Zoltan Kochan
8fc6fc4ad7 refactor: rename prefix options to dir options
BREAKING CHANGE:

- @pnpm/build-modules
- @pnpm/filter-lockfile
- @pnpm/headless
- @pnpm/lifecycle
- @pnpm/modules-cleaner
- @pnpm/package-is-installable
- @pnpm/read-importers-context
- @pnpm/resolve-dependencies
- supi
2019-11-03 17:08:57 +02:00
Zoltan Kochan
4fde7a858f test: use custom ports for the registry mocks
ref #2119
PR #2123
2019-10-28 11:29:36 +02:00
Zoltan Kochan
28d4812453 test(supi): speed up tests execution
Don't unpack all files when installing deps in tests

PR #2092
2019-10-18 22:18:00 +03:00
Zoltan Kochan
d29352ba02 fix: don't fail on missing commands of hoisted dependencies
Some packages generate their commands with lifecycle hooks.
At the hoisting stage, such commands are not generated yet.
For now, we don't hoist such generated commands.

This is a rare edge case that rarely or never will cause issues.
The only scenario in which this will cause issues:

* an unlisted dependency's command is used.
* the unlisted dependency's command is created by a script

close #2071
PR #2080
2019-10-14 01:50:13 +03:00
Zoltan Kochan
febfb746fe feat: bump node_modules layout version to 3
PR #2003

BREAKING CHANGE: new node_modules layout
2019-09-09 14:21:45 +03:00
Zoltan Kochan
3a9fdd856b feat: --hoist-pattern <pattern>
New config added that allows hoisting packages by pattern.
This substitutes the shamefully-flatten config that hoist all
dependencies and makes them available for application code.
The new config gives access to the hoisted packages only  to
dependencies inside node_modules.

close #1998
close #1938
PR #1997
2019-09-08 20:54:19 +03:00
Zoltan Kochan
47f718d70f fix(deps): use @zkochan/rimraf instead of rimraf-then 2019-08-18 02:40:20 +03:00
Renovate Bot
54e7be564a fix(deps): update dependency load-json-file to v6 2019-04-27 21:43:03 +03:00
Zoltan Kochan
cab35cc5ca refactor: rename load* to read* 2019-04-20 15:15:28 +03:00
Zoltan Kochan
4612a42a5b refactor: don't read/write package.json inside supi
PR #1776

BREAKING CHANGE:

`supi`, `@pnpm/headless`, `@pnpm/resolve-dependencies`, `@pnpm/lifecycle`
2019-04-20 03:38:44 -07:00
Zoltan Kochan
ea29492446 fix: a non-optional package's install script fails
When a non-optional package is not built successfully, the
package.json, pnpm-lock.yaml and node_modules/.pnpm-lock.yaml
should not be updated.

close #1397
2019-04-13 18:21:09 +03:00
Zoltan Kochan
2ca77fc21e fix: bins should be linked after running lifecycle scripts
PR #1764

* refactor: create @pnpm/build-modules

* fix: bins should be linked after running lifecycle scripts

close #1608

* fix: rebuild should link bins

* fix: rebuild should link all bins

* fix(deps): update @pnpm/link-bins to v4.0.2

* test: lifecycle scripts run before linking bins

* test: bins are linked even if lifecycle scripts are ignored

* fix: building modules in headless mode
2019-04-07 02:14:32 +03:00
Zoltan Kochan
5489e8c4e1 refactor: rename shrinkwrap variables 2019-03-07 02:47:59 +02:00
Zoltan Kochan
5fdfd13bbb refactor: rename constants that contain the work SHRINKWRAP 2019-03-06 23:13:51 +02:00
Zoltan Kochan
3d30d2c79c refactor: use constants for getting the lockfile name 2019-03-02 19:22:07 +02:00
Zoltan Kochan
ce51fd5c9f feat: move all loggers to @pnpm/core-loggers 2018-12-15 16:45:08 +02:00
Zoltan Kochan
aee5f916f0 fix: uninstalling a direct peer from a shared shrinkwrap
close #1506
PR #1518
2018-11-28 21:41:00 +02:00
Zoltan Kochan
585fadfc82 test: share the prepare utils between supi and pnpm 2018-10-14 00:22:08 +03:00
Zoltan Kochan
3911cf0823 style: use standard style with trailing comma 2018-10-07 16:39:49 +03:00
Zoltan Kochan
73e88a9acf fix(deps): update dependency load-json-file to v5.1.0
close #1381
2018-09-21 22:31:26 +03:00
Zoltan Kochan
5abc21ae94 feat: warn/info logs always have prefix
PR #1267
2018-07-15 02:40:18 +03:00
Zoltan Kochan
8e1d1bac69 feat: add supi to packages/supi 2018-05-11 22:09:36 +03:00