Skip to content

Commit

Permalink
Enable absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoguerios committed Dec 20, 2023
1 parent 841f8ed commit 36b7530
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"files": ["dist/"],
"files": [
"dist/"
],
"scripts": {
"build": "tsup",
"format": "rome format .",
Expand Down Expand Up @@ -45,6 +47,7 @@
"tsup": "^6.6.0",
"typescript": "^5.0.4",
"vite": "^4.4.2",
"vite-tsconfig-paths": "^4.2.2",
"vitest": "^0.34.6"
},
"packageManager": "^[email protected]",
Expand Down
37 changes: 37 additions & 0 deletions pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"types": ["vitest/globals", "vite/client"],
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"@balancer/sdk": ["src/index.ts"]
},
}
}
2 changes: 2 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vitest/config';
import { loadEnv } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
Expand All @@ -25,5 +26,6 @@ export default defineConfig(({ mode }) => {
// Uncomment to run integration tests sequentially
// threads: false,
},
plugins: [tsconfigPaths()],
};
});

0 comments on commit 36b7530

Please sign in to comment.