Skip to content

Commit

Permalink
v0.6.1: fixed '/.bin/*' linking
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Dec 8, 2017
1 parent b64be27 commit a38dfcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npmy",
"version": "0.6.0",
"version": "0.6.1",
"description": "`npm link` on steroids.",
"author": "RubaXa <ibnRubaXa@gmail.com>",
"repository": "git@github.com:artifact-project/npmy.git",
Expand Down Expand Up @@ -29,7 +29,7 @@
"jest": "^20.0.3",
"ts-jest": "^20.0.4",
"ts-node": "^3.3.0",
"typescript": "^2.4.0"
"typescript": "^2.6.1"
},
"jest": {
"transform": {
Expand All @@ -54,7 +54,6 @@
"minimist": "^1.2.0",
"node-watch": "^0.5.5",
"rimraf": "^2.6.1",
"semver": "^5.3.0",
"typescript": "^2.6.1"
"semver": "^5.3.0"
}
}
5 changes: 3 additions & 2 deletions src/Package/Package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,23 @@ export default class Package {

if (pkgJson !== null) { // todo: Надо бы разобраться
createBin(pkgJson.name, pkgPath, pkgJson.bin);
scanNext(pkgJson.dependencies);
scanNext(pkgJson.allDependencies);
}
});
};

await checkNodeModulesPath(binRoot);

createBin(join(this.path, 'node_modules', json.name), json.bin);
scanNext(json.dependencies);
scanNext(json.allDependencies);
}

protected async runInstall(createBinScripts: boolean) {
const symLinks: Package[] = [];
const toInstall: ({name: string, version: string})[] = [];
const existsDeps = {};

this.verbose(`Run install (${createBinScripts})`);
this.time('install');

(function collect(deps:{[name:string]: string} = {}, npmy: INPMyrc) {
Expand Down

0 comments on commit a38dfcc

Please sign in to comment.