Skip to content

Commit

Permalink
feat: bump all (dev)Dependencies, update related usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Apr 20, 2021
1 parent 6a27b2c commit 113e909
Show file tree
Hide file tree
Showing 26 changed files with 3,510 additions and 5,806 deletions.
1 change: 0 additions & 1 deletion .huskyrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@1stg/lint-staged')
module.exports = require('@1stg/lint-staged/tsc')
1 change: 1 addition & 0 deletions .simple-git-hooks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@1stg/simple-git-hooks')
84 changes: 46 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,77 +32,75 @@
"lint:es": "cross-env PARSER_NO_WATCH=true eslint . --cache --ext js,md,ts -f friendly",
"lint:ts": "tslint -p . -t stylish",
"lint:tsc": "tsc",
"postinstall": "yarn-deduplicate && t || exit 0",
"postinstall": "simple-git-hooks && yarn-deduplicate --strategy fewer && t || exit 0",
"pretest": "yarn clean",
"serve": "serve dist",
"test": "jest",
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files '*.d.ts' --strict -u",
"typecov": "type-coverage",
"w:build": "ts-node --files packages/webpack/src/cli",
"w:dev": "ts-node -T --files packages/webpack/src/cli"
},
"devDependencies": {
"@1stg/app-config": "^1.1.2",
"@1stg/lib-config": "^1.0.4",
"@1stg/tslint-config": "^1.0.0",
"@angular/common": "^11.2.1",
"@angular/compiler": "^11.2.1",
"@angular/compiler-cli": "^11.2.1",
"@angular/core": "^11.2.1",
"@angular/platform-browser": "^11.2.1",
"@angular/platform-browser-dynamic": "^11.2.1",
"@babel/types": "^7.12.17",
"@1stg/app-config": "^1.5.0",
"@1stg/lib-config": "^1.2.9",
"@1stg/tslint-config": "^1.2.0",
"@angular/common": "^11.2.10",
"@angular/compiler": "^11.2.10",
"@angular/compiler-cli": "^11.2.10",
"@angular/core": "^11.2.10",
"@angular/platform-browser": "^11.2.10",
"@angular/platform-browser-dynamic": "^11.2.10",
"@babel/types": "^7.13.14",
"@d-ts/bin": "^1.0.0",
"@d-ts/core": "^1.0.0",
"@d-ts/rollup-plugins": "^1.0.0",
"@d-ts/svelte": "^1.0.0",
"@d-ts/vue": "^1.0.0",
"@d-ts/webpack-plugins": "^1.0.0",
"@types/babel__core": "^7.1.12",
"@types/case-sensitive-paths-webpack-plugin": "^2.1.4",
"@types/copy-webpack-plugin": "^6.4.0",
"@types/babel__core": "^7.1.14",
"@types/case-sensitive-paths-webpack-plugin": "^2.1.5",
"@types/copy-webpack-plugin": "^6.4.1",
"@types/cross-spawn": "^6.0.2",
"@types/debug": "^4.1.5",
"@types/friendly-errors-webpack-plugin": "^0.1.2",
"@types/friendly-errors-webpack-plugin": "^0.1.3",
"@types/imagemin": "^7.0.0",
"@types/is-glob": "^4.0.1",
"@types/jest": "^26.0.20",
"@types/jest": "^26.0.22",
"@types/lodash": "^4.14.168",
"@types/micromatch": "^4.0.1",
"@types/mini-css-extract-plugin": "^1.2.2",
"@types/node": "^14.14.31",
"@types/mini-css-extract-plugin": "^1.4.2",
"@types/node": "^14.14.41",
"@types/postcss-load-config": "^2.0.1",
"@types/prettier": "^2.2.1",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"@types/prettier": "^2.2.3",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"@types/resolve": "^1.20.0",
"@types/webpack-dev-server": "^3.11.1",
"@types/webpack-dev-server": "^3.11.3",
"@types/webpack-env": "^1.16.0",
"@types/workbox-webpack-plugin": "^5.1.5",
"core-js": "^3.9.0",
"husky": "^4.3.8",
"lerna": "^3.22.1",
"@types/workbox-webpack-plugin": "^5.1.6",
"core-js": "^3.10.2",
"lerna": "^4.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.2.6",
"postcss-loader": "^5.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"postcss": "^8.2.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^6.6.3",
"rxjs": "^6.6.7",
"serve": "^11.3.2",
"svelte": "^3.32.3",
"ts-jest": "^26.5.1",
"svelte": "^3.37.0",
"ts-jest": "^26.5.5",
"ts-node": "^9.1.1",
"tslint": "^6.1.3",
"type-coverage": "^2.15.1",
"typescript": "^4.1.5",
"type-coverage": "^2.17.2",
"typescript": "^4.2.4",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12",
"yarn-deduplicate": "^3.1.0",
"zone.js": "^0.11.4"
},
"resolutions": {
"rollup": "^2.39.0"
"rollup": "^2.45.2"
},
"commitlint": {
"extends": [
Expand All @@ -128,6 +126,16 @@
]
},
"typeCoverage": {
"atLeast": 96
"atLeast": 99.54,
"cache": true,
"detail": true,
"ignoreAsAssertion": true,
"ignoreNonNullAssertion": true,
"ignoreCatch": true,
"ignoreFiles": [
"*.d.ts"
],
"strict": true,
"update": true
}
}
6 changes: 3 additions & 3 deletions packages/imagemin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"imagemin-jpegtran": "^7.0.0",
"imagemin-mozjpeg": "^9.0.0",
"imagemin-optipng": "^8.0.0",
"imagemin-pngquant": "^9.0.0",
"imagemin-svgo": "^8.0.0",
"imagemin-pngquant": "^9.0.2",
"imagemin-svgo": "^9.0.0",
"imagemin-upng": "^2.0.2",
"imagemin-webp": "^6.0.0",
"is-glob": "^4.0.1",
"tiny-glob": "^0.2.6",
"tslib": "^2.0.0"
"tslib": "^2.2.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/imagemin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const plugins = ([
],
] as const).map(
([name, opts]) =>
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-var-requires
require(`imagemin-${name}`)(opts) as import('imagemin').Plugin,
)

