diff --git a/bun.lockb b/bun.lockb index f3d80c8..7e4dcda 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/cli/actions.ts b/cli/actions.ts index 784b382..6ac3fe2 100644 --- a/cli/actions.ts +++ b/cli/actions.ts @@ -16,7 +16,7 @@ const actions: InstallerModule[] = [ await import('@/actions/db/typegen.js'), await import('@/actions/db/reset.js'), await import('@/actions/email/compile.js'), - await import('@/actions/email/configure.js') + await import('@/actions/email/configure.js'), ] export default actions diff --git a/cli/actions/config/generate.ts b/cli/actions/config/generate.ts index 9b2ab74..9f4d887 100644 --- a/cli/actions/config/generate.ts +++ b/cli/actions/config/generate.ts @@ -14,7 +14,7 @@ async function handleExisting(path: string): Promise { try { await stat(path) const answer = await confirm({ - message: 'A config file already exists. Overwrite?' + message: 'A config file already exists. Overwrite?', }) if (!answer) { console.error('Action canceled by user.') @@ -51,7 +51,7 @@ const installer: Installer = program => { await mkdir(dirname(location), { recursive: true }) await writeFile(location, JSON.stringify({ - '$schema': '../node_modules/@actcoding/supa-cli/config.schema.json' + '$schema': '../node_modules/@actcoding/supa-cli/config.schema.json', }, null, 4)) log(`Config file created at ${configFile}`) diff --git a/cli/actions/db/reset.ts b/cli/actions/db/reset.ts index 62f4990..56326fe 100644 --- a/cli/actions/db/reset.ts +++ b/cli/actions/db/reset.ts @@ -19,7 +19,7 @@ const installer: Installer = program => { const cmd = [ 'supabase', 'db', - 'reset' + 'reset', ] cmd.push(opts.linked ? '--linked' : '--local') diff --git a/cli/actions/db/typegen.ts b/cli/actions/db/typegen.ts index 17e1d07..6c746e4 100644 --- a/cli/actions/db/typegen.ts +++ b/cli/actions/db/typegen.ts @@ -22,7 +22,7 @@ export async function generateTypes(opts: Options): Promise { 'gen', 'types', '--schema', 'public', - '--lang', 'typescript' + '--lang', 'typescript', ] cmd.push(opts.linked ? '--linked' : '--local') diff --git a/cli/actions/email/compile.ts b/cli/actions/email/compile.ts index 64eabfc..f37fd30 100644 --- a/cli/actions/email/compile.ts +++ b/cli/actions/email/compile.ts @@ -33,7 +33,7 @@ const installer: Installer = program => { .description('Compile and optionally deploy email templates') .addOption( new Option('--deploy', 'Enable deployment to linked Supabase project. (Implies --linked)') - .implies({ linked: true, }) + .implies({ linked: true }), ) .action(action(async ({ opts }) => { const projectRef = opts.deploy ? await supabaseProjectRef() : null diff --git a/cli/actions/list.ts b/cli/actions/list.ts index 3ddbd7c..217837c 100644 --- a/cli/actions/list.ts +++ b/cli/actions/list.ts @@ -53,7 +53,7 @@ const installer: Installer = program => { const namespaces = Array.from(new Set(commands .map(cmd => cmd._name) .map(name => name.includes(':') ? name.slice(0, name.indexOf(':')) : '_global') - .sort() + .sort(), )) const list: List = { @@ -67,7 +67,7 @@ const installer: Installer = program => { commands: commands .filter(cmd => id == '_global' ? !cmd._name.includes(':') : cmd._name.startsWith(id)) .map(cmd => cmd._name) - .sort() + .sort(), } }), commands: commands.map(cmd => ({ diff --git a/eslint.config.js b/eslint.config.js index c0e9dc9..09ee24c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,9 +6,10 @@ const config = [ { ignores: [ '*.d.ts', - 'supabase', + 'supabase/', + '.venv', ], - } + }, ] export default config diff --git a/package.json b/package.json index 078e455..84cb96e 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,7 @@ "node": ">=14.8" }, "devDependencies": { - "@actcoding/eslint-config": "^0.0.5", - "@inquirer/select": "^2.4.7", + "@actcoding/eslint-config": "^0.0.7", "@types/bun": "^1.1.6", "@types/ejs": "^3.1.5", "@types/hast": "^3.0.4", @@ -60,6 +59,7 @@ "@inquirer/confirm": "^3.1.20", "@inquirer/input": "^2.2.7", "@inquirer/password": "^2.1.20", + "@inquirer/select": "^2.4.7", "commander": "^12.1.0", "dayjs": "^1.11.12", "dotenv": "^16.4.5",