Skip to content
Source
Sign inSign up
TanStack/devtools
Open History to see the last commit

intent.js

20 lines708 Bytes

1#!/usr/bin/env node
2// Auto-generated by @tanstack/intent setup
3// Exposes the intent end-user CLI for consumers of this library.
4// Commit this file, then add to your package.json:
5// "bin": { "intent": "./bin/intent.js" }
6try {
7 await import('@tanstack/intent/intent-library')
8} catch (e) {
9 if (e?.code === 'ERR_MODULE_NOT_FOUND' || e?.code === 'MODULE_NOT_FOUND') {
10 console.error('@tanstack/intent is not installed.')
11 console.error('')
12 console.error('Install it as a dev dependency:')
13 console.error(' npm add -D @tanstack/intent')
14 console.error('')
15 console.error('Or run directly:')
16 console.error(' npx @tanstack/intent@latest list')
17 process.exit(1)
18 }
19 throw e