Commit Graph

369 Commits

Author SHA1 Message Date
Zoltan Kochan
d7652e8564 feat(recursive): read local package configs
close #1093
2018-04-20 01:24:57 +03:00
Zoltan Kochan
fed56040a8 feat: new hook that is called after the resolution stage
The afterAllResolved hook is called with a context argument when
all dependencies are resolved. The context object contain a log
function.

A sample of a `pnpmfile.js` that declares afterAllResolved:

```js
module.exports = {
  hooks: {
    afterAllResolved (shr, context) {
      context.log('Resolution done')
      return shr
    }
  }
}
```

close #1088
2018-04-20 01:09:12 +03:00
Zoltan Kochan
df31d3b8af fix(run): pass through the right exit code
close #1123
2018-04-19 23:09:33 +03:00
Zoltan Kochan
30aec12e8c test: fix typings to make ts-node happy 2018-04-17 22:19:10 +03:00
Zoltan Kochan
b71383dd8c feat: pass a log() function to readPackage hooks
close #1074
2018-04-16 11:22:30 +03:00
Zoltan Kochan
94f147bee1 feat: global pnpmfile
A global pnpmfile can be used by setting the `global-pnpmfile`.
The global pnpmfile is composed with any local pnpmfile.

ref #1106
ref #910
2018-04-08 23:52:21 +03:00
Zoltan Kochan
4b96200401 feat: custom location of pnpmfile
close #910
2018-04-07 19:48:35 +03:00
Zoltan Kochan
80aaafb0f0 fix: headless installation with store server 2018-04-07 00:02:23 +03:00
Zoltan Kochan
f1f5698383 ci: npm set verify-store-integrity false 2018-04-01 22:06:45 +03:00
Zoltan Kochan
816e896f7d fix(recursive): don't ignore the registry config when linking 2018-03-13 00:32:14 +02:00
Zoltan Kochan
34704f3872 test: use @pnpm/assert-project 2018-03-12 00:24:51 +02:00
Zoltan Kochan
e9734b1a49 fix: don't ignore the --prefix flag 2018-03-08 21:20:59 +02:00
Zoltan Kochan
7807b30600 fix(deps): update supi to version ^0.14.1 2018-03-05 11:38:47 +02:00
Zoltan Kochan
dbab6f5261 test(recursive): linking in a new package 2018-03-02 22:36:16 +02:00
Zoltan Kochan
29982286c7 fix(recursive): run only for packages in subdirs of CWD 2018-03-01 22:41:10 +02:00
Zoltan Kochan
05eb261e26 fix(recursive): fail when action in a workspace package fails 2018-02-24 21:10:13 +02:00
Zoltan Kochan
ba57704c84 feat(recursive): running commands on a subset of packages
A `pnpm-workspace.yaml` file can be used in the root of a
multi-package repository to specify an array of globs to use
as package locations.

Example of a `pnpm-workspace.yaml` file:

```yaml
packages:
  - 'packages/**'
  - 'components/**'
```

