@twilio/declarative-type-validator
Advanced tools
Comparing version 0.1.9-rc.6 to 0.1.9-rc.7
@@ -6,2 +6,10 @@ # Change Log | ||
### [0.1.9-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/declarative-type-validator@0.1.9-rc.6...@twilio/declarative-type-validator@0.1.9-rc.7) (2021-09-12) | ||
**Note:** Version bump only for package @twilio/declarative-type-validator | ||
### [0.1.9-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/declarative-type-validator@0.1.9-rc.5...@twilio/declarative-type-validator@0.1.9-rc.6) (2021-09-12) | ||
@@ -8,0 +16,0 @@ |
@@ -10,3 +10,4 @@ // Return if monorepo install. | ||
// Change the "browser" property to "./dist/react-native.js" if React Native | ||
// is detected. | ||
const fs = require("fs"); | ||
@@ -16,12 +17,8 @@ | ||
const mainProjectPackageJson = require(mainProjectPackageJsonPath); | ||
const dependencyPackageJsonPath = "../package.json"; | ||
const dependencyPackageJsonPath = `${__dirname}/../package.json`; | ||
const dependencyPackageJson = require(dependencyPackageJsonPath); | ||
if (typeof mainProjectPackageJson?.dependencies?.["react-native"] !== "undefined") { | ||
console.log(dependencyPackageJson.name, "React Native detected."); | ||
dependencyPackageJson["browser"] = "./dist/react-native.js"; | ||
fs.writeFileSync(dependencyPackageJsonPath, JSON.stringify(dependencyPackageJson, null, 2)); | ||
return; | ||
} | ||
console.log(dependencyPackageJson.name, "No React Native detected."); |
{ | ||
"name": "@twilio/declarative-type-validator", | ||
"version": "0.1.9-rc.6", | ||
"version": "0.1.9-rc.7", | ||
"description": "Declarative runtime type validator for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/lib.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
316505
4623