Embraser01 / typoas

Open API (OAS 3.0) Typescript generator
MIT License
40 stars 5 forks source link

CLI running as shell script instead of nodejs #45

Closed rjmackay closed 1 year ago

rjmackay commented 1 year ago

I tried to run the CLI with npx @typoas/cli generate but it looks like it's trying to run the CLI as a shell script.

.npm/bin/cli: line 1: use strict: command not found
.npm/bin/cli: line 2: syntax error near unexpected token `exports,'
.npm/bin/cli: line 2: `Object.defineProperty(exports, "__esModule", { value: true });'

After manually adding a shebang like this it works:

#!/usr/bin/env node

Is this not the expected usage? Or maybe this is a yarn vs npm difference?