diff --git a/package.json b/package.json index d11c246..59e55eb 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint src/**/*.ts", "test": "jest", "start": "ts-node src/cli.ts", - "build": "rm -r dist ; rollup -c" + "build": "rm -r dist ; rollup -c && chmod a+x ./dist/cli.js" }, "devDependencies": { "@rollup/plugin-commonjs": "^22.0.0", diff --git a/rollup.config.js b/rollup.config.js index 9e8f664..9aa0c19 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -37,6 +37,7 @@ export default [ { file: packageJson.bin, format: 'cjs', + banner: '#!/usr/bin/env node', }, ], plugins,