@machinemetrics/mm-react-components 0.2.3-12 → 0.2.3-13

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.
@@ -157,12 +157,20 @@ ${cssContent}`;
157
157
  'bin',
158
158
  'chakra-to-shadcn.js',
159
159
  );
160
+ const migrationConfigPath = path.join(
161
+ __dirname,
162
+ 'chakra-to-shadcn-migrator',
163
+ 'chakra-to-shadcn.config.json',
164
+ );
160
165
 
161
166
  if (fs.existsSync(migrationScriptPath)) {
162
167
  try {
163
- execSync(`node "${migrationScriptPath}" --apply`, {
164
- stdio: 'inherit',
165
- });
168
+ execSync(
169
+ `node "${migrationScriptPath}" --config "${migrationConfigPath}" --apply`,
170
+ {
171
+ stdio: 'inherit',
172
+ },
173
+ );
166
174
  log('\n✅ Chakra UI migration complete!', 'green');
167
175
  } catch (error) {
168
176
  log('\n⚠️ Migration encountered issues', 'yellow');
@@ -359,12 +359,20 @@ document.documentElement.classList.add('carbide');
359
359
  'bin',
360
360
  'chakra-to-shadcn.js',
361
361
  );
362
+ const migrationConfigPath = path.join(
363
+ __dirname,
364
+ 'chakra-to-shadcn-migrator',
365
+ 'chakra-to-shadcn.config.json',
366
+ );
362
367
 
363
368
  if (fs.existsSync(migrationScriptPath)) {
364
369
  try {
365
- execSync(`node "${migrationScriptPath}" --apply`, {
366
- stdio: 'inherit',
367
- });
370
+ execSync(
371
+ `node "${migrationScriptPath}" --config "${migrationConfigPath}" --apply`,
372
+ {
373
+ stdio: 'inherit',
374
+ },
375
+ );
368
376
  log('\n✅ Chakra UI migration complete!', 'green');
369
377
  } catch (error) {
370
378
  log('\n⚠️ Migration encountered issues', 'yellow');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@machinemetrics/mm-react-components",
3
- "version": "0.2.3-12",
3
+ "version": "0.2.3-13",
4
4
  "description": "Industrial-grade React components for manufacturing applications",
5
5
  "keywords": [
6
6
  "react",