Skip to content

Commit

Permalink
fix: resolve tsconfig paths when building declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
devniel committed Aug 18, 2024
1 parent 17ee0ab commit ac7e2e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 4 additions & 2 deletions packages/clap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "Types and helpers to manipulate .clap files",
"scripts": {
"build": "bun build ./src/index.ts --outfile=dist/index.js --external=yaml && bun run build:declaration",
"build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
"build:declaration": "tspc --emitDeclarationOnly --project tsconfig.types.json",
"postbuild": "rimraf tsconfig.types.tsbuildinfo && bun run build:declaration",
"publish": "npm publish --access public"
},
Expand All @@ -23,7 +23,9 @@
"yaml": "^2.5.0"
},
"dependencies": {
"pure-uuid": "^1.8.1"
"pure-uuid": "^1.8.1",
"ts-patch": "^3.2.1",
"typescript-transform-paths": "^3.4.11"
},
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions packages/clap/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"declaration": true,
"outDir": "./dist",
"rootDir": "./src",
"plugins": [{ "transform": "typescript-transform-paths", "afterDeclarations": true }]
},
"include": [
"src/**/*.ts"
]
"include": ["src/**/*.ts"]
}

0 comments on commit ac7e2e3

Please sign in to comment.