(filePath)
| 73 | } |
| 74 | |
| 75 | function readJsonSync(filePath) { |
| 76 | try { |
| 77 | return JSON.parse(fs.readFileSync(filePath, 'utf8')); |
| 78 | } catch (error) { |
| 79 | throw new Error(`Failed to read JSON from ${filePath}: ${error.message}`); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | let rspIntlPackages = glob.sync('../packages/**/intl/en-US.json', {cwd: __dirname, absolute: true}); |
| 84 | let dest = path.join(__dirname, '../packages/@react-spectrum/s2/intl'); |