@deessejs/cli 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -7
- package/dist/index.mjs +1 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
3
|
-
\u{1F6A7} [Dummy] Migration engine starting...`)),console.log(o.default.green(`\u2705 Database is already up to date. (Placeholder)
|
|
4
|
-
`))});a.command("generate").description("Generate client types or database schema").action(()=>{console.log(o.default.cyan(`
|
|
5
|
-
\u{1F6E0}\uFE0F [Dummy] Generating files...`)),console.log(o.default.green(`\u2705 Generation complete. (Placeholder)
|
|
6
|
-
`))});a.on("command:*",()=>{console.error(o.default.red(`
|
|
7
|
-
\u274C Unknown command.`)),console.log(`Available commands: ${o.default.cyan("migrate")}, ${o.default.cyan("generate")}
|
|
8
|
-
`),process.exit(1)});a.parse(process.argv);process.argv.slice(2).length||a.outputHelp();
|
|
2
|
+
var g=Object.create;var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of u(t))!l.call(e,s)&&s!==o&&a(e,s,{get:()=>t[s],enumerable:!(r=m(t,s))||r.enumerable});return e};var y=(e,t,o)=>(o=e!=null?g(f(e)):{},d(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:!0}):o,e));var c=require("commander"),i=y(require("picocolors")),p=require("child_process"),n=new c.Command;n.name("deesse").description("Deesse CLI - Wrapper for Better Auth").version("0.1.0");var h=(e,t)=>new Promise(o=>{(0,p.spawn)(e,t,{stdio:"inherit",shell:!0}).on("exit",s=>{o(s)})});n.command("generate").description("Generate Better Auth schema").option("-o, --output <path>","Where to save the generated schema","./.deesse/schema.ts").option("-c, --config <path>","Path to your config file","src/deesse.config.ts").option("-y, --yes","Skip the confirmation prompt",!1).action(async e=>{console.log(i.default.cyan("\u{1F6E0}\uFE0F Deesse: Proxying generate to Better Auth..."));let t=["@better-auth/cli@latest","generate"];t.push("--output",e.output),t.push("--config",e.config),e.yes&&t.push("--yes"),await h("npx",t)});n.command("migrate").description("Apply Better Auth schema to database").option("-c, --config <path>","Path to your config file","src/deesse.config.ts").option("-y, --yes","Skip the confirmation prompt",!1).action(async e=>{console.log(i.default.yellow("\u{1F680} Deesse: Proxying migrate to Better Auth..."));let t=["@better-auth/cli@latest","migrate"];t.push("--config",e.config),e.yes&&t.push("--yes"),await h("npx",t)});n.parse(process.argv);process.argv.slice(2).length||n.outputHelp();
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{Command as
|
|
3
|
-
\u{1F6A7} [Dummy] Migration engine starting...`)),console.log(e.green(`\u2705 Database is already up to date. (Placeholder)
|
|
4
|
-
`))});n.command("generate").description("Generate client types or database schema").action(()=>{console.log(e.cyan(`
|
|
5
|
-
\u{1F6E0}\uFE0F [Dummy] Generating files...`)),console.log(e.green(`\u2705 Generation complete. (Placeholder)
|
|
6
|
-
`))});n.on("command:*",()=>{console.error(e.red(`
|
|
7
|
-
\u274C Unknown command.`)),console.log(`Available commands: ${e.cyan("migrate")}, ${e.cyan("generate")}
|
|
8
|
-
`),process.exit(1)});n.parse(process.argv);process.argv.slice(2).length||n.outputHelp();
|
|
2
|
+
import{Command as a}from"commander";import s from"picocolors";import{spawn as c}from"child_process";var o=new a;o.name("deesse").description("Deesse CLI - Wrapper for Better Auth").version("0.1.0");var n=(t,e)=>new Promise(r=>{c(t,e,{stdio:"inherit",shell:!0}).on("exit",i=>{r(i)})});o.command("generate").description("Generate Better Auth schema").option("-o, --output <path>","Where to save the generated schema","./.deesse/schema.ts").option("-c, --config <path>","Path to your config file","src/deesse.config.ts").option("-y, --yes","Skip the confirmation prompt",!1).action(async t=>{console.log(s.cyan("\u{1F6E0}\uFE0F Deesse: Proxying generate to Better Auth..."));let e=["@better-auth/cli@latest","generate"];e.push("--output",t.output),e.push("--config",t.config),t.yes&&e.push("--yes"),await n("npx",e)});o.command("migrate").description("Apply Better Auth schema to database").option("-c, --config <path>","Path to your config file","src/deesse.config.ts").option("-y, --yes","Skip the confirmation prompt",!1).action(async t=>{console.log(s.yellow("\u{1F680} Deesse: Proxying migrate to Better Auth..."));let e=["@better-auth/cli@latest","migrate"];e.push("--config",t.config),t.yes&&e.push("--yes"),await n("npx",e)});o.parse(process.argv);process.argv.slice(2).length||o.outputHelp();
|