Skip to content

Commit 041acaf

Browse files
committed
fix: include skills/ and bin/intent.js in npm publish for all packages
The skills/ directories and intent bin shim were missing from the individual package.json files. The intent scanner requires both "bin": { "intent": ... } and a skills/ directory to detect packages. Without these, npx @tanstack/intent install reports "No intent-enabled packages found."
1 parent da5ff35 commit 041acaf

File tree

9 files changed

+112
-4
lines changed

9 files changed

+112
-4
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@tanstack/devtools": patch
3+
"@tanstack/devtools-event-client": patch
4+
"@tanstack/devtools-vite": patch
5+
"@tanstack/devtools-utils": patch
6+
---
7+
8+
Include skills/ directory in npm publish so `npx @tanstack/intent install` can discover them
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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" }
6+
try {
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
20+
}

packages/devtools-utils/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
},
6666
"./package.json": "./package.json"
6767
},
68+
"bin": {
69+
"intent": "./bin/intent.js"
70+
},
6871
"sideEffects": false,
6972
"engines": {
7073
"node": ">=18"
@@ -98,7 +101,9 @@
98101
},
99102
"files": [
100103
"dist/",
101-
"src"
104+
"src",
105+
"skills",
106+
"bin"
102107
],
103108
"scripts": {
104109
"clean": "premove ./build ./dist",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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" }
6+
try {
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
20+
}

packages/devtools-vite/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@
2929
},
3030
"./package.json": "./package.json"
3131
},
32+
"bin": {
33+
"intent": "./bin/intent.js"
34+
},
3235
"sideEffects": false,
3336
"engines": {
3437
"node": ">=18"
3538
},
3639
"files": [
3740
"dist/",
38-
"src"
41+
"src",
42+
"skills",
43+
"bin"
3944
],
4045
"scripts": {
4146
"clean": "premove ./build ./dist",

packages/devtools/bin/intent.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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" }
6+
try {
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
20+
}

packages/devtools/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,18 @@
4040
"types": "./dist/index.d.ts",
4141
"import": "./dist/index.js"
4242
},
43+
"bin": {
44+
"intent": "./bin/intent.js"
45+
},
4346
"sideEffects": false,
4447
"engines": {
4548
"node": ">=18"
4649
},
4750
"files": [
4851
"dist/",
49-
"src"
52+
"src",
53+
"skills",
54+
"bin"
5055
],
5156
"scripts": {
5257
"clean": "premove ./build ./dist",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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" }
6+
try {
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
20+
}

packages/event-bus-client/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434
},
3535
"./package.json": "./package.json"
3636
},
37+
"bin": {
38+
"intent": "./bin/intent.js"
39+
},
3740
"sideEffects": false,
3841
"engines": {
3942
"node": ">=18"
4043
},
4144
"files": [
4245
"dist/",
43-
"src"
46+
"src",
47+
"skills",
48+
"bin"
4449
],
4550
"scripts": {
4651
"clean": "premove ./build ./dist",

0 commit comments

Comments
 (0)