Skip to content

Commit

Permalink
fix(cli): add missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Aug 10, 2022
1 parent c6cabbf commit 79da537
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/sanity/.depcheckignore.json
@@ -0,0 +1,4 @@
{
"//": "used by bin/sanity but for some reason not understood by depcheck",
"ignore": ["read-pkg-up"]
}
2 changes: 1 addition & 1 deletion packages/sanity/bin/sanity
Expand Up @@ -8,7 +8,7 @@ const readPkgUp = require('read-pkg-up')
const expectedPath = path.join(__dirname, '..', 'node_modules', '.bin', 'sanity')

if (fs.existsSync(expectedPath)) {
isNodeScript(expectedPath).then(isScript => {
isNodeScript(expectedPath).then((isScript) => {
if (isScript) {
require(expectedPath)
} else {
Expand Down
1 change: 1 addition & 0 deletions packages/sanity/package.json
Expand Up @@ -162,6 +162,7 @@
"pluralize-esm": "^9.0.2",
"pretty-ms": "^7.0.1",
"raf": "^3.4.1",
"read-pkg-up": "^7.0.1",
"react-copy-to-clipboard": "^5.0.4",
"react-fast-compare": "^3.2.0",
"react-focus-lock": "^2.8.1",
Expand Down

0 comments on commit 79da537

Please sign in to comment.