diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4eb4d764..27aa3a3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: lts/* - cache: 'pnpm' - name: Setup pnpm config shell: bash diff --git a/package.json b/package.json index ed92e9f5..ff64caa4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "description": "A TypeScript starter for Next.js that includes all you need to build amazing projects", "version": "1.0.0", "private": true, - "author": "João Pedro Schmitz (@jpedroschmitz)", + "type": "module", + "author": "João Pedro Schmitz (@jpedroschmitz)", "license": "MIT", "keywords": [ "nextjs", diff --git a/tsconfig.json b/tsconfig.json index 08237e03..74fd2675 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,30 +1,35 @@ { "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, + /* Base Options: */ "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", + "skipLibCheck": true, + "target": "es2022", + "allowJs": true, "resolveJsonModule": true, + "moduleDetection": "force", "isolatedModules": true, + + /* Strictness */ + "strict": true, + "noUncheckedIndexedAccess": true, + "checkJs": true, + + /* Bundled projects */ + "lib": ["dom", "dom.iterable", "es2022"], + "noEmit": true, + "module": "ESNext", + "moduleResolution": "Bundler", "jsx": "preserve", + "plugins": [{ "name": "next" }], "incremental": true, + + /* Path Aliases */ "baseUrl": ".", "paths": { "@/*": ["./src/*"], "@/public/*": ["./public/*"] - }, - "plugins": [ - { - "name": "next" - } - ] + } }, "exclude": ["node_modules"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"] + "include": [".eslintrc.mjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts"] }