diff --git a/.npmrc b/.npmrc index 0b634b898..308555701 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ auto-install-peers=true git-checks=false +node-linker=hoisted diff --git a/packages/plugins/trpc/src/project.ts b/packages/plugins/trpc/src/project.ts index 0a87ba912..2f1ea4c0f 100644 --- a/packages/plugins/trpc/src/project.ts +++ b/packages/plugins/trpc/src/project.ts @@ -6,6 +6,7 @@ const compilerOptions: CompilerOptions = { emitDecoratorMetadata: true, experimentalDecorators: true, esModuleInterop: true, + skipLibCheck: true, }; export const project = new Project({ diff --git a/packages/schema/tests/generator/expression-writer.test.ts b/packages/schema/tests/generator/expression-writer.test.ts index 63254047f..af7cf576c 100644 --- a/packages/schema/tests/generator/expression-writer.test.ts +++ b/packages/schema/tests/generator/expression-writer.test.ts @@ -1332,7 +1332,9 @@ async function check(schema: string, getExpr: (model: DataModel) => Expression, const model = await loadModel(schema); const expr = getExpr(model.declarations.find((d) => isDataModel(d) && d.name === 'Test') as DataModel); - const project = new Project(); + const project = new Project({ + compilerOptions: { skipLibCheck: true }, + }); const { name: sourcePath } = tmp.fileSync({ postfix: '.ts' }); const sf = project.createSourceFile(sourcePath, undefined, {