diff --git a/packages/docusaurus-init/templates/classic/package.json b/packages/docusaurus-init/templates/classic/package.json index d44372bf5d24..f5a5e12600d6 100644 --- a/packages/docusaurus-init/templates/classic/package.json +++ b/packages/docusaurus-init/templates/classic/package.json @@ -8,7 +8,8 @@ "build": "docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", - "serve": "docusaurus serve" + "serve": "docusaurus serve", + "clear": "docusaurus clear" }, "dependencies": { "@docusaurus/core": "2.0.0-alpha.66", @@ -20,7 +21,7 @@ }, "browserslist": { "production": [ - ">0.2%", + ">0.5%", "not dead", "not op_mini all" ], diff --git a/packages/docusaurus-init/templates/facebook/package.json b/packages/docusaurus-init/templates/facebook/package.json index b1bad56e223d..f1545050fde1 100644 --- a/packages/docusaurus-init/templates/facebook/package.json +++ b/packages/docusaurus-init/templates/facebook/package.json @@ -9,6 +9,7 @@ "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "serve": "docusaurus serve", + "clear": "docusaurus clear", "ci": "yarn lint && yarn prettier:diff", "lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"", "prettier": "prettier --config .prettierrc --write \"**/*.{js,md}\"", @@ -37,7 +38,7 @@ }, "browserslist": { "production": [ - ">0.2%", + ">0.5%", "not dead", "not op_mini all" ], diff --git a/website/docs/guides/migrating-from-v1-to-v2.md b/website/docs/guides/migrating-from-v1-to-v2.md index 5ade15cbb94e..350d9fec5104 100644 --- a/website/docs/guides/migrating-from-v1-to-v2.md +++ b/website/docs/guides/migrating-from-v1-to-v2.md @@ -104,20 +104,23 @@ A typical Docusaurus 2 `package.json` may look like this: ```json title="package.json" { "scripts": { + "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy" + "deploy": "docusaurus deploy", + "serve": "docusaurus serve", + "clear": "docusaurus clear" }, "dependencies": { - "@docusaurus/core": "^2.0.0-alpha.40", - "@docusaurus/preset-classic": "^2.0.0-alpha.40", + "@docusaurus/core": "^2.0.0-alpha.66", + "@docusaurus/preset-classic": "^2.0.0-alpha.66", "clsx": "^1.1.1", - "react": "^16.10.2", - "react-dom": "^16.10.2" + "react": "^16.8.4", + "react-dom": "^16.8.4" }, "browserslist": { - "production": [">0.2%", "not dead", "not op_mini all"], + "production": [">0.5%", "not dead", "not op_mini all"], "development": [ "last 1 chrome version", "last 1 firefox version", diff --git a/website/package.json b/website/package.json index 87c7997b0d2e..a17f398d7284 100644 --- a/website/package.json +++ b/website/package.json @@ -42,7 +42,7 @@ }, "browserslist": { "production": [ - ">0.2%", + ">0.5%", "not dead", "not op_mini all" ],