Skip to content

Commit e491ff9

Browse files
committed
chore: add a package.json to publish the protobufs to ts
1 parent 52d6374 commit e491ff9

File tree

3 files changed

+135
-0
lines changed

3 files changed

+135
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ indexer.toml
1111
.vscode/
1212
# migrations/
1313
.helix
14+
15+
# Node.js related files
16+
crates/dips/node_modules/
17+
crates/dips/generated/
18+
crates/dips/npm-debug.log*

crates/dips/package-lock.json

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/dips/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "@graphprotocol/dips-proto",
3+
"version": "0.1.0",
4+
"main": "generated/index.js",
5+
"types": "generated/index.d.ts",
6+
"files": [
7+
"proto/**/*.proto",
8+
"generated/**/*"
9+
],
10+
"scripts": {
11+
"prepublishOnly": "npm run generate",
12+
"generate": "mkdir -p generated && protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./generated --proto_path=./proto proto/*.proto"
13+
},
14+
"devDependencies": {
15+
"ts-proto": "^2.6.1",
16+
"typescript": "^5.7.3"
17+
},
18+
"publishConfig": {
19+
"access": "public"
20+
}
21+
}

0 commit comments

Comments
 (0)