Skip to content

Commit

Permalink
Fix: Missing and extra dependencies
Browse files Browse the repository at this point in the history
`utils` did not have `lint:dependencies` and thus a few ones were
missing from `package.json`. They were hoisted by `hint` that had them
but were unnecesary.

This moves the dependencies where they belong and adds
`lint:dependencies` to `utils`.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Close #2375
  • Loading branch information
molant authored and antross committed May 17, 2019
1 parent 5b0c744 commit 882cc81
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
5 changes: 0 additions & 5 deletions packages/hint/package.json
Expand Up @@ -9,19 +9,14 @@
"bin": "./dist/src/bin/hint.js",
"dependencies": {
"@hint/utils": "^2.0.0",
"ajv": "^6.10.0",
"applicationinsights": "^1.3.1",
"boxen": "^3.2.0",
"browserslist": "^4.6.0",
"chalk": "^2.4.2",
"configstore": "^4.0.0",
"content-type": "^1.0.4",
"css-select": "^2.0.2",
"eventemitter2": "^5.0.1",
"file-type": "^10.11.0",
"globby": "^9.2.0",
"is-ci": "^2.0.0",
"is-svg": "^4.1.0",
"lodash": "^4.17.11",
"optionator": "^0.8.2",
"ora": "^3.4.0",
Expand Down
9 changes: 8 additions & 1 deletion packages/utils/package.json
Expand Up @@ -7,11 +7,15 @@
"timeout": "1m"
},
"dependencies": {
"applicationinsights": "^1.2.0",
"ajv": "^6.10.0",
"applicationinsights": "^1.3.1",
"configstore": "^4.0.0",
"content-type": "^1.0.4",
"css-select": "^2.0.2",
"debug": "^4.1.1",
"file-type": "^11.0.0",
"file-url": "^3.0.0",
"is-svg": "^4.1.0",
"is-wsl": "^2.0.0",
"jsonc-parser": "^2.1.0",
"lodash": "^4.17.11",
Expand Down Expand Up @@ -44,6 +48,7 @@
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-markdown": "^1.0.0",
"eventemitter2": "^5.0.1",
"jsdom": "^15.1.0",
"mdn-browser-compat-data": "^0.0.80",
"mime-db": "1.35.0",
"npm-run-all": "^4.1.5",
Expand All @@ -52,6 +57,7 @@
"postcss-safe-parser": "^4.0.1",
"proxyquire": "2.0.0",
"rimraf": "^2.6.3",
"sinon": "^7.3.2",
"typescript": "^3.4.5"
},
"engines": {
Expand Down Expand Up @@ -85,6 +91,7 @@
"build:ts": "tsc -b",
"clean": "rimraf dist",
"lint": "npm-run-all lint:*",
"lint:dependencies": "node ../../scripts/lint-dependencies.js",
"lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives",
"lint:md": "node ../../scripts/lint-markdown.js",
"prebuild": "npm-run-all prebuild:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/content-type.ts
@@ -1,4 +1,4 @@
import fileType from 'file-type';
import fileType = require('file-type');
import isSvg from 'is-svg';

import { parse, MediaType } from 'content-type';
Expand Down
9 changes: 7 additions & 2 deletions yarn.lock
Expand Up @@ -1497,7 +1497,7 @@ append-transform@^1.0.0:
dependencies:
default-require-extensions "^2.0.0"

applicationinsights@^1.2.0, applicationinsights@^1.3.1:
applicationinsights@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/applicationinsights/-/applicationinsights-1.3.1.tgz#3bdb469fa2089249504505b8d53cdbe0167c0ca8"
integrity sha512-4IdsBZpu+m7FjI/wgUGmEkEh2rqeL6YEMr2lA6/N+rK31TqlJrbiKdiuBYWPvpsGQ+y0eoAaXJ+s71SwVgchJw==
Expand Down Expand Up @@ -4784,11 +4784,16 @@ file-loader@1.1.11:
loader-utils "^1.0.2"
schema-utils "^0.4.5"

file-type@^10.10.0, file-type@^10.11.0:
file-type@^10.10.0:
version "10.11.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-10.11.0.tgz#2961d09e4675b9fb9a3ee6b69e9cd23f43fd1890"
integrity sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw==

file-type@^11.0.0:
version "11.0.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-11.0.0.tgz#576ca9ec099925b0c4df7e75d3be52696b62fb52"
integrity sha512-ixd0mHkDO8KJ1S+ANTM+cZoZgL+TB0txLMm9KjTndfOjFYuRmrUcOtmSEm+e9s7wrynZOvvRD/8LwMQ6a24Irg==

file-uri-to-path@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
Expand Down

0 comments on commit 882cc81

Please sign in to comment.