Skip to content

Commit

Permalink
fix(deps): bump all (dev)Dependencies, remove named flag for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 25, 2019
1 parent eb0c2d7 commit d1c0381
Show file tree
Hide file tree
Showing 14 changed files with 409 additions and 460 deletions.
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"scripts": {
"build": "lerna run build && run-s build:ts build:r build:w",
"build:r": "ts-node --files packages/rollup/src/cli -e named --exclude utils,webpack-* -p",
"build:r": "ts-node --files packages/rollup/src/cli --exclude utils,webpack-* -p",
"build:ts": "tsc -b",
"build:w": "rimraf dist && run-p build:w:*",
"build:w:angular": "yarn w:build -e src/angular -o dist/angular -t angular -p",
Expand Down Expand Up @@ -61,25 +61,26 @@
"@types/cross-spawn": "^6.0.1",
"@types/debug": "^4.1.5",
"@types/friendly-errors-webpack-plugin": "^0.1.2",
"@types/imagemin": "^7.0.0",
"@types/is-glob": "^4.0.1",
"@types/jest": "^24.0.23",
"@types/jest": "^24.0.24",
"@types/lodash": "^4.14.149",
"@types/micromatch": "^3.1.1",
"@types/mini-css-extract-plugin": "^0.8.0",
"@types/node": "^12.12.17",
"@types/mini-css-extract-plugin": "^0.9.0",
"@types/node": "^13.1.0",
"@types/postcss-load-config": "^2.0.1",
"@types/prettier": "^1.19.0",
"@types/react": "^16.9.16",
"@types/react": "^16.9.17",
"@types/react-dom": "^16.9.4",
"@types/resolve": "^0.0.8",
"@types/resolve": "^1.14.0",
"@types/rollup-plugin-postcss": "^2.0.0",
"@types/rollup__plugin-url": "npm:@types/rollup-plugin-url",
"@types/webpack": "^4.41.0",
"@types/webpack-dev-server": "^3.9.0",
"@types/webpack-env": "^1.14.1",
"@types/workbox-webpack-plugin": "^4.1.0",
"commander": "^4.0.1",
"core-js": "^3.4.8",
"core-js": "^3.6.1",
"fbjs": "^1.0.0",
"is-glob": "^4.0.1",
"jest": "^24.9.0",
Expand All @@ -93,22 +94,22 @@
"rimraf": "^3.0.0",
"rxjs": "^6.5.3",
"serve": "^11.2.0",
"svelte": "^3.16.3",
"svelte": "^3.16.7",
"tiny-glob": "^0.2.6",
"ts-jest": "^24.2.0",
"ts-node": "^8.5.4",
"tslint": "^5.20.1",
"type-coverage": "^2.3.1",
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10",
"vue": "^2.6.11",
"vue-template-compiler": "^2.6.11",
"yarn-deduplicate": "^1.1.1",
"zone.js": "^0.10.2"
},
"resolutions": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"eslint-plugin-prettier": "^3.1.1",
"rollup": "^1.27.9",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"eslint-plugin-prettier": "^3.1.2",
"rollup": "^1.27.14",
"typescript": "~3.5.3"
},
"commitlint": {
Expand Down
2 changes: 1 addition & 1 deletion packages/imagemin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"imagemin-optipng": "^7.1.0",
"imagemin-pngquant": "^8.0.0",
"imagemin-svgo": "^7.0.0",
"imagemin-upng": "^1.3.2",
"imagemin-upng": "^2.0.1",
"imagemin-webp": "^5.1.0",
"is-glob": "^4.0.1",
"tiny-glob": "^0.2.6",
Expand Down
7 changes: 4 additions & 3 deletions packages/imagemin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { promisify } from 'util'
const readFile = promisify(fs.readFile)
const writeFile = promisify(fs.writeFile)

const plugins = [
const plugins: Array<import('imagemin').Plugin> = [
[
'gifsicle',
{
Expand Down Expand Up @@ -55,8 +55,9 @@ const plugins = [
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
].map(([name, opts]) => require(`imagemin-${name}`)(opts))

export default (filename: string) =>
[...plugins, (it: string) => writeFile(filename, it)].reduce(
export default (filename: string): (() => Promise<void>) =>
[...plugins, (it: Buffer) => writeFile(filename, it)].reduce(
// @ts-ignore
(acc: Promise<void>, it: () => Promise<void>) => acc.then(it),
readFile(filename),
)
12 changes: 6 additions & 6 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"lib"
],
"dependencies": {
"@babel/preset-env": "^7.7.6",
"@babel/preset-env": "^7.7.7",
"@pkgr/es-modules": "^0.2.1",
"@pkgr/named-exports": "^0.4.0",
"@pkgr/umd-globals": "^0.3.0",
"@pkgr/utils": "^0.3.4",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-replace": "^2.2.1",
"@rollup/plugin-json": "^4.0.1",
"@rollup/plugin-node-resolve": "^6.0.0",
"@rollup/plugin-replace": "^2.3.0",
"@rollup/plugin-url": "^4.0.0",
"@rxts/rollup-plugin-alias": "^0.1.1",
"builtin-modules": "^3.1.0",
Expand All @@ -32,13 +33,12 @@
"jsox": "^1.1.121",
"lodash": "^4.17.15",
"micromatch": "^4.0.2",
"rollup": "^1.27.9",
"rollup": "^1.27.14",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-typescript": "^1.0.1",
"tslib": "^1.10.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
tryRequirePkg,
} from '@pkgr/utils'
import json from '@rollup/plugin-json'
import nodeResolve from '@rollup/plugin-node-resolve'
import replace from '@rollup/plugin-replace'
import url from '@rollup/plugin-url'
import alias, { AliasOptions } from '@rxts/rollup-plugin-alias'
Expand All @@ -42,7 +43,6 @@ import {
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import copy, { CopyOptions } from 'rollup-plugin-copy'
import nodeResolve from 'rollup-plugin-node-resolve'
import postcss, { PostCssPluginOptions } from 'rollup-plugin-postcss'
import { terser } from 'rollup-plugin-terser'
import typescript, { TypeScriptOptions } from 'rollup-plugin-typescript'
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@pkgr/webpack": "^0.4.10"
},
"dependencies": {
"@ngtools/webpack": "^8.3.20"
"@ngtools/webpack": "^8.3.21"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@pkgr/webpack": "^0.4.10"
},
"dependencies": {
"@mdx-js/loader": "^1.5.1",
"@mdx-js/loader": "^1.5.3",
"@pkgr/webpack-react": "^0.2.3"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hot-loader/react-dom": "^16.11.0",
"@svgr/webpack": "^4.3.3",
"@svgr/webpack": "^5.0.0",
"react-hot-loader": "^4.12.18"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"vue-template-compiler": ">=2.0.0"
},
"dependencies": {
"vue-loader": "^15.7.2",
"vue-loader": "^15.8.3",
"vue-style-loader": "^4.1.2",
"vue-svg-loader": "^0.15.0"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/webpack/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ html(lang='zh-cmn-Hans-CN')
meta(http-equiv='X-UA-Compatible', content='ie=edge')
title #{ htmlWebpackPlugin.options.title }
body
if htmlWebpackPlugin.options.type === 'angular'
app-root
else
#app
#app
20 changes: 10 additions & 10 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
"dependencies": {
"@1stg/babel-preset": "^0.9.2",
"@1stg/postcss-config": "^0.4.1",
"@babel/core": "^7.7.5",
"@babel/core": "^7.7.7",
"@pkgr/es-modules": "^0.2.1",
"@pkgr/umd-globals": "^0.3.0",
"@pkgr/utils": "^0.3.4",
"babel-loader": "^8.0.6",
"cache-loader": "^4.1.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"commander": "^4.0.1",
"copy-webpack-plugin": "^5.1.0",
"core-js": "^3.4.8",
"css-loader": "^3.3.0",
"copy-webpack-plugin": "^5.1.1",
"core-js": "^3.6.1",
"css-loader": "^3.4.0",
"debug": "^4.1.1",
"exports-loader": "^0.7.0",
"file-loader": "^5.0.2",
Expand All @@ -44,25 +44,25 @@
"less": "^3.10.3",
"less-loader": "^5.0.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.8.0",
"postcss": "^7.0.24",
"mini-css-extract-plugin": "^0.9.0",
"postcss": "^7.0.25",
"postcss-load-config": "^2.1.0",
"postcss-loader": "^3.0.0",
"pug": "^2.0.4",
"pug-loader": "^2.4.0",
"pug-plain-loader": "^1.0.0",
"raw-loader": "^4.0.0",
"sass": "^1.23.7",
"sass": "^1.24.0",
"sass-loader": "^8.0.0",
"style-loader": "^1.0.1",
"style-loader": "^1.1.1",
"stylus": "^0.54.7",
"stylus-loader": "^3.0.2",
"thread-loader": "^2.1.3",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"tslib": "^1.10.0",
"url-loader": "^3.0.0",
"webpack": "^4.41.2",
"webpack-dev-server": "^3.9.0",
"webpack": "^4.41.4",
"webpack-dev-server": "^3.10.1",
"workbox-webpack-plugin": "^4.3.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/angular/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { takeUntil } from 'rxjs/operators'
import styles from './app.m.scss'

@Component({
selector: 'app-root',
selector: '#app',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
})
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"incremental": false,
"module": "commonjs",
Expand Down
Loading

1 comment on commit d1c0381

@vercel
Copy link

@vercel vercel bot commented on d1c0381 Dec 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.