flash-builder 1.0.1 → 1.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.
Files changed (2) hide show
  1. package/package.json +15 -8
  2. package/src/index.ts +0 -71
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flash-builder",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/jefripunza/flash-builder-cli#readme",
6
6
  "repository": {
@@ -10,9 +10,13 @@
10
10
  "bugs": "https://github.com/jefripunza/flash-builder-cli/issues",
11
11
  "author": "Jefri Herdi Triyanto <jefripunza@gmail.com>",
12
12
  "license": "MIT",
13
- "types": "./src/index.d.ts",
13
+ "keywords": [
14
+ "flash builder",
15
+ "cli",
16
+ "bun"
17
+ ],
14
18
  "bin": {
15
- "fbi": "./src/index.ts"
19
+ "fbi": "./dist/index.js"
16
20
  },
17
21
  "type": "module",
18
22
  "scripts": {
@@ -25,11 +29,14 @@
25
29
  "dist",
26
30
  "README.md"
27
31
  ],
28
- "keywords": [
29
- "flash builder",
30
- "cli",
31
- "bun"
32
- ],
32
+ "main": "./dist/index.cjs",
33
+ "module": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
35
+ "exports": {
36
+ "require": "./dist/index.cjs",
37
+ "import": "./dist/index.js",
38
+ "types": "./dist/index.d.ts"
39
+ },
33
40
  "dependencies": {
34
41
  "bun-plugin-dts": "^0.3.0",
35
42
  "dotenv": "^17.2.4",
package/src/index.ts DELETED
@@ -1,71 +0,0 @@
1
- #!/usr/bin/env bun
2
-
3
- // third party
4
- import meow from "meow";
5
-
6
- // banner
7
- import banner from "./banner";
8
-
9
- // environment
10
- import "./environment";
11
-
12
- // commands
13
- import { beCommand } from "./commands/be/index";
14
- import { mcpCommand } from "./commands/mcp/index";
15
- import { syncCommand } from "./commands/sync/index";
16
-
17
- const cli = meow(
18
- `
19
- ${banner}
20
- Usage
21
- $ fbi <command> [options]
22
-
23
- Commands
24
- be <project-name> Initialize a new backend project
25
- mcp <project-name> Initialize a new mcp server project
26
- sync Sync the current backend interface with the application target
27
-
28
- Options
29
- --verbose, -v Enable verbose logging
30
- --help, -h Show this help message
31
- --version Show version number
32
-
33
- Examples
34
- $ fbi be my-app
35
- $ fbi mcp my-mcp-server
36
- $ fbi sync
37
- `,
38
- {
39
- importMeta: import.meta,
40
- flags: {
41
- verbose: {
42
- type: "boolean",
43
- shortFlag: "v",
44
- default: false,
45
- },
46
- },
47
- },
48
- );
49
-
50
- const [command, ...args] = cli.input;
51
-
52
- switch (command) {
53
- case "be":
54
- beCommand(args[0] || "", cli.flags.verbose);
55
- break;
56
-
57
- case "mcp":
58
- mcpCommand(args[0] || "", cli.flags.verbose);
59
- break;
60
-
61
- case "sync":
62
- syncCommand(cli.flags.verbose);
63
- break;
64
-
65
- default:
66
- if (command) {
67
- console.error(`❌ Unknown command: ${command}`);
68
- }
69
- cli.showHelp();
70
- process.exit(command ? 1 : 0);
71
- }