@@ -36,6 +36,7 @@ describe('install command generation', () => {
3636 [ 'deno' , 'npm:lodash' ] ,
3737 [ 'vlt' , 'lodash' ] ,
3838 [ 'vp' , 'lodash' ] ,
39+ [ 'nub' , 'lodash' ] ,
3940 ] as const ) ( '%s → %s' , ( pm , expected ) => {
4041 expect (
4142 getPackageSpecifier ( {
@@ -56,6 +57,7 @@ describe('install command generation', () => {
5657 [ 'deno' , 'jsr:@trpc/server' ] , // Native JSR specifier preferred
5758 [ 'vlt' , '@trpc/server' ] ,
5859 [ 'vp' , '@trpc/server' ] ,
60+ [ 'nub' , '@trpc/server' ] ,
5961 ] as const ) ( '%s → %s' , ( pm , expected ) => {
6062 expect (
6163 getPackageSpecifier ( {
@@ -76,6 +78,7 @@ describe('install command generation', () => {
7678 [ 'deno' , 'npm:@vue/shared' ] , // Falls back to npm: compat
7779 [ 'vlt' , '@vue/shared' ] ,
7880 [ 'vp' , '@vue/shared' ] ,
81+ [ 'nub' , '@vue/shared' ] ,
7982 ] as const ) ( '%s → %s' , ( pm , expected ) => {
8083 expect (
8184 getPackageSpecifier ( {
@@ -98,6 +101,7 @@ describe('install command generation', () => {
98101 [ 'deno' , 'deno add npm:lodash' ] ,
99102 [ 'vlt' , 'vlt install lodash' ] ,
100103 [ 'vp' , 'vp add lodash' ] ,
104+ [ 'nub' , 'nub add lodash' ] ,
101105 ] as const ) ( '%s → %s' , ( pm , expected ) => {
102106 expect (
103107 getInstallCommand ( {
@@ -118,6 +122,7 @@ describe('install command generation', () => {
118122 [ 'deno' , 'deno add npm:lodash@4.17.21' ] ,
119123 [ 'vlt' , 'vlt install lodash@4.17.21' ] ,
120124 [ 'vp' , 'vp add lodash@4.17.21' ] ,
125+ [ 'nub' , 'nub add lodash@4.17.21' ] ,
121126 ] as const ) ( '%s → %s' , ( pm , expected ) => {
122127 expect (
123128 getInstallCommand ( {
@@ -139,6 +144,7 @@ describe('install command generation', () => {
139144 [ 'deno' , 'deno add -D npm:eslint' ] ,
140145 [ 'vlt' , 'vlt install -D eslint' ] ,
141146 [ 'vp' , 'vp add -D eslint' ] ,
147+ [ 'nub' , 'nub add -D eslint' ] ,
142148 ] as const ) ( '%s → %s' , ( pm , expected ) => {
143149 expect (
144150 getInstallCommand ( {
@@ -160,6 +166,7 @@ describe('install command generation', () => {
160166 [ 'deno' , 'deno add jsr:@trpc/server' ] , // Native JSR preferred
161167 [ 'vlt' , 'vlt install @trpc/server' ] ,
162168 [ 'vp' , 'vp add @trpc/server' ] ,
169+ [ 'nub' , 'nub add @trpc/server' ] ,
163170 ] as const ) ( '%s → %s' , ( pm , expected ) => {
164171 expect (
165172 getInstallCommand ( {
@@ -180,6 +187,7 @@ describe('install command generation', () => {
180187 [ 'deno' , 'deno add jsr:@trpc/server@10.0.0' ] , // Native JSR with version
181188 [ 'vlt' , 'vlt install @trpc/server@10.0.0' ] ,
182189 [ 'vp' , 'vp add @trpc/server@10.0.0' ] ,
190+ [ 'nub' , 'nub add @trpc/server@10.0.0' ] ,
183191 ] as const ) ( '%s → %s' , ( pm , expected ) => {
184192 expect (
185193 getInstallCommand ( {
@@ -201,6 +209,7 @@ describe('install command generation', () => {
201209 [ 'deno' , 'deno add npm:@vue/shared' ] , // Falls back to npm: compat
202210 [ 'vlt' , 'vlt install @vue/shared' ] ,
203211 [ 'vp' , 'vp add @vue/shared' ] ,
212+ [ 'nub' , 'nub add @vue/shared' ] ,
204213 ] as const ) ( '%s → %s' , ( pm , expected ) => {
205214 expect (
206215 getInstallCommand ( {
@@ -355,6 +364,7 @@ describe('install command generation', () => {
355364 [ 'deno' , [ 'deno' , 'run' , 'npm:eslint' ] ] ,
356365 [ 'vlt' , [ 'vlx' , 'eslint' ] ] ,
357366 [ 'vp' , [ 'vp' , 'exec' , 'eslint' ] ] ,
367+ [ 'nub' , [ 'nubx' , 'eslint' ] ] ,
358368 ] as const ) ( '%s → %s' , ( pm , expected ) => {
359369 expect (
360370 getExecuteCommandParts ( {
@@ -375,6 +385,7 @@ describe('install command generation', () => {
375385 [ 'deno' , [ 'deno' , 'run' , 'npm:degit' ] ] ,
376386 [ 'vlt' , [ 'vlx' , 'degit' ] ] ,
377387 [ 'vp' , [ 'vp' , 'dlx' , 'degit' ] ] ,
388+ [ 'nub' , [ 'nubx' , 'degit' ] ] ,
378389 ] as const ) ( '%s → %s' , ( pm , expected ) => {
379390 expect (
380391 getExecuteCommandParts ( {
@@ -395,6 +406,7 @@ describe('install command generation', () => {
395406 [ 'deno' , [ 'deno' , 'create' , 'npm:vite' ] ] ,
396407 [ 'vlt' , [ 'vlx' , 'vite' ] ] ,
397408 [ 'vp' , [ 'vp' , 'create' , 'vite' ] ] ,
409+ [ 'nub' , [ 'nub' , 'create' , 'vite' ] ] ,
398410 ] as const ) ( '%s → %s' , ( pm , expected ) => {
399411 expect (
400412 getExecuteCommandParts ( {
0 commit comments