Skip to content

Commit 8f71136

Browse files
committed
chore: Emit type definitions
1 parent f76c55e commit 8f71136

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import pluginV3 = require("./protos/plugin/v3/plugin");
2+
import discovery1 = require("./protos/discovery/v1/discovery");
3+
4+
export { pluginV3, discovery1 };

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "@cloudquery/plugin-pb-js",
33
"version": "0.0.1",
4-
"files": [],
4+
"files": [
5+
"dist"
6+
],
57
"scripts": {
68
"proto-clone": "git clone https://github.com/cloudquery/plugin-pb",
79
"proto-prepare": "cd plugin-pb && git pull && cd .. && rm -rf ./protos && mkdir -p ./protos/plugin/v3 && mkdir -p ./protos/discovery/v1 && cp -r ./plugin-pb/plugin/v3/* ./protos/plugin/v3 && cp -r ./plugin-pb/discovery/v1/* ./protos/discovery/v1",

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "@tsconfig/node16/tsconfig.json",
33
"compilerOptions": {
4+
"allowJs": true,
5+
"declaration": true,
46
"outDir": "dist"
57
}
68
}

0 commit comments

Comments
 (0)