Fix bin config in package.json #2

Merged
doodlewind merged 1 commit from fix-bin-entry into master 2017-12-12 08:30:58 +01:00
doodlewind commented 2017-12-12 03:52:36 +01:00 (Migrated from github.com)

Closes #1

Currently this module is not exposed as binary, which leads to error when running it with npm scripts like "build_demo": "builddocs". To fix this we can simply add shebang in ./bin with bin entry in package.json. This configuration is tested in these cases:

  • Using "builddocs" in npm scripts does not throw error.
  • npm link in source dir and we can use builddocs via terminal command.
  • Running node ./bin/builddocs.js remains intact.

See also package.json docs.

Closes #1 Currently this module is not exposed as binary, which leads to error when running it with npm scripts like `"build_demo": "builddocs"`. To fix this we can simply add shebang in `./bin` with `bin` entry in package.json. This configuration is tested in these cases: * Using `"builddocs"` in npm scripts does not throw error. * `npm link` in source dir and we can use `builddocs` via terminal command. * Running `node ./bin/builddocs.js` remains intact. See also package.json [docs](https://docs.npmjs.com/files/package.json#bin).
marijnh commented 2017-12-12 08:31:33 +01:00 (Migrated from github.com)

Thanks! Merged and released as 0.3.2

Thanks! Merged and released as 0.3.2
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/builddocs!2
No description provided.