react-native-ui-lib 8.1.0 → 8.1.1-snapshot.7572
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1-snapshot.7572",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -161,5 +161,6 @@
|
|
|
161
161
|
"!lib/scripts",
|
|
162
162
|
"lib/package.json",
|
|
163
163
|
"lib/ReactNativeUILib.podspec"
|
|
164
|
-
]
|
|
164
|
+
],
|
|
165
|
+
"stableVersion": "8.0.0"
|
|
165
166
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
// Read yarn.lock
|
|
4
|
+
const yarnLock = fs.readFileSync('yarn.lock', 'utf8');
|
|
5
|
+
|
|
6
|
+
// Count matches first
|
|
7
|
+
const regex = /(.*)::__archiveUrl.*"/g;
|
|
8
|
+
const matches = yarnLock.match(regex);
|
|
9
|
+
const count = matches ? matches.length : 0;
|
|
10
|
+
|
|
11
|
+
// Apply regex replacement
|
|
12
|
+
const result = yarnLock.replace(regex, '$1"');
|
|
13
|
+
|
|
14
|
+
// Write back to yarn.lock
|
|
15
|
+
fs.writeFileSync('yarn.lock', result, 'utf8');
|
|
16
|
+
|
|
17
|
+
console.log(`Successfully cleaned yarn.lock - removed ${count} __archiveUrl entries`);
|