diff --git a/.dependency-cruiser.js b/.dependency-cruiser.js index 2ffd268..c928de9 100644 --- a/.dependency-cruiser.js +++ b/.dependency-cruiser.js @@ -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/'], }, }, { diff --git a/packages/db/check-tool.mjs b/packages/db/check-tool.mjs index 4fd8e43..53effe2 100644 --- a/packages/db/check-tool.mjs +++ b/packages/db/check-tool.mjs @@ -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)); } } diff --git a/packages/db/sync-single-tool.mjs b/packages/db/sync-single-tool.mjs index e7decfc..cc24547 100644 --- a/packages/db/sync-single-tool.mjs +++ b/packages/db/sync-single-tool.mjs @@ -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!');