react-native-in-app-debugger 1.0.71 → 1.0.72

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,11 +1,12 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "This library's main usage is to be used by Non-Technical testers during UAT, SIT or any testing phase.",
5
5
  "main": "index.jsx",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "pub": "npm publish --access=public"
8
+ "deploy": "npm publish --access=public",
9
+ "postinstall": "node postinstall.js"
9
10
  },
10
11
  "keywords": [
11
12
  "debugger"
@@ -0,0 +1 @@
1
+ {}
package/postinstall.js ADDED
@@ -0,0 +1,10 @@
1
+ const fs = require('fs');
2
+ const read = (p) => JSON.parse(fs.readFileSync(p, 'utf-8'));
3
+ const parentDependencies = fs.openSync('./parentDependencies.js', 'w');
4
+ fs.writeSync(parentDependencies, '{');
5
+ for (const d in read('../../package.json').dependencies) {
6
+ try {
7
+ fs.writeSync(parentDependencies, `"${d}":"${read(`../${d}/package.json`).version}",`);
8
+ } catch (e) {}
9
+ }
10
+ fs.writeSync(parentDependencies, '}');