You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@tailwindcss-upgrade/src/migrate-js-config.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,8 @@ export async function migrateJsConfig(
44
44
45
45
if(!canMigrateConfig(unresolvedConfig,source)){
46
46
info(
47
-
`↳ The configuration file at ${highlight(relative(fullConfigPath,base))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,
47
+
`The configuration file at ${highlight(relative(fullConfigPath,base))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,
'Cannot find any CSS files that reference Tailwind CSS.\nBefore your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses `@tailwind`.',
354
+
`Cannot find any CSS files that reference Tailwind CSS.\nBefore your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${highlight('@tailwind')}.`,
@@ -396,6 +400,7 @@ export async function linkConfigs(
396
400
for(letsheetofproblematicStylesheets){
397
401
error(
398
402
`Could not determine configuration file for: ${highlight(relative(sheet.file!,base))}\nUpdate your stylesheet to use ${highlight('@config')} to specify the correct configuration file explicitly and then run the upgrade tool again.`,
403
+
{prefix: '↳ '},
399
404
)
400
405
}
401
406
@@ -407,7 +412,8 @@ export async function linkConfigs(
407
412
try{
408
413
if(!sheet||!sheet.file)return
409
414
success(
410
-
`↳ Linked ${highlight(relativePath(configPath,base))} to ${highlight(relativePath(sheet.file,base))}`,
415
+
`Linked ${highlight(relativePath(configPath,base))} to ${highlight(relativePath(sheet.file,base))}`,
416
+
{prefix: '↳ '},
411
417
)
412
418
413
419
// Link the `@config` directive to the root stylesheets
@@ -447,7 +453,7 @@ export async function linkConfigs(
447
453
}
448
454
}
449
455
}catch(e: any){
450
-
error('Could not load the configuration file: '+e.message)
456
+
error('Could not load the configuration file: '+e.message,{prefix: '↳ '})
0 commit comments