Skip to content

Commit f1aae63

Browse files
committed
Suggest test/multidep_modules instead of test/multidep
1 parent a400b5a commit f1aae63

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# master
22

3+
* Suggest test/multidep_modules instead of test/multidep
4+
35
# 2.0.0
46

57
* Clearer API: We now use a `multidepRequire` function, similar to `require`

‎README.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Create a JSON spec of packages to be installed, e.g. at `test/multidep.json`:
2424

2525
```json
2626
{
27-
"path": "test/multidep",
27+
"path": "test/multidep_modules",
2828
"versions": {
2929
"broccoli": ["0.16.3", "1.0.0"]
3030
}
@@ -41,8 +41,9 @@ Next, run
4141
./node_modules/.bin/multidep test/multidep.json
4242
```
4343

44-
In this example, it will create `test/multidep` and install broccoli 0.16.3
45-
and broccoli 1.0.0 somewhere inside the `test/multidep` directory.
44+
In this example, it will create `test/multidep_modules` and install broccoli
45+
0.16.3 and broccoli 1.0.0 somewhere inside the `test/multidep_modules`
46+
directory.
4647

4748
To run `multidep` automatically before your test suite (when you run `npm
4849
test`), add it as a "pretest" hook to your `package.json`:
@@ -57,7 +58,7 @@ test`), add it as a "pretest" hook to your `package.json`:
5758
```
5859

5960
`multidep` will not redownload existing packages. If something went wrong,
60-
delete its directory first: `rm -r test/multidep`
61+
delete its directory first: `rm -r test/multidep_modules`
6162

6263
### `multidepRequire`: Requiring specific package versions
6364

@@ -93,7 +94,7 @@ presence is detected automatically, without being specified in
9394
First, symlink your checkout to `<path>/<package>-master`, e.g.
9495

9596
```bash
96-
ln -s ~/src/broccoli test/multidep/broccoli-master
97+
ln -s ~/src/broccoli test/multidep_modules/broccoli-master
9798
```
9899

99100
Then, try to `require` it. If it's not present (for example on a CI server),

‎index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function getSpec(specPath) {
114114
// specPath is relative to cwd, so we need to call realpathSync
115115
var spec = require(fs.realpathSync(specPath))
116116
if (!spec || !spec.hasOwnProperty('path') || Array.isArray(spec.versions)) {
117-
throw new Error('Invalid version spec; expected { path: "test/multidep", versions: { ... } }, got ' +
117+
throw new Error('Invalid version spec; expected { path: "test/multidep_modules", versions: { ... } }, got ' +
118118
require('util').inspect(spec))
119119
}
120120
return spec

0 commit comments

Comments
 (0)