@tanstack/cta-engine 0.34.6 → 0.34.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ export function getPackageManagerExecuteCommand(packagerManager, pkg, args = [])
33
33
  case 'yarn':
34
34
  return { command: 'yarn', args: ['dlx', pkg, ...args] };
35
35
  case 'pnpm':
36
- return { command: 'pnpx', args: [pkg, ...args] };
36
+ return { command: 'pnpm', args: ['dlx', pkg, ...args] };
37
37
  case 'bun':
38
38
  return { command: 'bunx', args: ['--bun', pkg, ...args] };
39
39
  case 'deno':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cta-engine",
3
- "version": "0.34.6",
3
+ "version": "0.34.11",
4
4
  "description": "Tanstack Application Builder Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -51,7 +51,7 @@ export function getPackageManagerExecuteCommand(
51
51
  case 'yarn':
52
52
  return { command: 'yarn', args: ['dlx', pkg, ...args] }
53
53
  case 'pnpm':
54
- return { command: 'pnpx', args: [pkg, ...args] }
54
+ return { command: 'pnpm', args: ['dlx', pkg, ...args] }
55
55
  case 'bun':
56
56
  return { command: 'bunx', args: ['--bun', pkg, ...args] }
57
57
  case 'deno':
@@ -52,8 +52,16 @@ describe('shadcn', () => {
52
52
 
53
53
  expect(output.commands).toEqual([
54
54
  {
55
- command: 'pnpx',
56
- args: ['shadcn@latest', 'add', '--silent', '--yes', 'button', 'card'],
55
+ command: 'pnpm',
56
+ args: [
57
+ 'dlx',
58
+ 'shadcn@latest',
59
+ 'add',
60
+ '--silent',
61
+ '--yes',
62
+ 'button',
63
+ 'card',
64
+ ],
57
65
  },
58
66
  ])
59
67
  })
@@ -83,8 +91,16 @@ describe('shadcn', () => {
83
91
 
84
92
  expect(output.commands).toEqual([
85
93
  {
86
- command: 'pnpx',
87
- args: ['shadcn@latest', 'add', '--silent', '--yes', 'button', 'card'],
94
+ command: 'pnpm',
95
+ args: [
96
+ 'dlx',
97
+ 'shadcn@latest',
98
+ 'add',
99
+ '--silent',
100
+ '--yes',
101
+ 'button',
102
+ 'card',
103
+ ],
88
104
  },
89
105
  ])
90
106
  })
@@ -48,7 +48,7 @@ describe('getPackageManagerExecuteCommand', () => {
48
48
  formatCommand(
49
49
  getPackageManagerExecuteCommand('pnpm', 'shadcn', ['add', 'button']),
50
50
  ),
51
- ).toBe('pnpx shadcn add button')
51
+ ).toBe('pnpm dlx shadcn add button')
52
52
  })
53
53
  it('bun', () => {
54
54
  expect(