Expand Down
20 changes: 10 additions & 10 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@
"lib"
],
"dependencies": {
"@babel/plugin-transform-runtime": "^7.12.17",
"@babel/preset-env": "^7.11.0",
"@babel/plugin-transform-runtime": "^7.13.15",
"@babel/preset-env": "^7.13.15",
"@pkgr/es-modules": "^0.4.0",
"@pkgr/named-exports": "^0.5.2",
"@pkgr/umd-globals": "^0.5.0",
"@pkgr/utils": "^0.6.0",
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^11.2.0",
"@rollup/plugin-replace": "^2.3.2",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.4.2",
"@rollup/plugin-typescript": "^3.1.1",
"@rollup/plugin-url": "^6.0.0",
"@rxts/rollup-plugin-alias": "^0.1.1",
"builtin-modules": "^3.1.0",
"commander": "^7.1.0",
"commander": "^7.2.0",
"debug": "^4.1.1",
"is-glob": "^4.0.1",
"jsox": "^1.1.121",
"lodash": "^4.17.20",
"micromatch": "^4.0.2",
"rollup": "^2.26.3",
"lodash": "^4.17.21",
"micromatch": "^4.0.4",
"rollup": "^2.45.2",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-vue": "^6.0.0",
"tslib": "^2.0.1"
"tslib": "^2.2.0"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/rollup/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { isMatch } from 'micromatch'
import {
ModuleFormat,
OutputOptions,
Plugin,
RollupOptions,
RollupWarning,
WarningHandler,
Expand Down
18 changes: 8 additions & 10 deletions packages/umd-globals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ export const getGlobals = ({
asIsPkgs?: string[]
upperCamelCasePkgs?: string[]
globals?: StringMap
} = {}): StringMap => {
return {
...GLOBALS,
...AS_IS_PKGS.reduce(asIsReducer, {}),
...UPPER_CAMEL_CASE_PKGS.reduce(upperCamelCaseReducer, {}),
...(asIsPkgs || []).reduce(asIsReducer, {}),
...(upperCamelCasePkgs || []).reduce(upperCamelCaseReducer, {}),
...globals,
}
}
} = {}): StringMap => ({
...GLOBALS,
...AS_IS_PKGS.reduce(asIsReducer, {}),
...UPPER_CAMEL_CASE_PKGS.reduce(upperCamelCaseReducer, {}),
...(asIsPkgs || []).reduce(asIsReducer, {}),
...(upperCamelCasePkgs || []).reduce(upperCamelCaseReducer, {}),
...globals,
})

