0.1.0 • Published 2 years ago
execify-cli v0.1.0
execify-cli
Easily make a Node.js CLI executable. Sets permissions (chmod +x) and handles common TypeScript conversions. See Roadmap for more details.
Install
npm install --save-dev execify-cliyarn add --dev execify-cliUsage
Usage
$ execify [globs…]
Options
--package, --pkg, -p Set every binary in package.json as executable
--fix-shebang Convert shebangs to "#!/usr/bin/env node"
--all Set all flags
Examples
$ execify cli.js
$ execify --pkg test/fixtures/**/cli.js
$ execify --fix-shebang dist/ts-cli.jsRoadmap
v0.1.0 is a minimal release. The following features were cut and will be added in the next minor version:
- TypeScript import path mapping from
tsconfig.jsonpathsoption - A flag to fix all TypeScript-related conversions
- Logging of completed/failed files, improved error handling