hanni 1.0.0 → 1.0.1

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.
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bun
2
+ import { copy } from "fs";
3
+
4
+ const args = process.argv.slice(2);
5
+ const targetDir = args[0] || "my-hanni-app";
6
+
7
+ try {
8
+ await Bun.mkdir(targetDir, { recursive: true });
9
+ await Bun.cp("template/", targetDir, { recursive: true });
10
+ console.log(`✅ Project created at ${targetDir}`);
11
+ } catch (err) {
12
+ console.error(err);
13
+ }
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "hanni",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Minimalist Bun web framework with built-in Swagger UI",
5
5
  "type": "module",
6
6
  "main": "./src/hanni.js",
7
+ "bin": {
8
+ "create-hanni": "./bin/create-hanni.js"
9
+ },
7
10
  "exports": {
8
11
  ".": "./src/hanni.js"
9
12
  },
10
13
  "files": [
11
14
  "src/hanni.js",
12
- "src"
15
+ "src",
16
+ "bin/create-hanni.js"
13
17
  ],
14
18
  "keywords": [
15
19
  "bun",
@@ -23,4 +27,4 @@
23
27
  "engines": {
24
28
  "bun": ">=1.0.0"
25
29
  }
26
- }
30
+ }