@deessejs/cli 0.0.0 → 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
|
-
\u2728 Creating a new Deesse project: ${o.default.bold(e)}...`)),console.log(o.default.green(`\u2705 Project initialized successfully!
|
|
4
|
-
`)),console.log("Next steps:"),console.log(o.default.dim(` cd ${e}`)),console.log(o.default.dim(" pnpm install")),console.log(o.default.dim(` deesse dev
|
|
5
|
-
`))});s.command("add").description("Add a new plugin to the project").argument("<plugin>","name of the plugin to add").action(e=>{console.log(o.default.yellow(`\u{1F4E6} Installing plugin: ${o.default.bold(e)}...`)),console.log(o.default.green(`\u{1F680} Plugin ${e} added and configured.`))});s.command("dev").description("Start the development server").option("-p, --port <number>","port to run the server on","3000").action(e=>{console.log(o.default.blue(`
|
|
6
|
-
\u{1F4E1} Deesse engine starting...`)),console.log(o.default.dim(`> Local: http://localhost:${e.port}`))});s.on("command:*",()=>{console.error(o.default.red(`
|
|
7
|
-
\u274C Invalid command.`)),console.log(`Run ${o.default.cyan("deesse --help")} for a list of available commands.
|
|
8
|
-
`),process.exit(1)});s.parse(process.argv);process.argv.slice(2).length||s.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
|
-
\u2728 Creating a new Deesse project: ${e.bold(o)}...`)),console.log(e.green(`\u2705 Project initialized successfully!
|
|
4
|
-
`)),console.log("Next steps:"),console.log(e.dim(` cd ${o}`)),console.log(e.dim(" pnpm install")),console.log(e.dim(` deesse dev
|
|
5
|
-
`))});n.command("add").description("Add a new plugin to the project").argument("<plugin>","name of the plugin to add").action(o=>{console.log(e.yellow(`\u{1F4E6} Installing plugin: ${e.bold(o)}...`)),console.log(e.green(`\u{1F680} Plugin ${o} added and configured.`))});n.command("dev").description("Start the development server").option("-p, --port <number>","port to run the server on","3000").action(o=>{console.log(e.blue(`
|
|
6
|
-
\u{1F4E1} Deesse engine starting...`)),console.log(e.dim(`> Local: http://localhost:${o.port}`))});n.on("command:*",()=>{console.error(e.red(`
|
|
7
|
-
\u274C Invalid command.`)),console.log(`Run ${e.cyan("deesse --help")} for a list of available commands.
|
|
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();
|