diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90642523c..2dc161cd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,6 @@ concurrency: env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} - NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} jobs: test-and-publish: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2e3fa91be..8b6c28b42 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,7 +13,6 @@ concurrency: env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} - NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} jobs: test: diff --git a/examples/react/ui-libraries/src/index.tsx b/examples/react/ui-libraries/src/index.tsx index 77270641e..ab89e5db7 100644 --- a/examples/react/ui-libraries/src/index.tsx +++ b/examples/react/ui-libraries/src/index.tsx @@ -1,4 +1,3 @@ -import * as React from 'react' import { createRoot } from 'react-dom/client' import { createTheme } from '@mui/material/styles' import { red } from '@mui/material/colors' diff --git a/examples/react/ui-libraries/tsconfig.json b/examples/react/ui-libraries/tsconfig.json index c81ef9f38..fff230e4f 100644 --- a/examples/react/ui-libraries/tsconfig.json +++ b/examples/react/ui-libraries/tsconfig.json @@ -19,6 +19,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/examples/react/ui-libraries/tsconfig.node.json b/examples/react/ui-libraries/tsconfig.node.json deleted file mode 100644 index 42872c59f..000000000 --- a/examples/react/ui-libraries/tsconfig.node.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/examples/react/ui-libraries/vite-config.ts b/examples/react/ui-libraries/vite.config.ts similarity index 100% rename from examples/react/ui-libraries/vite-config.ts rename to examples/react/ui-libraries/vite.config.ts diff --git a/examples/solid/simple/tsconfig.json b/examples/solid/simple/tsconfig.json index 399995840..63d881e7c 100644 --- a/examples/solid/simple/tsconfig.json +++ b/examples/solid/simple/tsconfig.json @@ -21,6 +21,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/examples/solid/simple/tsconfig.node.json b/examples/solid/simple/tsconfig.node.json deleted file mode 100644 index 42872c59f..000000000 --- a/examples/solid/simple/tsconfig.node.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/examples/solid/valibot/tsconfig.json b/examples/solid/valibot/tsconfig.json index 399995840..63d881e7c 100644 --- a/examples/solid/valibot/tsconfig.json +++ b/examples/solid/valibot/tsconfig.json @@ -21,6 +21,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/examples/solid/valibot/tsconfig.node.json b/examples/solid/valibot/tsconfig.node.json deleted file mode 100644 index 42872c59f..000000000 --- a/examples/solid/valibot/tsconfig.node.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/examples/solid/yup/tsconfig.json b/examples/solid/yup/tsconfig.json index 399995840..63d881e7c 100644 --- a/examples/solid/yup/tsconfig.json +++ b/examples/solid/yup/tsconfig.json @@ -21,6 +21,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/examples/solid/yup/tsconfig.node.json b/examples/solid/yup/tsconfig.node.json deleted file mode 100644 index 42872c59f..000000000 --- a/examples/solid/yup/tsconfig.node.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/examples/solid/zod/tsconfig.json b/examples/solid/zod/tsconfig.json index 399995840..63d881e7c 100644 --- a/examples/solid/zod/tsconfig.json +++ b/examples/solid/zod/tsconfig.json @@ -21,6 +21,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/examples/solid/zod/tsconfig.node.json b/examples/solid/zod/tsconfig.node.json deleted file mode 100644 index 42872c59f..000000000 --- a/examples/solid/zod/tsconfig.node.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/examples/vue/simple/tsconfig.json b/examples/vue/simple/tsconfig.json index 7ca59bce5..f4133a17b 100644 --- a/examples/vue/simple/tsconfig.json +++ b/examples/vue/simple/tsconfig.json @@ -1,15 +1,24 @@ { "compilerOptions": { - "target": "esnext", - "module": "esnext", - "moduleResolution": "node", - "strict": true, - "jsx": "preserve", - "sourceMap": true, + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, "resolveJsonModule": true, - "esModuleInterop": true, - "lib": ["esnext", "dom"], - "types": ["vite/client"] + "isolatedModules": true, + "noEmit": true, + "jsx": "preserve", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"] } diff --git a/examples/vue/valibot/tsconfig.json b/examples/vue/valibot/tsconfig.json index 7ca59bce5..f4133a17b 100644 --- a/examples/vue/valibot/tsconfig.json +++ b/examples/vue/valibot/tsconfig.json @@ -1,15 +1,24 @@ { "compilerOptions": { - "target": "esnext", - "module": "esnext", - "moduleResolution": "node", - "strict": true, - "jsx": "preserve", - "sourceMap": true, + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, "resolveJsonModule": true, - "esModuleInterop": true, - "lib": ["esnext", "dom"], - "types": ["vite/client"] + "isolatedModules": true, + "noEmit": true, + "jsx": "preserve", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"] } diff --git a/examples/vue/yup/tsconfig.json b/examples/vue/yup/tsconfig.json index 7ca59bce5..f4133a17b 100644 --- a/examples/vue/yup/tsconfig.json +++ b/examples/vue/yup/tsconfig.json @@ -1,15 +1,24 @@ { "compilerOptions": { - "target": "esnext", - "module": "esnext", - "moduleResolution": "node", - "strict": true, - "jsx": "preserve", - "sourceMap": true, + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, "resolveJsonModule": true, - "esModuleInterop": true, - "lib": ["esnext", "dom"], - "types": ["vite/client"] + "isolatedModules": true, + "noEmit": true, + "jsx": "preserve", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"] } diff --git a/examples/vue/zod/tsconfig.json b/examples/vue/zod/tsconfig.json index 7ca59bce5..f4133a17b 100644 --- a/examples/vue/zod/tsconfig.json +++ b/examples/vue/zod/tsconfig.json @@ -1,15 +1,24 @@ { "compilerOptions": { - "target": "esnext", - "module": "esnext", - "moduleResolution": "node", - "strict": true, - "jsx": "preserve", - "sourceMap": true, + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, "resolveJsonModule": true, - "esModuleInterop": true, - "lib": ["esnext", "dom"], - "types": ["vite/client"] + "isolatedModules": true, + "noEmit": true, + "jsx": "preserve", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"] } diff --git a/package.json b/package.json index e0b01f260..598fd9762 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm", "install:csb": "corepack enable && pnpm install --frozen-lockfile", "test": "pnpm run test:ci", - "test:pr": "nx affected --targets=test:format,test:eslint,test:lib,test:types,build,test:build --exclude=examples/**", - "test:ci": "nx run-many --targets=test:format,test:eslint,test:lib,test:types,build,test:build --exclude=examples/**", + "test:pr": "nx affected --targets=test:format,test:eslint,test:lib,test:types,test:build,build", + "test:ci": "nx run-many --targets=test:format,test:eslint,test:lib,test:types,test:build,build", "test:eslint": "nx affected --target=test:eslint", "test:format": "pnpm run prettier --check", "test:lib": "nx affected --target=test:lib --exclude=examples/**",