From bc3f13202e070d036200e836693882dfa85fd3e8 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Thu, 19 Dec 2024 18:40:31 -0300 Subject: [PATCH] Fluxos diversos --- package.json | 3 +-- tsconfig.json | 3 +-- tsconfig.node.json | 18 +++--------------- vite.config.ts | 3 ++- 4 files changed, 7 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 328ba2a..b50cf47 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ "preview": "vite preview", "typecheck": "tsc --noEmit", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "format": "prettier --write \"src/**/*.{ts,tsx}\"", - "postinstall": "npm run build" + "format": "prettier --write \"src/**/*.{ts,tsx}\"" }, "dependencies": { "@supabase/supabase-js": "^2.39.7", diff --git a/tsconfig.json b/tsconfig.json index 5413626..fc84e35 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,6 +20,5 @@ "@/*": ["src/*"] } }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src"] } diff --git a/tsconfig.node.json b/tsconfig.node.json index 0d3d714..42872c5 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,22 +1,10 @@ { "compilerOptions": { - "target": "ES2022", - "lib": ["ES2023"], - "module": "ESNext", + "composite": true, "skipLibCheck": true, - - /* Bundler mode */ + "module": "ESNext", "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "isolatedModules": true, - "moduleDetection": "force", - "noEmit": true, - - /* Linting */ - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "allowSyntheticDefaultImports": true }, "include": ["vite.config.ts"] } diff --git a/vite.config.ts b/vite.config.ts index 42438c1..1f9f91a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,7 +21,8 @@ export default defineConfig({ }, resolve: { alias: { - 'node-fetch': 'isomorphic-fetch' + 'node-fetch': 'isomorphic-fetch', + '@': path.resolve(__dirname, './src') }, extensions: ['.js', '.jsx', '.ts', '.tsx'] }