Zoltan Kochan
406bd4d54c
fix(unlink): don't prefer frozen shrinkwrap when unlinking
2018-04-15 01:57:13 +03:00
Zoltan Kochan
b775351231
fix: don't print warning when --no-lock is used
2018-04-15 00:11:36 +03:00
Zoltan Kochan
69c1b623c5
fix: set default lockStaleDuration to 5 minutes
...
ref pnpm/pnpm#594
2018-04-15 00:10:09 +03:00
Zoltan Kochan
5683bbd2c2
fix: update the shrinkwrap.yaml when it is of an older format
2018-04-13 10:24:01 +03:00
Zoltan Kochan
1191b67b41
perf: optimize the dependencies build step
...
ref pnpm/pnpm#1109
2018-04-13 01:24:22 +03:00
Zoltan Kochan
5c7b13eea2
fix: don't run headless installation when scripts are ignored
...
Headless installation cannot populate the pendingBuilds field yet
2018-04-13 00:47:55 +03:00
Zoltan Kochan
87d53e3bef
fix: build dependencies in correct order
...
ref pnpm/pnpm#1109
2018-04-12 03:24:09 +03:00
Zoltan Kochan
19e5c37993
feat: ownLifecycleHooksStdio option added for install()
2018-04-09 21:43:39 +03:00
Zoltan Kochan
10ae8cc892
fix: update @pnpm/lifecycle and @pnpm/headless
...
BREAKING CHANGE: the format of lifecycle logs has changed
2018-04-08 01:03:35 +03:00
Zoltan Kochan
a89b0d1605
feat: the stats logs also contain the project prefix
...
BREAKING CHANGE:
StatsLog has a new required field
2018-04-02 23:12:17 +03:00
Zoltan Kochan
46fd81c003
perf: make preferFrozenShrinkwrap true by default
2018-04-01 16:14:37 +03:00
Zoltan Kochan
336945a83b
fix: don't prefer frozen shr when its minor version not expected
2018-04-01 11:50:59 +03:00
Zoltan Kochan
6aed1cf225
fix(lifecycle): run scripts of deps in correct order
2018-03-31 20:07:06 +03:00
Zoltan Kochan
a0d991530e
fix(frozen-shrinkwrap): don't fail when no shrinkwrap.yaml present
...
ref pnpm/pnpm#1065
2018-03-25 23:45:48 +03:00
Zoltan Kochan
0f33896ef3
feat: implement frozen-shrinkwrap (headless) installation
...
ref pnpm/pnpm#1065
PR #58
2018-03-24 15:11:43 +02:00
Zoltan Kochan
df1c160e37
refactor: remove redundant status log
2018-03-20 22:43:16 +02:00
Zoltan Kochan
e37671cbde
refactor: move code to @pnpm/link-bins
2018-03-20 00:06:30 +02:00
Zoltan Kochan
9a2f852ada
refactor: move code to @pnpm/lifecycle
2018-03-18 23:12:47 +02:00
Zoltan Kochan
da00248a55
refactor: move some code to pnpm-shrinkwrap
2018-03-18 01:08:17 +02:00
Zoltan Kochan
d0faaebfad
refactor: use @pnpm/modules-yaml
2018-03-17 22:59:30 +02:00
Zoltan Kochan
07b9601893
refactor: access scripts not via string literals
2018-03-12 22:38:02 +02:00
Emanuele Tamponi
4030cc361f
fix: notDependents should be an array of dep paths
...
* fix: notDependents should be an array of dep paths
* test: remove testOnly
* fix: pass pkgIds to updateConnections()
* refactor: use strict types
* refactor: rename notDependent to orphan
ref #52
2018-03-08 13:10:06 +02:00
Zoltan Kochan
12a26da8e1
feat: allow modifying root package with readPackage() hook
...
ref pnpm/pnpm#1063
2018-03-07 21:02:48 +02:00
Zoltan Kochan
8537db6c41
refactor: fixing bad namings
2018-03-07 00:46:49 +02:00
Zoltan Kochan
58191c3ad7
refactor: rename the key of hoistedAliases
2018-03-07 00:08:27 +02:00
Zoltan Kochan
3868a14d75
refactor: rename tree to graph
2018-03-06 23:25:39 +02:00
Zoltan Kochan
bc34aba650
style: adhere conventions
2018-03-05 15:49:34 +02:00
Zoltan Kochan
c82a33678d
fix: linking to global package
2018-03-05 11:36:22 +02:00
Zoltan Kochan
f34f966135
feat: specify linked deps in shrinkwrap.yaml ( #51 )
...
* feat: specify linked deps in shrinkwrap.yaml
* feat: node_modules is pruned after linking from external package
* feat: link() and linkFromGlobal() expect arrays as first args
BREAKING CHANGE:
link() expects an array as first arg
BREAKING CHANGE:
linkFromGlobal() expects and array as first arg
* feat: update specifiers field in shrinkwrap.yaml when linking
* fix: prune node_modules after linking
2018-03-05 09:48:51 +02:00
Zoltan Kochan
d60164d50f
refactor: move shrinkwrap reading logic to separate file
2018-03-03 15:28:56 +02:00
Zoltan Kochan
08cc9ff284
fix: revert changes to global package.json
2018-03-01 01:08:35 +02:00
Zoltan Kochan
3063a6b7ea
fix: create package.json during installation when there is no one
...
ref pnpm/pnpm#1049
2018-03-01 00:28:22 +02:00
Emanuele Tamponi
7a4661df37
fix: use the real path to node_modules ( #49 )
...
BREAKING CHANGE:
The API of link() has changed. The second param should be the target `node_modules` folder
2018-02-27 21:35:20 +02:00
Emanuele Tamponi
556910e9aa
fix: flatten dependencies by alias ( #47 )
...
* fix: flatten by alias
* fix: rename field, other fixes
* fix: more bug fixes
* fix: make all tests run, write a (failing) test for pruning
* fix: reflatten after pruning
* fix: do not log installation/removal of hoisted aliases
* fix: follow review comments
* fix: use muteLogs instead of skipLogs
2018-02-25 13:42:17 +02:00
Emanuele Tamponi
d07a49a3d6
fix: do not run a double install with --shamefully-flatten ( #46 )
...
* fix: do not run a double install with --shamefully-flatten
* fix: reinstallForFlatten forces flatten even if no changes are seen
2018-02-23 18:45:16 +02:00
Emanuele Tamponi
1fe8bcb027
fix: do not update config or warn if reinstalling for flatten
2018-02-23 00:21:50 +01:00
Emanuele Tamponi
bfe9a7d2d6
fix: warn when using --shamefully-flatten ( #45 )
...
* chore: warn when using --shamefully-flatten
* chore: only warn for shamefully-flatten during install/update
2018-02-22 14:09:02 +02:00
Emanuele Tamponi
a5f9b30182
fix: --global --shamefully-flatten uses a different prefix
2018-02-22 00:21:16 +01:00
Emanuele Tamponi
fdad157392
feat: --shamefully-flatten ( #42 )
...
* feat: this is a best attempt at flattening the dependency tree, similar to what npm does
* test: shamefullyFlatten option
* feat: when uninstalling, if shamefully-flatten is true, we need to re-flatten
* fix: use new shrinkwrap, not the old one
* fix: changes suggested in PR
* test: remove test.only
* fix: various bugs in uninstall and general install, added tests
* test: fix test
* test: use project.has and project.hasNot correctly
* test: remove test.only
* test: added tsconfig.json, added lint-test script, lint fixes
* test: use correct message
* fix: check should work on windows too
2018-02-22 01:04:44 +02:00
Zoltan Kochan
6467b938a0
fix: update package-store to v0.17.0
2018-02-17 21:14:44 +02:00
Zoltan Kochan
38c43f142c
fix: keep existing deps during named install with no shrinkwrap
...
ref pnpm/pnpm#1029
2018-02-11 21:13:10 +02:00
Zoltan Kochan
0b39b20d55
refactor: rename installMultiple to resolveDependencies
2018-02-11 19:44:10 +02:00
Zoltan Kochan
dbebdea0f2
refactor: use spread operator instead of Object.assign
2018-02-11 19:32:32 +02:00
Zoltan Kochan
46dde9a8e8
refactor: remove redundant imports of @pnpm/package-requester
2018-02-11 18:47:15 +02:00
Zoltan Kochan
e9c90db6a6
fix: update package-store to v0.16
2018-02-10 12:20:57 +02:00
Zoltan Kochan
e7afbbab58
refactor: resolvedId => depPath, shortId => relDepPath
2018-02-05 23:34:47 +02:00
Zoltan Kochan
e2394fe080
feat: add an option to ignore shrinkwrap.yaml
...
ref pnpm/pnpm#1025
2018-02-04 21:22:08 +02:00
Zoltan Kochan
704c64d7eb
fix(unlink): unlink shouldn't change package.json
2018-02-04 15:38:00 +02:00
Zoltan Kochan
6740004fe6
feat(logging): log resolution_started and importing_started
...
ref pnpm/pnpm#1017
2018-01-31 00:28:31 +02:00
Zoltan Kochan
30fbc48ab5
fix: using the correct tag when installing aliased deps
2018-01-28 02:03:01 +02:00