44 Commits

Author SHA1 Message Date
zkochan
ef36142a23 fix: pnpm root -g
Close #850
2017-08-03 10:21:33 +03:00
zkochan
37901941a0 fix: listing global packages works
Close #862
2017-08-02 22:44:04 +03:00
zkochan
2538b507b5 fix: pnpm link links bins to global bin folder
Close #853
2017-07-31 02:05:46 +03:00
zkochan
63287878e0 refactor(link): use arrow functions instead of .bind() 2017-07-30 22:30:03 +03:00
zkochan
7a00637bf2 fix: pnpm add is not proxied to npm
Ref #864
2017-07-28 00:59:45 +03:00
zkochan
cf1302a365 feat: implement pnpm store prune
Ref #430
2017-07-23 17:49:31 +03:00
zkochan
daf8990f12 feat: add verify-store-integrity config
Ref #802
2017-07-23 12:12:29 +03:00
zkochan
897f2ab0a9 feat: add pnpm help
Close #748
2017-07-18 00:02:37 +03:00
zkochan
f59f943604 feat: add dislink command
Close #819
2017-07-16 23:09:42 +03:00
zkochan
44ea9fc336 fix: pnpm list -g should show list of global packages 2017-07-15 23:04:23 +03:00
zkochan
f7293aef55 feat: implemented the list command
Ref #798
2017-07-15 20:05:22 +03:00
zkochan
e77510b758 fix: pnpm install "" is pnpm install 2017-07-07 21:59:10 +03:00
Zoltan Kochan
89e2c76e56 Moving out the installation algorithm to a separate package (#830)
* refactor: remove installation engine code

* refactor: remove engine tests

* fix: sets correct user-agent

* refactor: remove redundant dependencies

* chore: add supi as dependency

* docs: remove programmatic API

* feat: making the bin file also the main file

* chore(greenkeeper): ignore supi
2017-06-29 21:29:04 +03:00
zkochan
bd8e02062c feat: export cmd via programmatic API for testing purposes 2017-06-24 14:10:49 +03:00
Paul Pflugradt
ac034ba221 feat(cli-link): link multiple packages at once
allows `pnpm link pkg1 pkg2`

issue 825

changes
2017-06-24 13:57:23 +03:00
zkochan
1e91300714 chore: update dependencies
close #781, close #779, close #780, close #778, close #774
2017-06-03 14:51:57 +03:00
zkochan
2e7963f23d feat(store): pnpm store status informs on success
Close #734
2017-05-15 01:02:21 +03:00
Zoltan Kochan
a17a8df50c Perf/fast repeat install (#730)
* perf: validating the node_modules structure to a specified depth

Ref #722

* feat: adding an update boolean property to the install API

BREAKING CHANGE:

Dependencies won't be updated when `update` is `false`.
It doesn't matter what the value of `depth` is.
`depth` is used for specifying how deep should the install
algorithm analize the dependency tree.

Ref #722

* refactor: merge new resolved deps with the previous
2017-04-27 11:04:37 +03:00
Zoltan Kochan
2c46333107 fix: global installation always works now (#713)
* fix: global installation always works now

Close #711

* refactor: avoid using `read-pkg-up`

BREAKING CHANGE:

API should be called in the folder that has a package.json file.
pnpm won't search up for a package.json file.

Close #67

* docs(API): update

* refactor: write-pkg created dir on its own

* refactor: rename `globalDir` to `globalPrefix`

* feat: saving the global package in <global prefix>/pnpm-global
2017-04-22 23:11:25 +03:00
zkochan
fa8f2e57db fix(user-agent): set the correct user-agent 2017-04-08 15:39:18 +03:00
zkochan
5a4a46815e feat: rename pnpm verify to pnpm store status
BREAKING CHANGE: `pnpm verify` renamed to `pnpm store status`

BREAKING CHANGE: don't run `pnpm verify` before `pnpm publish`

Ref #430, Ref #658
2017-03-23 21:36:28 +02:00
zkochan
d3b0bb0c75 feat: use a shrinkwrap file instead of graph.yaml
Ref #658

BREAKING CHANGE: no `node_modules/.graph.yaml` used anymore
2017-03-13 21:23:41 +02:00
zkochan
b6fddf4234 feat: remove link-local
It is broken since the bit `Pure Store` and seems nobody even noticed.
This functionality should be implemented in a separate tool that
uses pnpm's API.

BREAKING CHANGE:

Remove the link-local option
2017-02-18 22:45:55 +02:00
zkochan
de00178ca3 refactor: link API
BREAKING CHANGE:

Link API functions changed
2017-02-18 20:32:34 +02:00
zkochan
848922d551 feat(CLI): add pnpm verify command
Rel #585
2017-02-05 17:20:09 +02:00
zkochan
dc49619400 fix: pass through to npm when running pnpm cache 2017-02-05 02:15:12 +02:00
zkochan
5f07768d2d feat: semver aware caching
Invalidate caching in semver aware way.

Remove caching into filesystem.

Rel #568, Close #580
2017-02-02 22:11:03 +02:00
Zoltan Kochan
b9104a457c feat(global): change default global path
Use ~/.pnpm-cache as the default cache path.
Use the Node path for hosting the global pnpm package.
2017-01-21 18:38:47 +02:00
zkochan
4689befcc3 fix: set NODE_PRESERVE_SYMLINKS=1 for all npm commands 2017-01-02 17:42:53 +02:00
zkochan
aaa34e0855 test: scripts preserve symlinks on Node.js >= 7.1.0 2016-11-10 22:31:05 +02:00
zkochan
c66ae6ad71 fix: force Node to preserve symlinks
From Node.js v7.1.0 it is possible to set the NODE_PRESERVE_SYMLINKS
environment variable to 1 to make Node preserve symlinks.

To leverage this new feature, before passing through to `npm run`, pnpm
sets PRESERVE_SYMLINKS to 1.

Ref #463
2016-11-10 22:31:05 +02:00
zkochan
a840c662e4 feat(update): implement
Close #300
2016-10-31 19:50:55 +02:00
Zoltan Kochan
163d6b9a72 refactor: use write-pkg 2016-10-22 17:06:13 +03:00
zkochan
307f8174a0 feat(cache): implement the cache clean command
Ref #59, PR #420
2016-10-15 01:17:10 +03:00
zkochan
de3a22d53e feat(install-test): implement
Close #398
2016-10-06 22:33:11 +03:00
zkochan
647457adc0 fix: use --silent parameter for hiding output
npm uses --silent no --quiet. So should pnpm

Close #392
2016-10-03 22:31:52 +03:00
zkochan
816345a8c5 feat(api): make the install API consistent with other API functions
BREAKING CHANGE:

The `installPkgDeps` API function is now called `install`.

The old `install` is renamed to `installPkgs`. Unlike the old `install`,
`installPkgs` does nothing, if the `pkgs` array contains no elements.
2016-09-29 00:26:18 +03:00
zkochan
24bd00c86e refactor: use shorter names for types 2016-09-28 22:05:46 +03:00
zkochan
df05c83757 refactor(prune): move the overload of prune to a separate function
Divide the logic of prune into two functions: prune and prunePkgs.

PR #372
2016-09-27 00:02:10 +03:00
zkochan
c27b8ddf48 feat: prune
Close #299
2016-09-27 00:02:10 +03:00
zkochan
0799e7e65f style: use jsdocs for function descriptions 2016-09-18 18:45:29 +03:00
zkochan
6121ec4683 feat: change local deps to semver deps before publish
Only when link-local = true

Close 349, PR #365
2016-09-18 09:50:20 +03:00
zkochan
2f26f61409 refactor(*.ts): noImplicitAny = true
PR #357, Ref #347
2016-09-12 22:02:26 +03:00
Zoltan Kochan
7b25ba269e feat: rewrite to TypeScript
PR #357, Ref #347
2016-09-12 22:00:56 +03:00