Skip to content

Commit

Permalink
chore: use local bin
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS committed Mar 23, 2016
1 parent 29a90ca commit 0b78ee4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"scripts": {
"clean": "npm cache clean && rimraf node_modules doc typings coverage dist",
"clean:dist": "rimraf dist",
"clean:dist": "./node_modules/.bin/rimraf dist",
"preclean:install": "npm run clean",
"clean:install": "npm set progress=false && npm install",
"preclean:start": "npm run clean",
Expand All @@ -25,18 +25,18 @@
"server": "npm run server:dev",
"server:dev": "node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.dev.js --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/",
"server:dev:hmr": "npm run server:dev -- --hot",
"server:prod": "http-server dist --cors",
"webdriver:update": "webdriver-manager update",
"webdriver:start": "webdriver-manager start",
"server:prod": "./node_modules/.bin/http-server dist --cors",
"webdriver:update": "./node_modules/.bin/webdriver-manager update",
"webdriver:start": "./node_modules/.bin/webdriver-manager start",
"lint": "./node_modules/.bin/tslint 'src/**/*.ts'",
"pree2e": "npm run webdriver:update -- --standalone",
"e2e": "protractor",
"e2e:live": "protractor --elementExplorer",
"e2e": "./node_modules/.bin/protractor",
"e2e:live": "npm run e2e -- --elementExplorer",
"test": "node --max-old-space-size=4096 ./node_modules/karma/bin/karma start",
"ci": "npm run e2e && npm run test",
"docs": "typedoc --options typedoc.json --exclude '**/*.spec.ts' ./src/",
"docs": "./node_modules/.bin/typedoc --options typedoc.json --exclude '**/*.spec.ts' ./src/",
"start": "npm run server",
"typings-install": "typings install",
"typings-install": "./node_modules/.bin/typings install",
"postinstall": "npm run typings-install",
"preversion": "npm test",
"version": "npm run build",
Expand Down

3 comments on commit 0b78ee4

@cebor
Copy link
Contributor

@cebor cebor commented on 0b78ee4 Mar 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When evaluating scripts, npm actually adds .bin/ to your current PATH environment variable. And a local install will be definitely used over a global one.

@PatrickJS
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it does but I always get windows users creating issues about this :/

@dsebastien
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They shouldn't complain, it works perfectly well without the ./node_modules ...
I've rather encountered issues when it WAS specified ^^ (on Win*)

Please sign in to comment.