@photon-cli/flux 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.
Files changed (4) hide show
  1. package/bun.lock +195 -3
  2. package/dist/cli.js +81 -88533
  3. package/package.json +7 -6
  4. package/tsup.config.ts +14 -0
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@photon-cli/flux",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Flux CLI - Connect LangChain agents to iMessage",
5
- "type": "module",
6
- "main": "dist/cli.js",
5
+ "main": "dist/cli.cjs",
7
6
  "bin": {
8
- "flux": "./dist/cli.js"
7
+ "flux": "./dist/cli.cjs"
9
8
  },
10
9
  "scripts": {
11
10
  "flux": "bun src/cli.ts",
12
- "build": "printf '#!/usr/bin/env node\\n' > dist/cli.js && bun build src/cli.ts --target node >> dist/cli.js",
13
- "start": "bun dist/cli.js"
11
+ "build": "tsup",
12
+ "start": "node dist/cli.js"
14
13
  },
15
14
  "dependencies": {
16
15
  "@photon-ai/rapid": "^1.0.1",
@@ -19,6 +18,8 @@
19
18
  },
20
19
  "devDependencies": {
21
20
  "@types/bun": "latest",
21
+ "@types/node": "^20.10.0",
22
+ "tsup": "^8.0.1",
22
23
  "typescript": "^5.3.0"
23
24
  }
24
25
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig({
4
+ entry: ["src/cli.ts"],
5
+ format: ["cjs"],
6
+ target: "node18",
7
+ outDir: "dist",
8
+ clean: true,
9
+ banner: {
10
+ js: "#!/usr/bin/env node",
11
+ },
12
+ // Don't bundle grpc - it has native dependencies and CommonJS require() calls
13
+ external: ["@grpc/grpc-js", "nice-grpc", "nice-grpc-common"],
14
+ });