Skip to content

Commit

Permalink
Add deploy to binaries not following the --require convention (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jan 29, 2024
1 parent db4cb7a commit ad1ff7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/knip/fixtures/npm-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"ignore": "node ignore.js",
"ignore-artifact": "node dist/ignore.js",
"start": "package",
"go": "runnable"
"go": "runnable",
"go-live": "deploy -r repo_name"
},
"dependencies": {
"express": "*",
Expand All @@ -36,6 +37,7 @@
"ignoreBinaries": [
"rm",
"bash",
"deploy",
"eslint"
]
}
Expand Down
1 change: 1 addition & 0 deletions packages/knip/src/binaries/resolvers/fallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const withoutRequire: ArgResolver = () => [];

const argFilters: ArgResolvers = {
adb: withoutRequire,
deploy: withoutRequire,
'babel-node': withPositional,
esbuild: withPositional,
execa: withPositional,
Expand Down

0 comments on commit ad1ff7f

Please sign in to comment.