@robylon/react-native-sdk 2.0.19-staging.0 → 2.0.19-staging.1

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": "@robylon/react-native-sdk",
3
- "version": "2.0.19-staging.0",
3
+ "version": "2.0.19-staging.1",
4
4
  "description": "React Native SDK for Robylon",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -9,7 +9,7 @@
9
9
  "source": "src/index.tsx",
10
10
  "readme": "README.md",
11
11
  "scripts": {
12
- "prebuild": "node scripts/generate-version.js",
12
+ "prebuild": "node scripts/update-version.js",
13
13
  "build": "bob build",
14
14
  "clean": "rimraf lib",
15
15
  "prebuild:dev": "cp .npmignore.development .npmignore",
@@ -0,0 +1,15 @@
1
+ const fs = require("fs");
2
+ const path = require("path");
3
+
4
+ // Read version from package.json
5
+ const packageJson = require("../package.json");
6
+ const version = packageJson.version;
7
+
8
+ // Create version.ts content
9
+ const content = `// This file is auto-generated. Do not modify it manually.
10
+ export const SDK_VERSION = '${version}';\n`;
11
+
12
+ // Write to version.ts
13
+ fs.writeFileSync(path.join(__dirname, "../src/version.ts"), content);
14
+
15
+ console.log(`Updated SDK_VERSION to ${version}`);