Commit Graph

124 Commits

Author SHA1 Message Date
Zoltan Kochan
c5ee3c7d27 feat: afterAllResolved can modify the shrinkwrap object
ref pnpm/pnpm#1119
2018-04-19 02:14:25 +03:00
Zoltan Kochan
d0d9b46796 feat: new hook - afterAllResolved()
ref pnpm/pnpm#1088
2018-04-17 23:58:57 +03:00
Zoltan Kochan
19e5c37993 feat: ownLifecycleHooksStdio option added for install() 2018-04-09 21:43:39 +03:00
Dave Jeffery
2ff9083d8d docs(readme): preferFrozenShrinkwrap option is now true by default 2018-04-07 01:46:07 +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
6045604608 docs(readme): move description above badges 2018-03-09 03:34:15 +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
f0ae9f5c39 docs(readme): update link() description 2018-02-27 22:01:53 +02:00
Zoltan Kochan
93997fb0ce docs(readme): document options.shrinkwrap 2018-02-04 21:27:29 +02:00
Zoltan Kochan
10bdb22f20 refactor: remove the offline option
The offline option is passed to the resolver/fetcher, during
initialization, so no need to pass it to supi
2018-01-13 18:36:00 +02:00
Zoltan Kochan
1c413655c8 feat: move package importing logic to the store
close #34
2018-01-09 01:20:32 +02:00
Zoltan Kochan
bb7aff4af6 refactor: use own options
BREAKING CHANGE:

