Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: missing shebang in bin/deepkit-sql.js @deepkit/sql #598

Open
rktyt opened this issue Jul 11, 2024 · 0 comments
Open

Bug: missing shebang in bin/deepkit-sql.js @deepkit/sql #598

rktyt opened this issue Jul 11, 2024 · 0 comments

Comments

@rktyt
Copy link

rktyt commented Jul 11, 2024

I'm trying to use @deepkit/orm standalone.

  1. https://github.com/deepkit/deepkit-framework/blob/v1.0.1-alpha.153/packages/sql/bin/deepkit-sql.js
    There's no shebang.
    Therefore, the command cannot be used with npx deepkit-sql.

    $ npx deepkit-sql --help
    /tmp/my-deepkit-app/node_modules/.bin/deepkit-sql: 1: Syntax error: word unexpected (expecting ")")
    
    $ node node_modules/.bin/deepkit-sql --help
    USAGE
      $ node deepkit-sql [COMMAND]
    
    COMMANDS
    migration
      migration:create   Generates a new migration file based on a database diff.
      migration:down     Executes down migration, reverting old migration files.
      migration:pending  Shows pending migration files.
      migration:up       Executes pending migration files. Use migration:pending to see which are pending.
    
    For more information on a specific command or topic, type '[command/topic] --help'
    
  2. It seems that the arguments are not being handled correctly.
    I tried what the documentation says, but it doesn't work.
    https://deepkit.io/documentation/orm/migrations

    node ./node_modules/.bin/deepkit-sql migration:create --path database.ts --migrationDir src/migrations
    No databases detected. Use --path path/to/database.ts
    done
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant