diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 4d25c3c48d..7441049e4f 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -7,10 +7,7 @@ "allowSyntheticDefaultImports": true, "emitDeclarationOnly": false, "noEmit": false, - "target": "esnext", - "module": "esnext", - "esModuleInterop": true, - "moduleResolution": "node" + "esModuleInterop": true }, "rootDir": "./src", "include": ["./src/", "./declarations.d.ts"] diff --git a/tsconfig.json b/tsconfig.json index ac988d0e5e..dd15a843ea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,9 @@ // see https://www.typescriptlang.org/tsconfig to better understand tsconfigs // "exclude": ["src/components/*.test.tsx", "src/components/*.stories.tsx"], "compilerOptions": { - "target": "es2020", - "module": "es2020", - + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", // This allows our files to use window. Should be removed when RSC is added "lib": ["dom", "esnext", "DOM.Iterable"], "importHelpers": true, @@ -15,8 +15,6 @@ // match output dir to input dir. e.g. dist/index instead of dist/src/index // stricter type-checking for stronger correctness. Recommended by TS "strict": true, - // use Node's module resolution algorithm, instead of the legacy TS one - "moduleResolution": "node", // transpile JSX to React.createElement "jsx": "react-jsx", // interop between ESM and CJS modules. Recommended by TS