Skip to content

Commit

Permalink
fix(cli): attempt to fix permissions on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Feb 8, 2020
1 parent 4c9818d commit f02aacb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions @commitlint/cli/cli-bin.js
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('./lib/cli.js');
2 changes: 1 addition & 1 deletion @commitlint/cli/index.js
@@ -1,3 +1,3 @@
const path = require('path');

module.exports = path.join(__dirname, 'lib/cli.js');
module.exports = path.join(__dirname, 'cli-bin.js');
2 changes: 1 addition & 1 deletion @commitlint/cli/package.json
Expand Up @@ -8,7 +8,7 @@
"!*.test.js*"
],
"bin": {
"commitlint": "./lib/cli.js"
"commitlint": "./cli-bin.js"
},
"scripts": {
"deps": "dep-check",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli.test.ts
Expand Up @@ -4,7 +4,7 @@ import execa from 'execa';
import merge from 'lodash/merge';
import fs from 'fs-extra';

const bin = require.resolve('../lib/cli.js');
const bin = require.resolve('../cli-bin.js');

interface TestOptions {
cwd: string;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli.ts 100755 → 100644
@@ -1,4 +1,4 @@
#!/usr/bin/env node

import load from '@commitlint/load';
import lint from '@commitlint/lint';
import read from '@commitlint/read';
Expand Down

0 comments on commit f02aacb

Please sign in to comment.