Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/include-skills-in-publish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@tanstack/devtools': patch
'@tanstack/devtools-event-client': patch
'@tanstack/devtools-vite': patch
'@tanstack/devtools-utils': patch
---

Include skills/ directory in npm publish so `npx @tanstack/intent install` can discover them
20 changes: 20 additions & 0 deletions packages/devtools-utils/bin/intent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node
// 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
}
7 changes: 6 additions & 1 deletion packages/devtools-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
},
"./package.json": "./package.json"
},
"bin": {
"intent": "./bin/intent.js"
},
"sideEffects": false,
"engines": {
"node": ">=18"
Expand Down Expand Up @@ -98,7 +101,9 @@
},
"files": [
"dist/",
"src"
"src",
"skills",
"bin"
],
"scripts": {
"clean": "premove ./build ./dist",
Expand Down
20 changes: 20 additions & 0 deletions packages/devtools-vite/bin/intent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node
// 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
}
7 changes: 6 additions & 1 deletion packages/devtools-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@
},
"./package.json": "./package.json"
},
"bin": {
"intent": "./bin/intent.js"
},
"sideEffects": false,
"engines": {
"node": ">=18"
},
"files": [
"dist/",
"src"
"src",
"skills",
"bin"
],
"scripts": {
"clean": "premove ./build ./dist",
Expand Down
20 changes: 20 additions & 0 deletions packages/devtools/bin/intent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node
// 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
}
7 changes: 6 additions & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"bin": {
"intent": "./bin/intent.js"
},
"sideEffects": false,
"engines": {
"node": ">=18"
},
"files": [
"dist/",
"src"
"src",
"skills",
"bin"
],
"scripts": {
"clean": "premove ./build ./dist",
Expand Down
20 changes: 20 additions & 0 deletions packages/event-bus-client/bin/intent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node
// 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
}
7 changes: 6 additions & 1 deletion packages/event-bus-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,18 @@
},
"./package.json": "./package.json"
},
"bin": {
"intent": "./bin/intent.js"
},
"sideEffects": false,
"engines": {
"node": ">=18"
},
"files": [
"dist/",
"src"
"src",
"skills",
"bin"
],
"scripts": {
"clean": "premove ./build ./dist",
Expand Down
Loading