Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bestander committed Jun 23, 2017
1 parent 1c968d7 commit 8d234a2
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "a",
"version": "1.0.0",
"dependencies": {
"b": "file:../b-1/b-1.0.0.tgz"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "b",
"version": "2.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "d-1",
"version": "2.0.0",
"dependencies": {
"b": "file:../b-1/b-1.0.0.tgz"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dependencies": {
"a": "file:deps/a-1",
"b": "file:deps/b-2",
"d": "file:deps/d-1"
}
}
4 changes: 1 addition & 3 deletions __tests__/fixtures/install/transitive-file/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"dependencies": {
"a": "file:deps/a-1",
"b": "file:deps/b-2",
"d": "file:deps/d-1"
"a": "file:deps/a-1"
}
}
6 changes: 5 additions & 1 deletion src/package-linker.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,16 @@ export default class PackageLinker {
}

// link up the `bin` scripts in bundled dependencies
if (pkg.bundleDependencies) {
if (false && pkg.bundleDependencies) {
for (const depName of pkg.bundleDependencies) {
const loc = path.join(this.config.generateHardModulePath(ref), this.config.getFolder(pkg), depName);

console.log("!!!", loc)

const dep = await this.config.readManifest(loc, remote.registry);

console.log("???")

if (dep.bin && Object.keys(dep.bin).length) {
deps.push({dep, loc});
}
Expand Down

0 comments on commit 8d234a2

Please sign in to comment.