Skip to content

Commit

Permalink
chore(v2): bump deps and run yarn upgrade (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored Nov 24, 2019
1 parent 163c455 commit 05a2f46
Show file tree
Hide file tree
Showing 7 changed files with 1,122 additions and 1,926 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4",
"@babel/plugin-proposal-optional-chaining": "^7.7.4",
"@babel/preset-typescript": "^7.7.4",
"@types/express": "^4.17.1",
"@types/express": "^4.17.2",
"@types/fs-extra": "^8.0.1",
"@types/inquirer": "^6.5.0",
"@types/jest": "^24.0.22",
"@types/jest": "^24.0.23",
"@types/loader-utils": "^1.1.3",
"@types/lodash": "^4.14.145",
"@types/lodash": "^4.14.149",
"@types/lodash.kebabcase": "^4.1.6",
"@types/node": "^12.12.11",
"@types/react": "^16.9.11",
"@types/react": "^16.9.13",
"@types/react-dev-utils": "^9.0.1",
"@types/semver": "^6.2.0",
"@types/shelljs": "^0.8.6",
"@types/webpack": "^4.32.0",
"@types/webpack-dev-server": "^3.1.5",
"@types/webpack": "^4.41.0",
"@types/webpack-dev-server": "^3.4.0",
"@types/webpack-merge": "^4.1.5",
"babel-eslint": "^10.0.3",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"eslint": "^6.6.0",
"eslint": "^6.7.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-header": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-mdx-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"remark-emoji": "^2.0.2",
"remark-slug": "^5.1.2",
"stringify-object": "^3.3.0",
"unist-util-visit": "^2.0.0"
"unist-util-visit": "^2.0.1"
},
"devDependencies": {
"remark": "^11.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-ideal-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"dependencies": {
"@endiliey/lqip-loader": "^3.0.2",
"@endiliey/react-ideal-image": "^0.0.10",
"@endiliey/react-ideal-image": "^0.0.11",
"@endiliey/responsive-loader": "^1.3.2",
"react-waypoint": "^9.0.2",
"sharp": "^0.22.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"license": "MIT",
"dependencies": {
"@types/webpack": "^4.32.0",
"@types/webpack": "^4.41.0",
"commander": "^4.0.1",
"querystring": "0.2.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"core-js": "^2.6.5",
"css-loader": "^3.2.0",
"del": "^5.1.0",
"ejs": "^2.7.4",
"ejs": "^3.0.1",
"express": "^4.17.1",
"fs-extra": "^8.1.0",
"globby": "^10.0.1",
Expand Down Expand Up @@ -80,7 +80,7 @@
"wait-file": "^1.0.5",
"webpack": "^4.41.2",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-dev-server": "^3.8.2",
"webpack-dev-server": "^3.9.0",
"webpack-merge": "^4.2.2",
"webpackbar": "^4.0.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/docusaurus/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ export async function build(
await compile([clientConfig, serverConfig]);

// Remove server.bundle.js because it is useless
if (serverConfig.output && serverConfig.output.filename) {
if (
serverConfig.output &&
serverConfig.output.filename &&
typeof serverConfig.output.filename === 'string'
) {
const serverBundle = path.join(outDir, serverConfig.output.filename);
fs.pathExists(serverBundle).then(exist => {
exist && fs.unlink(serverBundle);
Expand Down
Loading

0 comments on commit 05a2f46

Please sign in to comment.