Skip to content

Commit 59311f7

Browse files
committed
more cleanup
1 parent bf60761 commit 59311f7

File tree

7 files changed

+24
-72
lines changed

7 files changed

+24
-72
lines changed

apps/example-dapp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"typescript": "^5.9.2",
4848
"typescript-eslint": "^8.39.0",
4949
"vite": "^7.1.1",
50-
"vite-plugin-node-polyfills": "^0.22.0"
50+
"vite-plugin-node-polyfills": "^0.22.0",
51+
"vite-tsconfig-paths": "^5.1.4"
5152
}
5253
}

apps/example-dapp/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,8 @@
117117
body {
118118
@apply bg-background text-foreground;
119119
}
120+
button:not([disabled]),
121+
[role="button"]:not([disabled]) {
122+
@apply cursor-pointer;
123+
}
120124
}

apps/example-dapp/tsconfig.app.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

apps/example-dapp/tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"files": [],
3-
"references": [
4-
{ "path": "./tsconfig.app.json" },
5-
{ "path": "./tsconfig.node.json" }
6-
],
2+
"extends": ["@macalinao/tsconfig/tsconfig.vite.json"],
73
"compilerOptions": {
4+
"rootDir": ".",
85
"baseUrl": ".",
96
"paths": {
7+
"~/*": ["./src/*"],
108
"@/*": ["./src/*"]
11-
}
12-
}
9+
},
10+
"esModuleInterop": true
11+
},
12+
"include": ["./vite.config.ts", "src/", "src/**/*.json"]
1313
}

apps/example-dapp/tsconfig.node.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

apps/example-dapp/vite.config.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
import path from "node:path";
1+
// @ts-expect-error something wrong with types here
22
import tailwindcss from "@tailwindcss/vite";
3+
// @ts-expect-error something wrong with types here
34
import { tanstackRouter } from "@tanstack/router-plugin/vite";
45
import react from "@vitejs/plugin-react";
56
import { defineConfig } from "vite";
67
import { nodePolyfills } from "vite-plugin-node-polyfills";
8+
import tsconfigPaths from "vite-tsconfig-paths";
79

810
// https://vite.dev/config/
911
export default defineConfig({
1012
plugins: [
13+
tsconfigPaths(),
1114
tanstackRouter({
1215
target: "react",
1316
autoCodeSplitting: true,
@@ -16,11 +19,6 @@ export default defineConfig({
1619
tailwindcss(),
1720
nodePolyfills(),
1821
],
19-
resolve: {
20-
alias: {
21-
"@": path.resolve(__dirname, "./src"),
22-
},
23-
},
2422
define: {
2523
"process.env": {},
2624
},

bun.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typescript-eslint": "^8.39.0",
6060
"vite": "^7.1.1",
6161
"vite-plugin-node-polyfills": "^0.22.0",
62+
"vite-tsconfig-paths": "^5.1.4",
6263
},
6364
},
6465
"packages/dataloader-es": {
@@ -1768,6 +1769,8 @@
17681769

17691770
"globby": ["[email protected]", "", { "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", "fast-glob": "^3.2.9", "ignore": "^5.2.0", "merge2": "^1.4.1", "slash": "^3.0.0" } }, "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g=="],
17701771

1772+
"globrex": ["[email protected]", "", {}, "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="],
1773+
17711774
"goober": ["[email protected]", "", { "peerDependencies": { "csstype": "^3.0.10" } }, "sha512-erjk19y1U33+XAMe1VTvIONHYoSqE4iS7BYUZfHaqeohLmnC0FdxEh7rQU+6MZ4OajItzjZFSRtVANrQwNq6/g=="],
17721775

17731776
"gopd": ["[email protected]", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
@@ -2646,6 +2649,8 @@
26462649

26472650
"ts-mixer": ["[email protected]", "", {}, "sha512-ufKpbmrugz5Aou4wcr5Wc1UUFWOLhq+Fm6qa6P0w0K5Qw2yhaUoiWszhCVuNQyNwrlGiscHOmqYoAox1PtvgjA=="],
26482651

2652+
"tsconfck": ["[email protected]", "", { "peerDependencies": { "typescript": "^5.0.0" }, "optionalPeers": ["typescript"], "bin": { "tsconfck": "bin/tsconfck.js" } }, "sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w=="],
2653+
26492654
"tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
26502655

26512656
"tsx": ["[email protected]", "", { "dependencies": { "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ=="],
@@ -2756,6 +2761,8 @@
27562761

27572762
"vite-plugin-node-polyfills": ["[email protected]", "", { "dependencies": { "@rollup/plugin-inject": "^5.0.5", "node-stdlib-browser": "^1.2.0" }, "peerDependencies": { "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" } }, "sha512-F+G3LjiGbG8QpbH9bZ//GSBr9i1InSTkaulfUHFa9jkLqVGORFBoqc2A/Yu5Mmh1kNAbiAeKeK+6aaQUf3x0JA=="],
27582763

2764+
"vite-tsconfig-paths": ["[email protected]", "", { "dependencies": { "debug": "^4.1.1", "globrex": "^0.1.2", "tsconfck": "^3.0.3" }, "peerDependencies": { "vite": "*" }, "optionalPeers": ["vite"] }, "sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w=="],
2765+
27592766
"vitest": ["[email protected]", "", { "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", "@vitest/mocker": "3.2.4", "@vitest/pretty-format": "^3.2.4", "@vitest/runner": "3.2.4", "@vitest/snapshot": "3.2.4", "@vitest/spy": "3.2.4", "@vitest/utils": "3.2.4", "chai": "^5.2.0", "debug": "^4.4.1", "expect-type": "^1.2.1", "magic-string": "^0.30.17", "pathe": "^2.0.3", "picomatch": "^4.0.2", "std-env": "^3.9.0", "tinybench": "^2.9.0", "tinyexec": "^0.3.2", "tinyglobby": "^0.2.14", "tinypool": "^1.1.1", "tinyrainbow": "^2.0.0", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", "vite-node": "3.2.4", "why-is-node-running": "^2.3.0" }, "peerDependencies": { "@edge-runtime/vm": "*", "@types/debug": "^4.1.12", "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "@vitest/browser": "3.2.4", "@vitest/ui": "3.2.4", "happy-dom": "*", "jsdom": "*" }, "optionalPeers": ["@edge-runtime/vm", "@types/debug", "@types/node", "@vitest/browser", "@vitest/ui", "happy-dom", "jsdom"], "bin": { "vitest": "vitest.mjs" } }, "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A=="],
27602767

27612768
"vlq": ["[email protected]", "", {}, "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w=="],

0 commit comments

Comments
 (0)