Skip to content

Commit 5b437d9

Browse files
authored
fix: use pnpm host mode to resolve tsc compatibility issues (#1613)
1 parent c7e7406 commit 5b437d9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
auto-install-peers=true
22
git-checks=false
3+
node-linker=hoisted

packages/plugins/trpc/src/project.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const compilerOptions: CompilerOptions = {
66
emitDecoratorMetadata: true,
77
experimentalDecorators: true,
88
esModuleInterop: true,
9+
skipLibCheck: true,
910
};
1011

1112
export const project = new Project({

packages/schema/tests/generator/expression-writer.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,9 @@ async function check(schema: string, getExpr: (model: DataModel) => Expression,
13321332
const model = await loadModel(schema);
13331333
const expr = getExpr(model.declarations.find((d) => isDataModel(d) && d.name === 'Test') as DataModel);
13341334

1335-
const project = new Project();
1335+
const project = new Project({
1336+
compilerOptions: { skipLibCheck: true },
1337+
});
13361338

13371339
const { name: sourcePath } = tmp.fileSync({ postfix: '.ts' });
13381340
const sf = project.createSourceFile(sourcePath, undefined, {

0 commit comments

Comments
 (0)