@bulwark-ai/gateway 0.1.1 → 0.1.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.
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bulwark-ai/gateway",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Enterprise AI governance gateway — PII detection, budget control, audit logging, RAG, multi-tenant, admin UI. Drop into any Node.js app.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  }
18
18
  },
19
19
  "scripts": {
20
- "build": "tsup src/index.ts --format cjs,esm --dts --clean",
21
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
20
+ "build": "tsup",
21
+ "dev": "tsup --watch",
22
22
  "test": "vitest run",
23
23
  "test:watch": "vitest",
24
24
  "lint": "tsc --noEmit"
package/tsup.config.ts ADDED
@@ -0,0 +1,37 @@
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig([
4
+ {
5
+ entry: ["src/index.ts"],
6
+ format: ["cjs"],
7
+ dts: true,
8
+ clean: true,
9
+ splitting: false,
10
+ external: [
11
+ "better-sqlite3",
12
+ "openai",
13
+ "@anthropic-ai/sdk",
14
+ "express",
15
+ "pg",
16
+ "uuid",
17
+ ],
18
+ },
19
+ {
20
+ entry: ["src/index.ts"],
21
+ format: ["esm"],
22
+ dts: false,
23
+ clean: false,
24
+ splitting: false,
25
+ external: [
26
+ "better-sqlite3",
27
+ "openai",
28
+ "@anthropic-ai/sdk",
29
+ "express",
30
+ "pg",
31
+ "uuid",
32
+ ],
33
+ banner: {
34
+ js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);",
35
+ },
36
+ },
37
+ ]);
Binary file