Skip to content

Commit bbb5955

Browse files
committed
fix(codemod-rewrite-module-specifiers-to-full-paths): add cli shebang
1 parent f932816 commit bbb5955

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.changeset/fix-codemod-shebang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@patricktree/codemod-rewrite-module-specifiers-to-full-paths": patch
3+
---
4+
5+
Add a shebang to the CLI entrypoint so npx can execute the bin script.

packages/codemod-rewrite-module-specifiers-to-full-paths/src/bin/codemod.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import * as commander from '@commander-js/extra-typings';
24
import fs from 'node:fs';
35

platform/config-eslint/eslint-ecma.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ module.exports = {
120120
},
121121
],
122122
'n/handle-callback-err': 'error',
123+
/* n/hashbang has false positives */
124+
'n/hashbang': 'off',
123125
'n/no-callback-literal': 'error',
124126
// disable "n/no-extraneous-import" --> thanks to "isolated mode" of node_modules of pnpm and "public-hoist-pattern" being disabled of this monorepo, there is no possibilty for extraneous imports
125127
'n/no-extraneous-import': 'off',

0 commit comments

Comments
 (0)