Skip to content

Commit 8b72abc

Browse files
authored
Merge pull request #243 from code0-tech/fix/ts-tooling
Fix ts tooling ... again
2 parents dee7296 + b17d9da commit 8b72abc

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,6 @@ jobs:
7171
run: npm ci
7272
- name: Generate ts
7373
run: npm run generate
74+
- name: Compile helpers
75+
run: npm run build
7476

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ jobs:
9393
run: npm ci
9494
- name: Generate ts
9595
run: npm run generate
96+
- name: Compile helpers
97+
run: npm run build
9698
- name: Set version
9799
run: npm version ${{ github.ref_name }} --git-tag-version=false
98100
- name: Publish package

build/ts/helpers/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "./shared.struct_helper";
1+
export * from "./shared.struct_helper.js";

build/ts/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
"type": "module",
1616
"main": "index.js",
1717
"scripts": {
18+
"build": "tsc -p tsconfig.json",
1819
"generate:aquila": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/aquila --proto_path=../../proto/shared ../../proto/aquila/*.proto",
1920
"generate:sagittarius": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/sagittarius --proto_path=../../proto/shared ../../proto/sagittarius/*.proto",
2021
"generate:shared": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/shared ../../proto/shared/*.proto",
21-
"generate": "npm run generate:shared && npm run generate:sagittarius && npm run generate:aquila && npm run generate:exports",
22-
"generate:exports": "node scripts/generateExports.mjs"
22+
"generate": "npm run clean && npm run generate:shared && npm run generate:sagittarius && npm run generate:aquila && npm run generate:exports",
23+
"generate:exports": "node scripts/generateExports.mjs",
24+
"clean": "rm -rf pb/_generated/*.js && rm -rf pb/_generated/*.ts && rm -rf helpers/*.js"
2325
},
2426
"devDependencies": {
2527
"@protobuf-ts/plugin": "^2.11.1",

build/ts/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "ES2020",
44
"lib": ["ES2017", "DOM"],
55
"module": "commonjs",
6-
"strict": true
7-
}
6+
"strict": true,
7+
},
8+
"include": ["helpers"]
89
}

0 commit comments

Comments
 (0)