diff --git a/package.json b/package.json index c5a128d..b9ababd 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,15 @@ "version": "0.0.1", "private": true, "type": "module", + "imports": { + "#/*": [ + "./src/*", + "./src/*.ts", + "./src/*.tsx", + "./src/*/index.ts", + "./src/*/index.tsx" + ] + }, "scripts": { "dev": "vp dev", "build": "vp build", diff --git a/tsconfig.json b/tsconfig.json index e070a89..082a1a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,12 +13,7 @@ "target": "ES2022", "allowJs": true, "forceConsistentCasingInFileNames": true, - "paths": { - // See: - // https://github.com/mugnavo/tanstarter/pull/77 - // https://github.com/mugnavo/tanstarter/pull/76 - "#/*": ["./src/*"] - }, + "resolvePackageJsonImports": true, "noEmit": true, "strictNullChecks": true, "types": ["node", "vite/client"] diff --git a/vite.config.ts b/vite.config.ts index d75cd04..00c9728 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -115,9 +115,6 @@ export default defineConfig({ define: { __APP_VERSION__: JSON.stringify(version), }, - resolve: { - tsconfigPaths: true, - }, server: { port: 3000, },