chore: upgrade to TS 4.7, compile with NodeNext (#7586)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Joshua Chen 2022-06-16 01:15:11 +08:00 committed by GitHub
parent b503523f66
commit b4d93b9bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 225 additions and 195 deletions

View file

@ -7,8 +7,14 @@
"*.css"
],
"exports": {
"./client": "./lib/client/index.js",
".": "./lib/index.js"
"./client": {
"types": "./lib/client/index.d.ts",
"default": "./lib/client/index.js"
},
".": {
"types": "./src/theme-search-algolia.d.ts",
"default": "./lib/index.js"
}
},
"types": "src/theme-search-algolia.d.ts",
"publishConfig": {

View file

@ -8,3 +8,13 @@
declare module '@docsearch/react/modal';
declare module '@docsearch/react/style';
// TODO incompatible declaration file
declare module 'eta' {
export const defaultConfig: object;
export function compile(
template: string,
options?: object,
): (data: object, config: object) => string;
}

View file

@ -5,7 +5,6 @@
"noEmit": false,
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"module": "commonjs",
"rootDir": "src",
"outDir": "lib"
},