Skip to content

Commit 95a82ea

Browse files
fix: suppress misleading oclif TypeScript warning in production (#33)
Add process.env.OCLIF_TS_NODE = '0' to bin/run.js to prevent the "Could not find typescript" warning when users run the CLI via npx. This warning is misleading as TypeScript is only needed for development, not for end users running the published package. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 4b50e1e commit 95a82ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/run.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env node
22

3+
// Suppress oclif TypeScript warning for production usage
4+
process.env.OCLIF_TS_NODE = '0'
5+
36
import {execute} from '@oclif/core'
47

58
// If no arguments provided, default to 'init' command

0 commit comments

Comments
 (0)