-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix studio cli fails when rc file comes from general cli #286
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
The base branch was changed.
3395d4a
to
970b3e6
Compare
970b3e6
to
6e5e4b0
Compare
// The aliases config is used by @tableland/cli but not here. We want to allow | ||
// people to use the same rc config for both, so we have to remove it here. | ||
// @ts-expect-error the config type doesn't expect aliases | ||
const { aliases: _, ...config } = conf.config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the functional change.
We remove the aliases field from the config since it can't be used, and yargs crashes if it is present in the config Object.
@@ -1,6 +1,6 @@ | |||
import { type Schema as SDKSchema } from "@tableland/sdk"; | |||
import { customType } from "drizzle-orm/sqlite-core"; | |||
import { unescapeSchema } from "../helpers"; | |||
import { unescapeSchema } from "../helpers.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing this feature requires the use of npm link
. When linking local builds you must include the file types, so I added them where needed.
I had to rebase and do a little bit of refactoring. This needs another review. |
fixes https://linear.app/tableland/issue/ENG-854/handle-aliases-field-in-rc-file