export const globals = getGlobals()

Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
"is-glob": "^4.0.1",
"open": "^7.0.4",
"open": "^8.0.6",
"tiny-glob": "^0.2.6",
"tslib": "^2.0.0"
"tslib": "^2.2.0"
},
"publishConfig": {
"access": "public"
Expand Down
21 changes: 12 additions & 9 deletions packages/utils/src/browser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// based on https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js

import { execSync } from 'child_process'

import chalk from 'chalk'
Expand Down Expand Up @@ -90,18 +92,19 @@ function startBrowserProcess(
browser = undefined
}

// If there are arguments, they must be passed as array with the browser
if (typeof browser === 'string' && args.length > 0) {
browser = [browser, ...args]
}

// Fallback to open
// (It will always open new tab)
// tslint:disable-next-line no-try-promise
// eslint-disable-next-line sonar/no-try-promise
try {
const options = { app: browser, wait: false }
// eslint-disable-next-line @typescript-eslint/no-empty-function
open(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
open(url, {
app: browser
? {
name: browser,
arguments: args,
}
: undefined,
wait: false,
}).catch(() => {}) // eslint-disable-line @typescript-eslint/no-empty-function -- Prevent `unhandledRejection` error.
return true
} catch {
return false
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export const NODE_MODULES_REG = /[/\\]node_modules[/\\]/

export const CWD = process.cwd()

// eslint-disable-next-line node/no-deprecated-api
// eslint-disable-next-line node/no-deprecated-api, sonar/deprecation
export const EXTENSIONS = ['.ts', '.tsx', ...Object.keys(require.extensions)]
2 changes: 1 addition & 1 deletion packages/utils/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ export const arrayify = <T, R = T extends Array<infer S> ? S : T>(
...args: T[]
) =>
args.reduce<R[]>((arr, curr) => {
arr.push(...(Array.isArray(curr) ? curr : [curr]))
arr.push(...(Array.isArray(curr) ? curr : curr == null ? [] : [curr]))
return arr
}, [])
4 changes: 2 additions & 2 deletions packages/webpack-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@angular/core": ">=8.0.0"
},
"dependencies": {
"@ngtools/webpack": "^11.2.1",
"@pkgr/webpack": "^0.5.1"
"@ngtools/webpack": "^11.2.9",
"@pkgr/webpack": "^0.8.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"peerDependencies": {
"react": ">=16.13.0"
"react": ">=16.0.0"
},
"dependencies": {
"@hot-loader/react-dom": "^17.0.1",
"@pkgr/webpack": "^0.5.1",
"@pkgr/webpack": "^0.8.0",
"@svgr/webpack": "^5.4.0",
"react-hot-loader": "^4.12.21"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/webpack-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"peerDependencies": {
"svelte": ">=3.20.1"
"svelte": ">=3.0.0"
},
"dependencies": {
"@pkgr/webpack": "^0.5.1",
"svelte-loader": "^3.0.0"
"@pkgr/webpack": "^0.8.0",
"svelte-loader": "^3.1.1"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"vue-template-compiler": ">=2.0.0"
},
"dependencies": {
"@pkgr/webpack": "^0.5.1",
"@pkgr/webpack": "^0.8.0",
"vue-loader": "^15.9.2",
"vue-style-loader": "^4.1.2",
"vue-style-loader": "^4.1.3",
"vue-svg-loader": "^0.16.0"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit 113e909

Please sign in to comment.