fix(create): install types for JS template as well (#7078)

This commit is contained in:
Joshua Chen 2022-03-31 15:49:07 +08:00 committed by GitHub
parent 949a72e6a5
commit ce2b631455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -13,6 +13,9 @@ const config = {
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name. organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name. projectName: 'docusaurus', // Usually your repo name.

View file

@ -22,6 +22,9 @@
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.18"
},
"browserslist": { "browserslist": {
"production": [ "production": [
">0.5%", ">0.5%",

View file

@ -18,6 +18,9 @@ const config = {
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name. organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name. projectName: 'docusaurus', // Usually your repo name.

View file

@ -16,8 +16,6 @@
"test": "tsc -p ." "test": "tsc -p ."
}, },
"dependencies": { "dependencies": {
"@docusaurus/react-loadable": "5.5.2",
"react-loadable": "npm:@docusaurus/react-loadable@5.5.2",
"commander": "^5.1.0", "commander": "^5.1.0",
"history": "^4.9.0", "history": "^4.9.0",
"joi": "^17.6.0", "joi": "^17.6.0",