Skip to content

Commit

Permalink
fix(cli): re-add shebang to electron-forge binary (#2671)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept authored Jan 10, 2022
1 parent c5490b6 commit 1ca418e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@
{
"files": ["packages/api/cli/src/**/*.ts", "tools/*.{js,ts}"],
"rules": {
"no-process-exit": "off"
"no-process-exit": "off",
"node/shebang": [
"error",
{
"convertPath": {
"src/*.ts": ["src/(.+?)\\.ts$", "dist/$1.js"]
}
}
]
}
},
{
Expand Down
3 changes: 3 additions & 0 deletions packages/api/cli/src/electron-forge.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env node
// This file requires a shebang above. If it is missing, this is an error.

import { asyncOra } from '@electron-forge/async-ora';
import chalk from 'chalk';
import program from 'commander';
Expand Down

0 comments on commit 1ca418e

Please sign in to comment.