@robylon/react-native-sdk 2.0.19-staging.3 → 2.0.19-staging.5
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/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/commonjs/versions/version.dev.js +2 -0
- package/lib/commonjs/versions/version.dev.js.map +1 -0
- package/lib/commonjs/versions/version.production.js +2 -0
- package/lib/commonjs/versions/version.production.js.map +1 -0
- package/lib/commonjs/versions/version.staging.js +2 -0
- package/lib/commonjs/versions/version.staging.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/module/versions/version.dev.js +2 -0
- package/lib/module/versions/version.dev.js.map +1 -0
- package/lib/module/versions/version.production.js +2 -0
- package/lib/module/versions/version.production.js.map +1 -0
- package/lib/module/versions/version.staging.js +2 -0
- package/lib/module/versions/version.staging.js.map +1 -0
- package/lib/typescript/version.d.ts +1 -1
- package/lib/typescript/version.d.ts.map +1 -1
- package/lib/typescript/versions/version.dev.d.ts +2 -0
- package/lib/typescript/versions/version.dev.d.ts.map +1 -0
- package/lib/typescript/versions/version.production.d.ts +2 -0
- package/lib/typescript/versions/version.production.d.ts.map +1 -0
- package/lib/typescript/versions/version.staging.d.ts +2 -0
- package/lib/typescript/versions/version.staging.d.ts.map +1 -0
- package/package.json +5 -5
- package/scripts/update-version.js +21 -8
- package/src/version.ts +1 -1
- package/src/versions/version.dev.ts +2 -0
- package/src/versions/version.production.ts +2 -0
- package/src/versions/version.staging.ts +2 -0
package/lib/commonjs/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"SDK_VERSION",{enumerable:true,get:function get(){return _version.SDK_VERSION;}});var _version=require("./versions/version.staging");
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_version","require"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"yKACA,IAAAA,QAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.dev.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.production.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.staging.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,kBAAkB","ignoreList":[]}
|
package/lib/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"SDK_VERSION",{enumerable:true,get:function get(){return _version.SDK_VERSION;}});var _version=require("./versions/version.staging");
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_version","require"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"yKACA,IAAAA,QAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.dev.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.production.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.staging.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,kBAAkB","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SDK_VERSION } from './versions/version.staging';
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.dev.d.ts","sourceRoot":"","sources":["../../../src/versions/version.dev.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.production.d.ts","sourceRoot":"","sources":["../../../src/versions/version.production.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.staging.d.ts","sourceRoot":"","sources":["../../../src/versions/version.staging.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robylon/react-native-sdk",
|
|
3
|
-
"version": "2.0.19-staging.
|
|
3
|
+
"version": "2.0.19-staging.5",
|
|
4
4
|
"description": "React Native SDK for Robylon",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"version:dev": "npm version prerelease --preid dev",
|
|
22
22
|
"version:staging": "npm version prerelease --preid staging",
|
|
23
23
|
"version:production": "npm version patch",
|
|
24
|
-
"publish:dev": "npm run clean && npm run prebuild:dev && npm run version:dev && npm run build:dev && npm publish --tag dev",
|
|
25
|
-
"publish:staging": "node scripts/validate-publish.js staging && npm version $(node scripts/get-next-version.js staging) && npm run build:staging && npm publish --tag staging",
|
|
26
|
-
"publish:production": "node scripts/validate-publish.js production && npm version $(node scripts/get-next-version.js production) && npm publish",
|
|
27
|
-
"publish:hotfix": "node scripts/validate-publish.js hotfix && npm version $(node scripts/get-next-version.js hotfix) && npm publish --tag hotfix",
|
|
24
|
+
"publish:dev": "npm run clean && npm run prebuild:dev && npm run version:dev && node scripts/update-version.js dev && npm run build:dev && npm publish --tag dev",
|
|
25
|
+
"publish:staging": "node scripts/validate-publish.js staging && npm version $(node scripts/get-next-version.js staging) && node scripts/update-version.js staging && npm run build:staging && npm publish --tag staging",
|
|
26
|
+
"publish:production": "node scripts/validate-publish.js production && npm version $(node scripts/get-next-version.js production) && node scripts/update-version.js production && npm run build:production && npm publish",
|
|
27
|
+
"publish:hotfix": "node scripts/validate-publish.js hotfix && npm version $(node scripts/get-next-version.js hotfix) && node scripts/update-version.js production && npm run build:production && npm publish --tag hotfix",
|
|
28
28
|
"postinstall": "node scripts/setup-git-hooks.js",
|
|
29
29
|
"branch": "node scripts/create-branch.js",
|
|
30
30
|
"tag": "node scripts/create-version-tag.js"
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
const fs = require("fs");
|
|
2
2
|
const path = require("path");
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
const packageJson = require("../package.json");
|
|
6
|
-
const version = packageJson.version;
|
|
4
|
+
function updateVersion(env) {
|
|
5
|
+
const packageJson = require("../package.json");
|
|
6
|
+
const version = packageJson.version;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
const content = `// This file is auto-generated. Do not modify it manually.
|
|
8
|
+
const content = `// This file is auto-generated. Do not modify it manually.
|
|
10
9
|
export const SDK_VERSION = '${version}';\n`;
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
fs.writeFileSync(
|
|
11
|
+
const versionFile = path.join(__dirname, `../src/versions/version.${env}.ts`);
|
|
12
|
+
fs.writeFileSync(versionFile, content);
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
// Create/update the main version file that imports the correct version
|
|
15
|
+
const mainVersionContent = `// This file is auto-generated. Do not modify it manually.
|
|
16
|
+
export { SDK_VERSION } from './versions/version.${env}';\n`;
|
|
17
|
+
|
|
18
|
+
fs.writeFileSync(
|
|
19
|
+
path.join(__dirname, "../src/version.ts"),
|
|
20
|
+
mainVersionContent
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
console.log(`Updated ${env} SDK_VERSION to ${version}`);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Get environment from command line argument or default to 'staging'
|
|
27
|
+
const env = process.argv[2] || "staging";
|
|
28
|
+
updateVersion(env);
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not modify it manually.
|
|
2
|
-
export
|
|
2
|
+
export { SDK_VERSION } from './versions/version.staging';
|