fix: update dependency cruiser config to allow TypeScript path aliases and workspace packages
- Add `^@/` to pathNot to allow Next.js `@/` path alias - Add `^@tpmjs/` to pathNot to allow workspace package imports - Fixes architecture check failures in CI - Apply Biome formatting to check-tool.mjs and sync-single-tool.mjs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
295199d43f
commit
fe96bc780d
3 changed files with 8 additions and 8 deletions
|
|
@ -105,8 +105,8 @@ export default {
|
|||
from: {},
|
||||
to: {
|
||||
couldNotResolve: true,
|
||||
// Allow TypeScript path aliases that are resolved by the TS compiler
|
||||
pathNot: ['^~/'],
|
||||
// Allow TypeScript path aliases and workspace packages that are resolved by the TS compiler
|
||||
pathNot: ['^~/', '^@/', '^@tpmjs/'],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,22 +8,22 @@ async function main() {
|
|||
npmPackageName: true,
|
||||
npmVersion: true,
|
||||
npmReadme: true,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
if (tool) {
|
||||
console.log('Tool found:', tool.npmPackageName, tool.npmVersion);
|
||||
console.log('Has README:', tool.npmReadme ? `Yes (${tool.npmReadme.length} chars)` : 'No');
|
||||
} else {
|
||||
console.log('Tool @tpmjs/text-transformer not found in database');
|
||||
|
||||
|
||||
// List all tools to see what's available
|
||||
const allTools = await prisma.tool.findMany({
|
||||
select: { npmPackageName: true },
|
||||
take: 10
|
||||
take: 10,
|
||||
});
|
||||
console.log('\nAvailable tools:');
|
||||
allTools.forEach(t => console.log(' -', t.npmPackageName));
|
||||
allTools.forEach((t) => console.log(' -', t.npmPackageName));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ async function main() {
|
|||
npmKeywords: pkg.topLevelKeywords || pkg.keywords || [],
|
||||
npmAuthor: pkg.author || null,
|
||||
npmMaintainers: pkg.maintainers || null,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
console.log('\n✅ Tool updated successfully!');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue