@trpc/tanstack-react-query
Version:
TanStack React Query Integration for tRPC
21 lines (20 loc) • 718 B
JavaScript
// Auto-generated by @tanstack/intent setup
// Exposes the intent end-user CLI for consumers of this library.
// Commit this file, then add to your package.json:
// "bin": { "intent": "./bin/intent.js" }
try {
await import('@tanstack/intent/intent-library');
} catch (e) {
if (e?.code === 'ERR_MODULE_NOT_FOUND' || e?.code === 'MODULE_NOT_FOUND') {
console.error('@tanstack/intent is not installed.');
console.error('');
console.error('Install it as a dev dependency:');
console.error(' npm add -D @tanstack/intent');
console.error('');
console.error('Or run directly:');
console.error(' npx @tanstack/intent@latest list');
process.exit(1);
}
throw e;
}