@sidgaikwad/db-setup 1.2.0 → 1.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"railway-pg.d.ts","sourceRoot":"","sources":["../../src/providers/railway-pg.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAqFnD,CAAA"}
1
+ {"version":3,"file":"railway-pg.d.ts","sourceRoot":"","sources":["../../src/providers/railway-pg.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CA+FnD,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@sidgaikwad/db-setup",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Interactive CLI for setting up PostgreSQL databases with multiple providers (Neon, Supabase, Railway, Local)",
5
+ "type": "module",
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
7
8
  "bin": {
@@ -13,7 +14,8 @@
13
14
  "build:types": "tsc --emitDeclarationOnly",
14
15
  "prepublishOnly": "bun run build",
15
16
  "dev": "bun run src/index.ts",
16
- "test": "bun test"
17
+ "test": "bun test",
18
+ "postinstall": "node postinstall.js"
17
19
  },
18
20
  "keywords": [
19
21
  "database",
@@ -27,7 +29,9 @@
27
29
  "docker",
28
30
  "database-setup",
29
31
  "postgres-setup",
30
- "interactive-cli"
32
+ "interactive-cli",
33
+ "bun",
34
+ "env"
31
35
  ],
32
36
  "author": "Siddharth Gaikwad <gaikwadsiddharth039@gmail.com>",
33
37
  "license": "MIT",
@@ -42,6 +46,7 @@
42
46
  "files": [
43
47
  "dist",
44
48
  "bin",
49
+ "postinstall.js",
45
50
  "README.md",
46
51
  "LICENSE"
47
52
  ],
@@ -51,8 +56,7 @@
51
56
  "dependencies": {
52
57
  "@inquirer/prompts": "^6.0.0",
53
58
  "chalk": "^5.3.0",
54
- "dotenv": "^16.3.1",
55
- "inquirer": "^13.1.0"
59
+ "dotenv": "^16.3.1"
56
60
  },
57
61
  "devDependencies": {
58
62
  "@types/node": "^20.0.0",
package/postinstall.js ADDED
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env node
2
+
3
+ // postinstall.js - Show helpful message after installation
4
+
5
+ import chalk from "chalk";
6
+
7
+ console.log(
8
+ "\n" +
9
+ chalk.bold.cyan(
10
+ "╔════════════════════════════════════════════════════════════╗"
11
+ )
12
+ );
13
+ console.log(
14
+ chalk.bold.cyan("║") +
15
+ " " +
16
+ chalk.bold.white("🗄️ Database Setup CLI installed successfully!") +
17
+ " " +
18
+ chalk.bold.cyan("║")
19
+ );
20
+ console.log(
21
+ chalk.bold.cyan(
22
+ "╚════════════════════════════════════════════════════════════╝"
23
+ ) + "\n"
24
+ );
25
+
26
+ console.log(chalk.bold.green("✨ Quick Start:\n"));
27
+
28
+ console.log(chalk.cyan(" Run the setup wizard:"));
29
+ console.log(chalk.white(" $ ") + chalk.yellow("bunx @sidgaikwad/db-setup"));
30
+ console.log(chalk.gray(" or"));
31
+ console.log(chalk.white(" $ ") + chalk.yellow("npx @sidgaikwad/db-setup"));
32
+ console.log(chalk.gray(" or"));
33
+ console.log(chalk.white(" $ ") + chalk.yellow("bun run create-db-setup"));
34
+ console.log(chalk.gray(" or"));
35
+ console.log(chalk.white(" $ ") + chalk.yellow("npm run create-db-setup\n"));
36
+
37
+ console.log(chalk.cyan(" Add to your package.json scripts:"));
38
+ console.log(chalk.white(" {"));
39
+ console.log(chalk.white(' "scripts": {'));
40
+ console.log(
41
+ chalk.white(" ") +
42
+ chalk.yellow('"db:setup"') +
43
+ chalk.white(": ") +
44
+ chalk.green('"create-db-setup"')
45
+ );
46
+ console.log(chalk.white(" }"));
47
+ console.log(chalk.white(" }\n"));
48
+
49
+ console.log(chalk.cyan(" Then run:"));
50
+ console.log(chalk.white(" $ ") + chalk.yellow("bun run db:setup\n"));
51
+
52
+ console.log(chalk.bold.blue("📚 Documentation:"));
53
+ console.log(chalk.white(" https://github.com/sidgaikwad/db-setup#readme\n"));
54
+
55
+ console.log(
56
+ chalk.gray("────────────────────────────────────────────────────────────\n")
57
+ );