Skip to content

Commit

Permalink
add tsconfigpaths for vite and config
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Aug 26, 2024
1 parent dd3141d commit db02d6c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
10 changes: 9 additions & 1 deletion packages/crdt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"],
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
Expand All @@ -31,5 +36,8 @@
"devDependencies": {
"@topology-foundation/object": "0.0.23-5",
"assemblyscript": "^0.27.29"
},
"dependencies": {
"vite-tsconfig-paths": "^5.0.1"
}
}
6 changes: 6 additions & 0 deletions packages/crdt/vite.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
plugins: [tsconfigPaths()],
});
42 changes: 42 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: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"skipLibCheck": true,
"stripInternal": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"paths": {
"@topology-foundation/*": ["packages/*"]
}
}
}

0 comments on commit db02d6c

Please sign in to comment.