Skip to main content
Glama
update-people-imports.sh830 B
#!/bin/bash # Script to update all imports from people.js to people/index.js # Find all TypeScript files that import from people.js files=$(grep -l "from.*objects/people\.js\|from.*objects/people\"|import.*objects/people" --include="*.ts" -r src/ 2>/dev/null) echo "Files that need updating:" echo "$files" # Update each file for file in $files; do # Skip the people.ts file itself if [[ $file == *"src/objects/people.ts"* ]]; then continue fi echo "Updating: $file" # Replace people.js with people/index.js sed -i '' 's|from "../objects/people\.js"|from "../objects/people/index.js"|g' "$file" sed -i '' 's|from "./people\.js"|from "./people/index.js"|g' "$file" sed -i '' 's|from "\.\.\/\.\.\/objects/people\.js"|from "../../objects/people/index.js"|g' "$file" done echo "Import updates complete!"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kesslerio/attio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server