File tree Expand file tree Collapse file tree 13 files changed +39
-18
lines changed
Expand file tree Collapse file tree 13 files changed +39
-18
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ---
Original file line number Diff line number Diff line change 11import { applicationConfig } from '../models/applicationConfig' ;
22import { templates } from '../templates' ;
3+ import { linkPackage } from './utils' ;
34
45const astroNode = applicationConfig ( )
56 . setName ( 'astro-node' )
@@ -9,9 +10,9 @@ const astroNode = applicationConfig()
910 . addScript ( 'dev' , 'pnpm dev' )
1011 . addScript ( 'build' , 'pnpm build' )
1112 . addScript ( 'serve' , 'pnpm preview' )
12- . addDependency ( '@clerk/astro' , '*' )
13- . addDependency ( '@clerk/types' , '*' )
14- . addDependency ( '@clerk/localizations' , '*' ) ;
13+ . addDependency ( '@clerk/astro' , linkPackage ( 'astro' ) )
14+ . addDependency ( '@clerk/types' , linkPackage ( 'types' ) )
15+ . addDependency ( '@clerk/localizations' , linkPackage ( 'localizations' ) ) ;
1516
1617const astroStatic = astroNode . clone ( ) . setName ( 'astro-hybrid' ) . useTemplate ( templates [ 'astro-hybrid' ] ) ;
1718
Original file line number Diff line number Diff line change 11import { constants } from '../constants' ;
22import { applicationConfig } from '../models/applicationConfig.js' ;
33import { templates } from '../templates/index.js' ;
4+ import { linkPackage } from './utils' ;
45
56const nextAppRouter = applicationConfig ( )
67 . setName ( 'elements-next' )
@@ -13,8 +14,8 @@ const nextAppRouter = applicationConfig()
1314 . addDependency ( 'next' , constants . E2E_NEXTJS_VERSION )
1415 . addDependency ( 'react' , constants . E2E_REACT_VERSION )
1516 . addDependency ( 'react-dom' , constants . E2E_REACT_DOM_VERSION )
16- . addDependency ( '@clerk/nextjs' , constants . E2E_CLERK_VERSION || '*' )
17- . addDependency ( '@clerk/elements' , constants . E2E_CLERK_VERSION || '*' ) ;
17+ . addDependency ( '@clerk/nextjs' , constants . E2E_CLERK_VERSION || linkPackage ( 'nextjs' ) )
18+ . addDependency ( '@clerk/elements' , constants . E2E_CLERK_VERSION || linkPackage ( 'elements' ) ) ;
1819
1920export const elements = {
2021 nextAppRouter,
Original file line number Diff line number Diff line change 11import { applicationConfig } from '../models/applicationConfig' ;
22import { templates } from '../templates' ;
3+ import { linkPackage } from './utils' ;
34
45const expoWeb = applicationConfig ( )
56 . setName ( 'expo-web' )
@@ -9,7 +10,7 @@ const expoWeb = applicationConfig()
910 . addScript ( 'dev' , 'pnpm dev' )
1011 . addScript ( 'build' , 'pnpm build' )
1112 . addScript ( 'serve' , 'pnpm start' )
12- . addDependency ( '@clerk/clerk-expo' , '*' ) ;
13+ . addDependency ( '@clerk/clerk-expo' , linkPackage ( 'expo' ) ) ;
1314
1415export const expo = {
1516 expoWeb,
Original file line number Diff line number Diff line change 11import { constants } from '../constants' ;
22import { applicationConfig } from '../models/applicationConfig' ;
33import { templates } from '../templates' ;
4+ import { linkPackage } from './utils' ;
45
56const vite = applicationConfig ( )
67 . setName ( 'express-vite' )
@@ -10,7 +11,7 @@ const vite = applicationConfig()
1011 . addScript ( 'dev' , 'pnpm dev' )
1112 . addScript ( 'build' , 'pnpm build' )
1213 . addScript ( 'serve' , 'pnpm start' )
13- . addDependency ( '@clerk/clerk-sdk-node' , constants . E2E_CLERK_VERSION || '*' ) ;
14+ . addDependency ( '@clerk/clerk-sdk-node' , constants . E2E_CLERK_VERSION || linkPackage ( 'sdk-node' ) ) ;
1415
1516export const express = {
1617 vite,
Original file line number Diff line number Diff line change 11import { constants } from '../constants' ;
22import { applicationConfig } from '../models/applicationConfig.js' ;
33import { templates } from '../templates/index.js' ;
4+ import { linkPackage } from './utils' ;
45
56const appRouter = applicationConfig ( )
67 . setName ( 'next-app-router' )
@@ -13,9 +14,9 @@ const appRouter = applicationConfig()
1314 . addDependency ( 'next' , constants . E2E_NEXTJS_VERSION )
1415 . addDependency ( 'react' , constants . E2E_REACT_VERSION )
1516 . addDependency ( 'react-dom' , constants . E2E_REACT_DOM_VERSION )
16- . addDependency ( '@clerk/nextjs' , constants . E2E_CLERK_VERSION || '*' )
17- . addDependency ( '@clerk/shared' , '*' )
18- . addDependency ( '@clerk/types' , '*' ) ;
17+ . addDependency ( '@clerk/nextjs' , constants . E2E_CLERK_VERSION || linkPackage ( 'nextjs' ) )
18+ . addDependency ( '@clerk/shared' , linkPackage ( 'shared' ) )
19+ . addDependency ( '@clerk/types' , linkPackage ( 'types' ) ) ;
1920
2021const appRouterTurbo = appRouter . clone ( ) . setName ( 'next-app-router-turbopack' ) . addScript ( 'dev' , 'pnpm dev' ) ;
2122
Original file line number Diff line number Diff line change 11import { applicationConfig } from '../models/applicationConfig' ;
22import { templates } from '../templates' ;
3+ import { linkPackage } from './utils' ;
34
45const nuxtNode = applicationConfig ( )
56 . setName ( 'nuxt-node' )
@@ -10,7 +11,7 @@ const nuxtNode = applicationConfig()
1011 . addScript ( 'dev' , 'pnpm dev' )
1112 . addScript ( 'build' , 'pnpm build' )
1213 . addScript ( 'serve' , 'pnpm preview' )
13- . addDependency ( '@clerk/nuxt' , '*' ) ;
14+ . addDependency ( '@clerk/nuxt' , linkPackage ( 'nuxt' ) ) ;
1415
1516export const nuxt = {
1617 node : nuxtNode ,
Original file line number Diff line number Diff line change 11import { constants } from '../constants' ;
22import { applicationConfig } from '../models/applicationConfig.js' ;
33import { templates } from '../templates/index.js' ;
4+ import { linkPackage } from './utils' ;
45
56const reactRouterNode = applicationConfig ( )
67 . setName ( 'react-router-node' )
@@ -10,7 +11,7 @@ const reactRouterNode = applicationConfig()
1011 . addScript ( 'dev' , 'pnpm dev' )
1112 . addScript ( 'build' , 'pnpm build' )
1213 . addScript ( 'serve' , 'pnpm start' )
13- . addDependency ( '@clerk/react-router' , constants . E2E_CLERK_VERSION || '*' ) ;
14+ . addDependency ( '@clerk/react-router' , constants . E2E_CLERK_VERSION || linkPackage ( 'react-router' ) ) ;
1415
1516export const reactRouter = {
1617 reactRouterNode,
Original file line number Diff line number Diff line change 11import { constants } from '../constants' ;
22import { applicationConfig } from '../models/applicationConfig' ;
33import { templates } from '../templates' ;
4+ import { linkPackage } from './utils' ;
45
56const cra = applicationConfig ( )
67 . setName ( 'react-cra' )
@@ -10,8 +11,8 @@ const cra = applicationConfig()
1011 . addScript ( 'dev' , 'pnpm start' )
1112 . addScript ( 'build' , 'pnpm build' )
1213 . addScript ( 'serve' , 'pnpm start' )
13- . addDependency ( '@clerk/clerk-react' , constants . E2E_CLERK_VERSION || '*' )
14- . addDependency ( '@clerk/themes' , constants . E2E_CLERK_VERSION || '*' ) ;
14+ . addDependency ( '@clerk/clerk-react' , constants . E2E_CLERK_VERSION || linkPackage ( 'react' ) )
15+ . addDependency ( '@clerk/themes' , constants . E2E_CLERK_VERSION || linkPackage ( 'themes' ) ) ;
1516
1617const vite = cra
1718 . clone ( )
Original file line number Diff line number Diff line change 11import { constants } from '../constants' ;
22import { applicationConfig } from '../models/applicationConfig.js' ;
33import { templates } from '../templates/index.js' ;
4+ import { linkPackage } from './utils' ;
45
56const remixNode = applicationConfig ( )
67 . setName ( 'remix-node' )
@@ -10,7 +11,7 @@ const remixNode = applicationConfig()
1011 . addScript ( 'dev' , 'pnpm dev' )
1112 . addScript ( 'build' , 'pnpm build' )
1213 . addScript ( 'serve' , 'pnpm start' )
13- . addDependency ( '@clerk/remix' , constants . E2E_CLERK_VERSION || '*' ) ;
14+ . addDependency ( '@clerk/remix' , constants . E2E_CLERK_VERSION || linkPackage ( 'remix' ) ) ;
1415
1516export const remix = {
1617 remixNode,
You can’t perform that action at this time.
0 commit comments