Skip to content

Commit 39ae705

Browse files
pcarranzavmangas
andauthored
fix(dips): publish js files in the dips-proto npm package (#638)
* fix(dips): publish js files in the dips-proto npm package * fix: include protobuf dependency --------- Co-authored-by: Filipe Azevedo <[email protected]>
1 parent 454c925 commit 39ae705

File tree

3 files changed

+48
-7
lines changed

3 files changed

+48
-7
lines changed

crates/dips/package-lock.json

Lines changed: 23 additions & 3 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: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
{
22
"name": "@graphprotocol/dips-proto",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"main": "generated/index.js",
55
"types": "generated/index.d.ts",
66
"files": [
77
"proto/**/*.proto",
88
"generated/**/*"
99
],
1010
"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"
11+
"build": "tsc",
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+
"prepublishOnly": "npm run generate && npm run build"
1314
},
1415
"devDependencies": {
16+
"@types/node": "^22.13.4",
1517
"ts-proto": "^2.6.1",
1618
"typescript": "^5.7.3"
1719
},
1820
"publishConfig": {
1921
"access": "public"
22+
},
23+
"dependencies": {
24+
"@bufbuild/protobuf": "^2.2.3"
2025
}
21-
}
26+
}

crates/dips/tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2018",
4+
"module": "commonjs",
5+
"declaration": true,
6+
"outDir": "./generated",
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"lib": ["es2018", "dom"],
12+
"types": ["node"]
13+
},
14+
"include": ["generated/**/*"],
15+
"exclude": ["node_modules"]
16+
}

0 commit comments

Comments
 (0)