Skip to content

Commit

Permalink
fix: install cheerio types
Browse files Browse the repository at this point in the history
  • Loading branch information
chernodub committed Apr 25, 2022
1 parent 0b61adc commit 0a45f41
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@docusaurus/utils": "^2.0.0-beta.4",
"@docusaurus/utils-validation": "^2.0.0-beta.4",
"@easyops-cn/autocomplete.js": "^0.38.1",
"@node-rs/jieba": "^1.6.0",
"cheerio": "^1.0.0-rc.3",
"clsx": "^1.1.1",
"debug": "^4.2.0",
Expand All @@ -37,8 +38,7 @@
"lunr": "^2.3.9",
"lunr-languages": "^1.4.0",
"mark.js": "^8.11.1",
"tslib": "^2.2.0",
"@node-rs/jieba": "^1.6.0"
"tslib": "^2.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.3",
Expand All @@ -47,6 +47,7 @@
"@babel/preset-typescript": "^7.12.1",
"@docusaurus/module-type-aliases": "^2.0.0-beta.4",
"@tsconfig/docusaurus": "^1.0.2",
"@types/cheerio": "^0.22.31",
"@types/debug": "^4.1.5",
"@types/enzyme": "^3.10.7",
"@types/enzyme-adapter-react-16": "^1.0.6",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"module": "CommonJS",
"target": "ES6",
"outDir": "dist/server"
"outDir": "dist/server",
"types": ["cheerio"]
},
"exclude": ["**/*.spec.ts", "src/client"]
}
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,13 @@
dependencies:
"@types/node" "*"

"@types/cheerio@^0.22.31":
version "0.22.31"
resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.31.tgz#b8538100653d6bb1b08a1e46dec75b4f2a5d5eb6"
integrity sha512-Kt7Cdjjdi2XWSfrZ53v4Of0wG3ZcmaegFXjMmz9tfNrZSkzzo36G0AL1YqSdcIA78Etjt6E609pt5h1xnQkPUw==
dependencies:
"@types/node" "*"

"@types/debug@^4.1.5":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd"
Expand Down

0 comments on commit 0a45f41

Please sign in to comment.