Skip to content

Commit

Permalink
Fix invalid runner-cli bin files, Closes #122
Browse files Browse the repository at this point in the history
This was because of our fix for installation during the monorepo.
This is an open problem of Lerna:
* lerna/lerna#385
* lerna/lerna#1444
  • Loading branch information
rubensworks committed Jun 1, 2018
1 parent e75b56a commit 83f1fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -90,6 +90,7 @@
"lint": "tslint packages/*/lib/**/*.ts packages/*/test/**/*.ts --exclude '**/*.d.ts'",
"build": "tsc",
"doc": "typedoc --name Comunica --exclude \"**/+(node_modules|test|mocks)/**\" --disableOutputCheck --mode modules --out documentation $(find packages ! -name 'packager' -type d -mindepth 1 -maxdepth 1)",
"preinstall": "node -e \"if (!fs.existsSync('packages/runner-cli/bin/run.js')) { var os = fs.createWriteStream('packages/runner-cli/bin/run.js'); os.write('#!/usr/bin/env node\\nconsole.error(\\'Temporary runner script during lerna installation. If you see this, please run yarn install again.\\');\\nprocess.exit(1);'); os.end(); }\"",
"postinstall": "lerna bootstrap && tsc"
}
}
3 changes: 1 addition & 2 deletions packages/runner-cli/package.json
Expand Up @@ -39,7 +39,6 @@
"scripts": {
"lint": "node \"../../node_modules/tslint/bin/tslint\" lib/**/*.ts test/**/*.ts --exclude '**/*.d.ts'",
"build": "node \"../../node_modules/typescript/bin/tsc\"",
"validate": "npm ls",
"preinstall": "node -e \"fs.openSync('bin/run.js', 'w')\""
"validate": "npm ls"
}
}

0 comments on commit 83f1fee

Please sign in to comment.