diff --git a/packages/generator-cli/package.json b/packages/generator-cli/package.json index dce9936900..ce832aa4f9 100644 --- a/packages/generator-cli/package.json +++ b/packages/generator-cli/package.json @@ -25,6 +25,7 @@ }, "devDependencies": { "@fern-api/fs-utils": "0.15.0-rc63", + "@fern-platform/configs": "workspace:*", "@types/jest": "^29.5.11", "@types/lodash-es": "^4.17.12", "@types/node": "^18.7.18", diff --git a/packages/generator-cli/tsconfig.json b/packages/generator-cli/tsconfig.json index d5b589bc72..14672d9799 100644 --- a/packages/generator-cli/tsconfig.json +++ b/packages/generator-cli/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../shared/tsconfig.shared.json", + "extends": "@fern-platform/configs/tsconfig/library.json", "compilerOptions": { "composite": true, "outDir": "dist", "rootDir": "." }, "include": ["./src/**/*"] } diff --git a/packages/healthchecks/package.json b/packages/healthchecks/package.json index 99e67b3a14..b85e125c99 100644 --- a/packages/healthchecks/package.json +++ b/packages/healthchecks/package.json @@ -34,6 +34,7 @@ "devDependencies": { "@fern-api/fdr-sdk": "workspace:*", "@fern-fern/vercel": "0.0.7", + "@fern-platform/configs": "workspace:*", "@types/jest": "^29.5.11", "@types/node": "^18.7.18", "@types/yargs": "^17.0.32", diff --git a/packages/healthchecks/tsconfig.json b/packages/healthchecks/tsconfig.json index d5b589bc72..14672d9799 100644 --- a/packages/healthchecks/tsconfig.json +++ b/packages/healthchecks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../shared/tsconfig.shared.json", + "extends": "@fern-platform/configs/tsconfig/library.json", "compilerOptions": { "composite": true, "outDir": "dist", "rootDir": "." }, "include": ["./src/**/*"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4fbad4a970..90bf7271d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -700,6 +700,9 @@ importers: '@fern-api/fs-utils': specifier: 0.15.0-rc63 version: 0.15.0-rc63 + '@fern-platform/configs': + specifier: workspace:* + version: link:../configs '@types/jest': specifier: ^29.5.11 version: 29.5.12 @@ -757,6 +760,9 @@ importers: '@fern-fern/vercel': specifier: 0.0.7 version: 0.0.7 + '@fern-platform/configs': + specifier: workspace:* + version: link:../configs '@types/jest': specifier: ^29.5.11 version: 29.5.12 diff --git a/shared/tsconfig.shared.json b/shared/tsconfig.shared.json deleted file mode 100644 index 238cc0e15e..0000000000 --- a/shared/tsconfig.shared.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "compilerOptions": { - "module": "esnext", - "target": "esnext", - "lib": ["dom", "dom.iterable", "esnext"], - "jsx": "react-jsx", - "moduleResolution": "node", - "resolveJsonModule": true, - "noImplicitAny": true, - "noImplicitThis": true, - "skipLibCheck": true, - "noFallthroughCasesInSwitch": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "isolatedModules": true, - "baseUrl": ".", - "declaration": true, - "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "plugins": [ - { - "name": "typescript-plugin-css-modules", - "options": { - "classnameTransform": "dashesOnly" - } - } - ] - } -} diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json deleted file mode 100644 index deb9ee1f16..0000000000 --- a/tsconfig.eslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./shared/tsconfig.shared.json", - "compilerOptions": { - "types": ["@types/node"], - "noEmit": true - } -} diff --git a/tsconfig.json b/tsconfig.json index 3b4a71d47e..4238741191 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,3 @@ { - "extends": "./shared/tsconfig.shared.json", - "ts-node": { - "compilerOptions": { - "module": "CommonJS" - } - } + "extends": "./packages/configs/tsconfig/base.json" }