Skip to content

Commit

Permalink
fix generating TypeScript type definitions (#236)
Browse files Browse the repository at this point in the history
* fix generating TypeScript type definitions

* revert 'types' script at root level
  • Loading branch information
endel authored Dec 31, 2023
1 parent 68ad6d6 commit 3a702fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
env:
BUILDARCH: ${{ matrix.arch }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run prebuild
run: npm run prebuild

# code is not ready... if anyone needs it, I am open for PR
# prebuild-cross:
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:

- name: Build types
if: needs.version-check.outputs.changed == 'true'
run: npm run types
run: npm run types

- run: npm publish --tag stable --workspace main --workspace transports/http3-quiche
if: ${{ needs.version-check.outputs.changed == 'true' && github.ref == 'refs/heads/master' }}
Expand Down
9 changes: 2 additions & 7 deletions main/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"compilerOptions": {
"outDir": "dist",
"rootDir": "../",
"outDir": "dist"
},
"extends": "../tsconfig.base.json",
"include": [
"lib",
"test",
"../transports/http3-quiche/lib"
],
"include": [ "lib" ],
"exclude": [
"test/testinone.js"
]
Expand Down
6 changes: 2 additions & 4 deletions transports/http3-quiche/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"compilerOptions": {
"outDir": "dist",
"rootDir": "../.."
"outDir": "dist"
},
"extends" : "../../tsconfig.base.json",
"include": [
"lib",
"../../main/lib"
"lib"
],
"references": [{ "path": "../../main" }]
}

0 comments on commit 3a702fb

Please sign in to comment.