Skip to content

Commit

Permalink
Better message when config.js file was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
macCesar committed Dec 1, 2021
1 parent 8a23826 commit ef551aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ function buildCustomTailwind(message = 'file created!') {

tailwindStyles += fs.readFileSync(path.resolve(__dirname, './lib/templates/tailwind/custom-template.tss'), 'utf8');

tailwindStyles += `// Updated At: ${getFileUpdatedDate(destConfigJSFile)}\n` + '\n// Custom Styles and Resets\n';
tailwindStyles += `// config.js file updated on: ${getFileUpdatedDate(destConfigJSFile)}\n` + '\n// Custom Styles and Resets\n';

// console.log(JSON.stringify(sorted));

Expand Down Expand Up @@ -1176,7 +1176,7 @@ function purgeTailwind(uniqueClasses) {

let tailwindClasses = fs.readFileSync(tailwindFile, 'utf8').split(/\r?\n/);

if (`// Updated At: ${getFileUpdatedDate(destConfigJSFile)}` !== tailwindClasses[7]) {
if (`// config.js file updated on: ${getFileUpdatedDate(destConfigJSFile)}` !== tailwindClasses[7]) {
logger.info(chalk.yellow('config.js'), 'file updated!, rebuilding tailwind.tss...');
buildCustomTailwind('file updated!');
tailwindClasses = fs.readFileSync(tailwindFile, 'utf8').split(/\r?\n/);
Expand Down

0 comments on commit ef551aa

Please sign in to comment.