fix(react): host generate should include remotes.d.ts for server (#13710)

This commit is contained in:
Colum Ferry 2022-12-08 13:35:49 +00:00 committed by GitHub
parent bb32f024cb
commit 977ff7e21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"extends": "./tsconfig.app.json",
"compilerOptions": {
"outDir": "../../out-tsc/server",
"target": "es2019",
"types": [
"node"
]
},
"include": [
"src/remotes.d.ts",
"src/main.server.tsx",
"server.ts"
]
}

View File

@ -54,7 +54,7 @@ describe('hostGenerator', () => {
types: ['node'],
},
extends: './tsconfig.app.json',
include: ['src/main.server.tsx', 'server.ts'],
include: ['src/remotes.d.ts', 'src/main.server.tsx', 'server.ts'],
});
});
});