@udixio/tailwind 1.7.0 → 1.7.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 1.7.1 (2025-08-31)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **tailwind:** make `normalizePath` asynchronous in file handling methods ([510dd53](https://github.com/Udixio/UI/commit/510dd53))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
1
11
  ## 1.7.0 (2025-08-31)
2
12
 
3
13
  ### 🚀 Features
package/dist/node.cjs CHANGED
@@ -148,7 +148,7 @@ const safeWriteFileSync = async (filePath, data) => {
148
148
  };
149
149
  const createOrUpdateFile = async (filePath, content) => {
150
150
  try {
151
- const normalizedPath = normalizePath(filePath);
151
+ const normalizedPath = await normalizePath(filePath);
152
152
  if (!await safeExistsSync(filePath)) {
153
153
  await safeWriteFileSync(filePath, content);
154
154
  console__namespace.log(
@@ -171,7 +171,7 @@ const createOrUpdateFile = async (filePath, content) => {
171
171
  };
172
172
  const getFileContent = async (filePath, searchPattern) => {
173
173
  try {
174
- const normalizedPath = normalizePath(filePath);
174
+ const normalizedPath = await normalizePath(filePath);
175
175
  if (!await safeExistsSync(filePath)) {
176
176
  console__namespace.error(
177
177
  chalk.red(`❌ File not found`) + chalk.gray(` • `) + chalk.cyan(normalizedPath)
package/dist/node.js CHANGED
@@ -108,7 +108,7 @@ const safeWriteFileSync = async (filePath, data) => {
108
108
  };
109
109
  const createOrUpdateFile = async (filePath, content) => {
110
110
  try {
111
- const normalizedPath = normalizePath(filePath);
111
+ const normalizedPath = await normalizePath(filePath);
112
112
  if (!await safeExistsSync(filePath)) {
113
113
  await safeWriteFileSync(filePath, content);
114
114
  console.log(
@@ -131,7 +131,7 @@ const createOrUpdateFile = async (filePath, content) => {
131
131
  };
132
132
  const getFileContent = async (filePath, searchPattern) => {
133
133
  try {
134
- const normalizedPath = normalizePath(filePath);
134
+ const normalizedPath = await normalizePath(filePath);
135
135
  if (!await safeExistsSync(filePath)) {
136
136
  console.error(
137
137
  chalk.red(`❌ File not found`) + chalk.gray(` • `) + chalk.cyan(normalizedPath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/tailwind",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
package/src/node/file.ts CHANGED
@@ -56,7 +56,7 @@ export const createOrUpdateFile = async (
56
56
  content: string,
57
57
  ): Promise<void> => {
58
58
  try {
59
- const normalizedPath = normalizePath(filePath);
59
+ const normalizedPath = await normalizePath(filePath);
60
60
 
61
61
  if (!(await safeExistsSync(filePath))) {
62
62
  await safeWriteFileSync(filePath, content);
@@ -91,7 +91,7 @@ export const getFileContent = async (
91
91
  searchPattern?: RegExp | string,
92
92
  ): Promise<string | false | null> => {
93
93
  try {
94
- const normalizedPath = normalizePath(filePath);
94
+ const normalizedPath = await normalizePath(filePath);
95
95
 
96
96
  // Vérifier si le fichier existe
97
97
  if (!(await safeExistsSync(filePath))) {