flash-builder 1.0.1 → 1.0.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/dist/index.cjs CHANGED
@@ -9827,6 +9827,10 @@ var import_dotenv = __toESM(require_main(), 1);
9827
9827
  import_dotenv.default.config({ path: ".env", quiet: true });
9828
9828
  var PWD = process.cwd();
9829
9829
  var ENV = process.env;
9830
+ console.log({
9831
+ PWD,
9832
+ ENV
9833
+ });
9830
9834
  var PROJECT_TARGET_URL = ENV.PROJECT_TARGET_URL;
9831
9835
  var LLM_PROVIDER = ENV.LLM_PROVIDER;
9832
9836
  var LLM_MODEL = ENV.LLM_MODEL;
package/dist/index.js CHANGED
@@ -9828,6 +9828,10 @@ var import_dotenv = __toESM(require_main(), 1);
9828
9828
  import_dotenv.default.config({ path: ".env", quiet: true });
9829
9829
  var PWD = process.cwd();
9830
9830
  var ENV = process.env;
9831
+ console.log({
9832
+ PWD,
9833
+ ENV
9834
+ });
9831
9835
  var PROJECT_TARGET_URL = ENV.PROJECT_TARGET_URL;
9832
9836
  var LLM_PROVIDER = ENV.LLM_PROVIDER;
9833
9837
  var LLM_MODEL = ENV.LLM_MODEL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flash-builder",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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": {
@@ -23,13 +27,17 @@
23
27
  },
24
28
  "files": [
25
29
  "dist",
26
- "README.md"
27
- ],
28
- "keywords": [
29
- "flash builder",
30
- "cli",
31
- "bun"
30
+ "README.md",
31
+ "package.json"
32
32
  ],
33
+ "main": "./dist/index.cjs",
34
+ "module": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "exports": {
37
+ "require": "./dist/index.cjs",
38
+ "import": "./dist/index.js",
39
+ "types": "./dist/index.d.ts"
40
+ },
33
41
  "dependencies": {
34
42
  "bun-plugin-dts": "^0.3.0",
35
43
  "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
- }