@devtune/ai-traffic 0.1.2 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtune/ai-traffic",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "description": "Filtered edge-push sensor for DevTune AI Traffic.",
6
6
  "license": "UNLICENSED",
@@ -25,7 +25,7 @@
25
25
  "README.md"
26
26
  ],
27
27
  "scripts": {
28
- "build": "tsc -p tsconfig.build.json",
28
+ "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node -e \"require('node:fs').copyFileSync('cjs/package.json', 'dist/cjs/package.json')\" && pnpm --filter @devtune/ai-traffic-express-adapter build && pnpm --filter @devtune/ai-traffic-node-adapter build",
29
29
  "clean": "git clean -xdf .turbo node_modules dist",
30
30
  "format": "oxfmt --check \"**/*.{md,ts}\"",
31
31
  "format:fix": "oxfmt --write \"**/*.{md,ts}\"",
@@ -38,7 +38,20 @@
38
38
  ".": {
39
39
  "types": "./dist/index.d.ts",
40
40
  "import": "./dist/index.js",
41
+ "require": "./dist/cjs/index.js",
41
42
  "default": "./dist/index.js"
43
+ },
44
+ "./express": {
45
+ "types": "./dist/express.d.ts",
46
+ "import": "./dist/express.js",
47
+ "require": "./dist/cjs/express.js",
48
+ "default": "./dist/express.js"
49
+ },
50
+ "./node": {
51
+ "types": "./dist/node.d.ts",
52
+ "import": "./dist/node.js",
53
+ "require": "./dist/cjs/node.js",
54
+ "default": "./dist/node.js"
42
55
  }
43
56
  },
44
57
  "typesVersions": {