Skip to content

Commit

Permalink
chore: have src/generated as a dedicated directory for generated prot…
Browse files Browse the repository at this point in the history
…o code
  • Loading branch information
danisharora099 committed Mar 11, 2024
1 parent dd7bf56 commit cda6702
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions packages/proto/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export * as proto_message from "./lib/message.js";
export { WakuMessage } from "./lib/filter.js";
export * as proto_message from "./generated/message.js";
export { WakuMessage } from "./generated/filter.js";

export * as proto_topic_only_message from "./lib/topic_only_message.js";
export { TopicOnlyMessage } from "./lib/topic_only_message.js";
export * as proto_topic_only_message from "./generated/topic_only_message.js";
export { TopicOnlyMessage } from "./generated/topic_only_message.js";

export * as proto_filter from "./lib/filter.js";
export * as proto_filter_v2 from "./lib/filter_v2.js";
export * as proto_filter from "./generated/filter.js";
export * as proto_filter_v2 from "./generated/filter_v2.js";

export * as proto_lightpush from "./lib/light_push.js";
export { PushResponse } from "./lib/light_push.js";
export * as proto_lightpush from "./generated/light_push.js";
export { PushResponse } from "./generated/light_push.js";

export * as proto_store from "./lib/store.js";
export * as proto_store from "./generated/store.js";

export * as proto_peer_exchange from "./lib/peer_exchange.js";
export * as proto_peer_exchange from "./generated/peer_exchange.js";

export * as proto_metadata from './lib/metadata.js'
export * as proto_metadata from './generated/metadata.js'
3 changes: 0 additions & 3 deletions packages/proto/tsconfig.dev.json

This file was deleted.

9 changes: 5 additions & 4 deletions packages/proto/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"compilerOptions": {
"outDir": "dist/",
"rootDir": "src",
"tsBuildInfoFile": "dist/.tsbuildinfo"
"tsBuildInfoFile": "dist/.tsbuildinfo",
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["src/**/*.spec.ts", "src/test_utils"]
}
"include": ["src/index.ts", "src/lib/**/*.proto"],
"exclude": ["src/generated/**/*.ts"]
}

0 comments on commit cda6702

Please sign in to comment.