Skip to content

Commit

Permalink
Fix paths with tsc-alias
Browse files Browse the repository at this point in the history
  • Loading branch information
t4t5 committed Dec 16, 2024
1 parent b361072 commit 5735c5d
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 4 deletions.
171 changes: 169 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ordiscan",
"version": "0.1.3",
"version": "0.1.4",
"description": "TypeScript client for the Ordiscan API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -9,7 +9,7 @@
"README.md"
],
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"test": "vitest",
"prepublishOnly": "npm run build",
"prepare": "husky"
Expand Down Expand Up @@ -42,6 +42,7 @@
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"nock": "^14.0.0-beta.18",
"tsc-alias": "^1.8.10",
"typescript": "^4.9.0",
"vitest": "^2.1.6"
},
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { Ordiscan } from "@/client";

export { Ordiscan } from "@/client";

export default Ordiscan;

export { OrdiscanError } from "@/types";

export type { OrdiscanConfig } from "@/types";
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"outDir": "./dist",
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
Expand Down

0 comments on commit 5735c5d

Please sign in to comment.