Skip to content

Commit

Permalink
feat: find index path
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvera committed May 22, 2024
1 parent ad6225f commit 9081ddb
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 173 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@
"lint-staged": {
"*.{ts,tsx,mjs}": "eslint --cache",
"*": "prettier --ignore-unknown --write"
},
"dependencies": {
"find-up": "^7.0.0"
}
}
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#! /usr/bin/env node
import { findUp } from 'find-up'

const indexPath = findUp('firebase.index.json')

console.log('Hello!')
console.log('@:', __dirname)
console.log('indexPath:', indexPath)
console.log('Bye!')
Loading

0 comments on commit 9081ddb

Please sign in to comment.