@miteradar/contracts 1.0.6 → 1.1.0

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.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from './proto';
2
- export * from './gen';
package/dist/index.js CHANGED
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./proto"), exports);
18
- __exportStar(require("./gen"), exports);
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROTO_PATHS = void 0;
4
4
  const node_path_1 = require("node:path");
5
5
  exports.PROTO_PATHS = {
6
- AUTH: (0, node_path_1.join)(__dirname, '../../proto/auth.proto'),
7
- BITE: (0, node_path_1.join)(__dirname, '../../proto/bite.proto')
6
+ AUTH: (0, node_path_1.join)(__dirname, './contracts/auth.proto'),
7
+ BITE: (0, node_path_1.join)(__dirname, './contracts/bite.proto')
8
8
  };
package/package.json CHANGED
@@ -1,21 +1,16 @@
1
1
  {
2
2
  "name": "@miteradar/contracts",
3
- "version": "1.0.6",
3
+ "version": "1.1.0",
4
4
  "description": "Protobuf definitions and generated ts types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
- "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./src/gen --ts_proto_opt=nestJs=true,package=omit",
9
- "build": "tsc -p tsconfig.build.json"
8
+ "generate": "mkdir -p ./lib/gen && protoc -I ./lib/proto/contracts ./lib/proto/contracts/*.proto --ts_proto_out=./lib/gen --ts_proto_opt=nestJs=true,package=omit",
9
+ "build": "tsc -p tsconfig.build.json && npx cpy 'lib/proto/**/*.proto' 'dist/proto' --parents"
10
10
  },
11
11
  "files": [
12
- "proto",
13
12
  "dist"
14
13
  ],
15
- "exports": {
16
- ".": "./dist/index.js",
17
- "./gen/*": "./dist/gen/*"
18
- },
19
14
  "publishConfig": {
20
15
  "access": "public"
21
16
  },
@@ -26,6 +21,7 @@
26
21
  },
27
22
  "devDependencies": {
28
23
  "@types/node": "^25.6.0",
24
+ "cpy-cli": "^7.0.0",
29
25
  "typescript": "^5.9.3"
30
26
  }
31
27
  }
@@ -1 +0,0 @@
1
- export * from './auth';
package/dist/gen/index.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./auth"), exports);
File without changes
File without changes