DEV Community

fadzwaan
fadzwaan

Posted on

Could not read package.json

If you dont have package.json and wanted to rebuild it.

Simply and rebuild your package.json with any llm. Don't waste your token and have it read all the code just to get the import . You can just read only the import statements.

grep -rh "from '" . --include="*.ts" --include="*.tsx" --include="*.js" | grep -oP "from '[^./][^']*'" | sort -u
Enter fullscreen mode Exit fullscreen mode

Top comments (0)