@sonny-ui/core 0.1.0-alpha.8 → 0.1.0-alpha.9
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/package.json
CHANGED
|
@@ -236,7 +236,7 @@ export function cn(...inputs: ClassValue[]): string {
|
|
|
236
236
|
const fs = require('fs');
|
|
237
237
|
let content = fs.readFileSync(sourcePath, 'utf-8');
|
|
238
238
|
// Rewrite imports to use local cn utility
|
|
239
|
-
content = content.replace(/from ['"]\.\.\/core\/utils\/cn['"]/g, `from '
|
|
239
|
+
content = content.replace(/from ['"]\.\.\/core\/utils\/cn['"]/g, `from '../utils/cn'`);
|
|
240
240
|
// Rewrite prefix if custom
|
|
241
241
|
if (options.prefix && options.prefix !== 'sny') {
|
|
242
242
|
content = content.replace(/sny/g, options.prefix);
|