@farbenmeer/bunny 0.1.1 → 0.1.3
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/boilerplate.tar.gz +0 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +5 -1
- package/package.json +1 -1
package/boilerplate.tar.gz
CHANGED
|
Binary file
|
package/dist/cli/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,IAAI,SAyCb,CAAC"}
|
package/dist/cli/init.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { $ } from "bun";
|
|
1
2
|
import { Command } from "commander";
|
|
2
3
|
import { exists, mkdir, readdir } from "node:fs/promises";
|
|
3
|
-
import { $ } from "bun";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
export const init = new Command()
|
|
6
6
|
.name("init")
|
|
@@ -32,5 +32,9 @@ export const init = new Command()
|
|
|
32
32
|
// Extract the tarball to the current directory
|
|
33
33
|
await $ `tar -xzf ${tarBall} --strip-components=1`;
|
|
34
34
|
await $ `bun pm pkg set name=${name ?? path.basename(process.cwd())}`;
|
|
35
|
+
await $ `git init`;
|
|
36
|
+
await $ `bun install`;
|
|
37
|
+
await $ `bun run generate`;
|
|
38
|
+
await $ `bun run migrate`;
|
|
35
39
|
console.log("Project initialized successfully!");
|
|
36
40
|
});
|