storeController is not an optional parameter anymore
2018-01-07 22:34:31 +02:00
Zoltan Kochan
c7fbd36f93 feat: shrinkwrap only install
ref https://github.com/pnpm/pnpm/issues/981
2018-01-03 17:27:18 +02:00
Emanuele Tamponi
646841a0c9 feat: add packageImportMethod option (#32)
* feat: add reflinks option

* feat: packageImportMethod allows us to specify between auto, hardlink, reflink, copy

* refactor: split hardlinkPkg and reflinkPkg, refactor switch, add default method

* fix: add breaks, describe option in the README

* test: test the copy-only import option

* fix: use mkdirp in reflinkPkg too
2017-12-31 00:14:42 +02:00
Zoltan Kochan
b2140f7886 feat: allow to ignore files in packages
The opts.ignoreFile() function allows to ignore files in packages.
Ignoring means that files will neither be unpacked nor linked
into `node_modules`

Ref https://github.com/pnpm/pnpm/issues/804
2017-11-25 14:33:17 +02:00
zkochan
69d5bb4dd6 refactor: use @pnpm/logger instead of pnpm-logger
BREAKING CHANGE: peer dependencies updated
2017-11-10 22:01:23 +02:00
zkochan
12ff1fd082 fix: the value of opts.optional = opts.production by default 2017-10-28 16:25:33 +03:00
zkochan
aaebd1d0fa fix: fail install when optional deps are installed without prod deps 2017-10-28 16:10:28 +03:00
Zoltan Kochan
4ec373f1d8 feat: support installation of only dev dependencies
Ref https://github.com/pnpm/pnpm/issues/461

BREAKING CHANGE:

`opts.production: true` doesn't mean that dev dependencies are
not going to be installed. In order to avoid dev dependencies
installation the `opts.development` should be set to `false`.

BREAKING CHANGE:

The value of NODE_ENV is ignored.
2017-10-27 01:46:46 +03:00
zkochan
b1cb034c11 feat: add a hook to modify dependency manifests
Ref https://github.com/pnpm/pnpm/issues/861
2017-09-02 12:24:34 +03:00
zkochan
46a4672cf4 docs(readme): change package name to supi in API section 2017-07-28 02:05:02 +03:00
zkochan
69ef40a0c8 feat: add pruneStore()
Store prunning removes unreferenced packages and packages
referenced by projects that no longer exist.

Also, orphan packages are no removed durign other operations,
except store and node_modules prunning.

Ref https://github.com/pnpm/pnpm/issues/430
2017-07-23 17:25:58 +03:00
zkochan
72526ca367 docs: add logo 2017-07-22 14:39:09 +03:00
zkochan
335392b57d feat: add unlink() and unlinkPkgs()
Ref pnpm/pnpm#819
2017-07-16 22:19:47 +03:00
zkochan
7580120c00 feat: require pnpm-logger as a peer dependency
BREAKING CHANGE:

a new peer dependency added
2017-07-12 00:29:18 +03:00
zkochan
e6a02181ce docs(README): describe options.saveProd 2017-07-02 01:18:13 +03:00
zkochan
05748c4a5d feat: expect the pm package.json from outside 2017-07-01 19:47:01 +03:00
zkochan
fd2b23ebf0 feat: add an option to pass in a logs listener
Ref https://github.com/pnpm/pnpm/issues/572
2017-07-01 16:05:31 +03:00
Zoltan Kochan
07ce0d4c70 refactor: rename package to supi 2017-06-28 14:16:57 +03:00
Zoltan Kochan
e1dd9817b3 docs: add new question to FAQ
Why have hard links at all? Why not symlink directly to the global store?
2017-06-28 02:29:21 +03:00
zkochan
697c601318 docs: symlinked node_modules structure 2017-06-28 01:52:40 +03:00
zkochan
f60b25422a docs(README): capitilizing Yarn 2017-06-28 00:14:42 +03:00
zkochan
da86fe6baf docs(README): adding link to pnpm's awesome list 2017-06-28 00:13:32 +03:00
zkochan
4daeec764e docs(README): add Support section 2017-06-27 23:44:50 +03:00
zkochan
2a1c8a68a5 docs: update package description 2017-06-25 00:36:50 +03:00
zkochan
6900c90824 docs: updating prior art 2017-06-25 00:23:55 +03:00
zkochan
1925c2469b docs(README): update usage section and offline config section 2017-06-24 23:38:05 +03:00
Zoltan Kochan
9801c96803 docs(README): add version badge 2017-06-24 23:05:11 +03:00
Zoltan Kochan
394b18d4c1 docs(README): add new questions to FAQ section 2017-06-24 16:03:03 +03:00
zkochan
af79c8c319 feat: add independent-leaves config
BREAKING CHANGE:

independent dependencies are not symlinked from the global store
by default

Close #821
2017-06-23 22:03:52 +03:00
zkochan
c156101a99 refactor: rename store-path config to store
BREAKING CHANGES:

rename `store-path` config to `store`

Ref #458
2017-06-20 23:30:06 +03:00
zkochan
734abee51e docs(README): more details about hard links
Close #794
2017-06-17 14:54:41 +03:00
zkochan
35c9effa3d docs(README): less distractive 2017-06-16 01:00:37 +03:00
zkochan
725c05bc0c refactor: remove mentions of local-registry 2017-06-13 23:09:03 +03:00
zkochan
b2c67b21ff docs: add more explanation about limitation of binstubs
Close #736
2017-06-04 15:45:02 +03:00
zkochan
a56f6c68ed docs: remove text that says pnpm is x10 faster than npm
npm5 is a lot faster now, so pnpm is not x10 faster anymore.
Still faster but not that much.
2017-06-04 15:40:58 +03:00
Zoltan Kochan
6314b534e4 docs(README): add section about limitations
Close #736
2017-05-14 00:48:19 +03:00
Zoltan Kochan
d74b699cc1 docs(README): fix gramatical errors 2017-05-12 00:58:02 +03:00
Zoltan Kochan
5de380989a fix(linking): packages should not loose their peer deps (#761)
* test(install): peer dependencies should be resolved correctly

* fix(linking): packages should not loose their peer deps

When a peer dependency is resolved not from the direct parent,
dependent packages should be duplicated with hard links in order
to preserve the correct set of resolved peer dependencies.

Semi-breaking change. The node_modules structure is changed but
doesn't need a complete removal of a node_modules created with
previous version of pnpm.

* docs: document how peer dependencies are resolved

Ref #694, Ref #726

* docs: nicer comments in code blocks

* docs: more explanation about peer deps
2017-05-09 18:21:39 +03:00
zkochan
3a2683ca94 feat: add a --no-lock option
Ref #594
2017-05-07 21:38:51 +03:00