close #1038
2018-02-24 18:34:35 +02:00
Emanuele Tamponi
f4288ac2a3 feat: add shamefully-flatten option (#1050)
* feat: add shamefully-flatten option

* feat: add --shamefully-flatten to help

* feat: --shamefully-flatten

* test: add simple test for --shamefully-flatten in pnpm

* fix: update supi
2018-02-22 21:47:35 +02:00
Zoltan Kochan
9abd5ca831 feat: --no-shrinkwrap
close #1025
2018-02-04 22:03:57 +02:00
Zoltan Kochan
6ac52f7b6e feat(recursive): pnpm recursive dislink
Add a command for recursively dislinking packages

close #825
2018-02-04 12:27:46 +02:00
Zoltan Kochan
5204158b06 feat(recursive): pnpm recursive link
A new command for installation in a monorepo

ref #825
2018-02-04 12:27:46 +02:00
Zoltan Kochan
1dc1f85b0f fix(server): use correct store location when running in background 2018-01-28 18:17:01 +02:00
Zoltan Kochan
43284a8056 test: add notice about unstable test
ref #1018
2018-01-27 01:55:22 +02:00
Emanuele Tamponi
7efaf408d0 feat: flag to ignore upload requests (#1010)
* feat: flag to ignore upload requests

* chore: bump up @pnpm/server dep to 0.7.1

* test: ignore upload requests

* fix: add help for ignore upload requests

* fix: use promisify instead of thenify
2018-01-24 21:39:25 +02:00
Zoltan Kochan
71b23ea68e fix: --no-optional
ref #1014
2018-01-24 09:17:16 +02:00
Zoltan Kochan
060f44f5ef fix(server): terminate the store server if graceful stop fails (#1003)
* refactor: use process-exists instead of is-running

* fix(server): terminate the store server if graceful stop fails
2018-01-23 22:12:24 +02:00
Zoltan Kochan
e25f528663 test: stabilize server tests 2018-01-23 00:35:48 +02:00
Emanuele Tamponi
ef70230f96 feat: parse side-effects-cache(-readonly) options (#994)
* feat: parse side-effects-cache(-readonly) options

* fix: add new options to help

* fix(deps): update

* test: side effects cache tests, same as supi

* test; remove unused variables and imports

* test: do not use spread syntax
2018-01-22 19:57:49 +02:00
Zoltan Kochan
e4ce9c5a94 feat: running server in the background (#995)
* feat: running server in the background

close #960

* feat: store server can run in the background

* fix: update diable to version 4.0.1

* feat(help): add server start/stop to commands list

* feat: better info messages about server start
2018-01-19 01:38:10 +02:00
Zoltan Kochan
3b1fcc9360 feat(server): add stop command (#993)
* feat(server): add stop command

ref #960

* feat(server): `pnpm server` becomes `pnpm server start`

SEMI-BREAKING CHANGE:

`pnpm server` doesn't start a server but only prints help

`pnpm server start` starts a store server

* refactor: rename unstoppable to ignore-stop-requests
2018-01-17 00:03:12 +02:00
Zoltan Kochan
b553c5cfe0 feat: --prefer-offline flag
close #975
2018-01-13 19:02:24 +02:00
Zoltan Kochan
abdc2a856c feat(server): choosing the communication protocol (#988)
* feat(server): choosing the communication protocol

close #987

* feat(server): choosing port
2018-01-10 09:47:00 +02:00
Zoltan Kochan
f17c5b4591 feat: --shrinkwrap-only flag
close #981
2018-01-03 21:05:04 +02:00
Emanuele Tamponi
49165f5527 feat: option to disable pnpmfile (#979)
* feat: option to disable pnpm hooks

* fix: as for review; doesn't work until @pnpm/types is upgraded

* fix: use opts.ignorePnpmfile in the caller

* chore: update shrinkwrap.yaml

* test: --ignore-pnpmfile flag
2017-12-31 00:15:42 +02:00
Zoltan Kochan
ae3f406fce test: skip hanging test on Appveyor 2017-12-23 02:29:47 +02:00
Zoltan Kochan
3333daa9d1 fix: recursive install should not ignore pnpmfiles 2017-12-23 01:52:40 +02:00
Zoltan Kochan
16692bbed9 fix: recursive installation should work with the store server 2017-12-21 23:05:40 +02:00
Zoltan Kochan
ff1ab5e450 feat: concurrent installation
close #941
2017-12-21 01:26:56 +02:00
Zoltan Kochan
2c9314ea4e feat: implement pnpm-as-a-service
ref #832
2017-12-20 21:17:15 +02:00
Zoltan Kochan
327f9243d1 fix(update): hooks should be applied 2017-11-12 18:26:55 +02:00
zkochan
05f908422f fix(outdated): checking non-npm-hosted dependencies
close #918
2017-11-04 12:45:20 +02:00
zkochan
0df85f577f chore: use package-preview 2017-11-01 09:12:09 +02:00
zkochan
071453b7d5 test: no separate package.json for tests 2017-11-01 09:12:09 +02:00
Zoltan Kochan
fb4c6f09f1 chore: update shrinkwrap.yaml to version 3.2 2017-10-29 19:31:31 +02:00
zkochan
c0807b6cc7 feat: support --only
Close #461
2017-10-27 22:22:55 +03:00
Zoltan Kochan
b114bc48b8 fix: pass through to npm a predefined list of commands
close #864
2017-10-21 12:14:13 +03:00
Zoltan Kochan
79321bd181 fix: better syntax error reporting for pnpmfile.js
close #908
2017-10-21 00:37:44 +03:00
zkochan
d57fc63e8d test: fix executable check on Windows 2017-10-18 22:39:58 +03:00
zkochan
1bfcf1d9d8 test: fix isexe usage 2017-10-18 22:26:30 +03:00
zkochan
fcad7a0578 chore: update shrinkwrap.yaml 2017-10-16 15:52:10 +03:00