Skip to content

Commit

Permalink
chore!: drop node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
foray1010 committed Apr 28, 2021
1 parent b919a77 commit fc35a40
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: 'circleci/node:12'
- image: 'circleci/node:12.13.0'
steps:
- 'checkout'
- restore_cache:
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"directory": "packages/babel-preset"
},
"license": "MIT",
"main": "index.js",
"exports": "./index.js",
"files": [
"*.js"
"*.{cjs,js,mjs}"
],
"dependencies": {
"@babel/helper-plugin-utils": "^7.10.4",
Expand All @@ -32,7 +32,7 @@
"@babel/runtime": "^7.9.6"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages/common-presets-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const pkgDir = path.dirname(pkgPath)

const hasDep = (packageName) =>
[pkg.dependencies, pkg.devDependencies, pkg.peerDependencies]
.map((dependencies) => Object.keys(dependencies || {}))
.reduce((acc, dependencyNames) => acc.concat(dependencyNames), [])
.flatMap((dependencies) => Object.keys(dependencies || {}))
.includes(packageName)

const isESM = () => pkg.type === 'module'
Expand Down
6 changes: 3 additions & 3 deletions packages/common-presets-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"directory": "packages/common-presets-utils"
},
"license": "MIT",
"main": "index.js",
"exports": "./index.js",
"files": [
"*.js"
"*.{cjs,js,mjs}"
],
"dependencies": {
"read-pkg-up": "^7.0.0"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 6 additions & 3 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
"directory": "packages/eslint-config"
},
"license": "MIT",
"main": "index.js",
"exports": {
".": "./index.js",
"./react": "./react.js"
},
"files": [
"presets/",
"*.js",
"*.{cjs,js,mjs}",
"eslintignore"
],
"dependencies": {
Expand All @@ -40,7 +43,7 @@
"prettier": ">=2 <3"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"directory": "packages/prettier-config"
},
"license": "MIT",
"main": "index.js",
"exports": "./index.js",
"files": [
"*.js",
"*.{cjs,js,mjs}",
"prettierignore"
],
"dependencies": {
Expand All @@ -22,7 +22,7 @@
"prettier": ">=2 <3"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/remark-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"directory": "packages/remark-preset"
},
"license": "MIT",
"main": "index.js",
"exports": "./index.js",
"files": [
"*.js",
"*.{cjs,js,mjs}",
"remarkignore"
],
"dependencies": {
Expand All @@ -28,7 +28,7 @@
"remark-cli": ">=8"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"directory": "packages/stylelint-config"
},
"license": "MIT",
"main": "index.js",
"exports": "./index.js",
"files": [
"*.js",
"*.{cjs,js,mjs}",
"stylelintignore"
],
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@
"directory": "packages/tsconfig"
},
"license": "MIT",
"main": "tsconfig.json",
"files": [
"tsconfig.json"
],
"peerDependencies": {
"typescript": ">=4.1.2"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit fc35a40

Please sign in to comment.