codeplay-common 3.2.11 → 3.2.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.
package/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -705,14 +705,25 @@ for (let scanPath of SCAN_PATHS) {
705
705
  //scanDirectory(ROOT_DIR);
706
706
 
707
707
  // iOS Checks
708
- if (isMac && !iosImportFound) {
708
+ /* if (isMac && !iosImportFound) {
709
709
  console.warn(`⚠️ WARNING: You're on macOS but no iOS version (saveToGalleryAndSaveAnyFile-x.x-ios.js) found.`);
710
710
  process.exit(1);
711
711
  } else if (isMac && iosImportFound) {
712
712
  console.log('✅ iOS version detected for macOS build.');
713
713
  } else if (!iosImportFound) {
714
714
  console.log('✅ No iOS-specific imports detected for non-macOS.');
715
- }
715
+ } */
716
+
717
+ // ✅ Only care if iOS import is found in NON-mac systems
718
+ if (iosImportFound && !isMac) {
719
+ console.error(`\n❌ ERROR: iOS-specific file is imported in non-macOS environment.`);
720
+ process.exit(1);
721
+ } else if (iosImportFound && isMac) {
722
+ console.log('✅ iOS import detected (valid for macOS build).');
723
+ } else {
724
+ console.log('✅ No iOS-specific imports found (this is totally fine).');
725
+ }
726
+
716
727
 
717
728
  // Android Checks
718
729
  if (androidImportFound) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "3.2.11",
3
+ "version": "3.2.13",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",