fix: Booking atom phone booking field and booking fields order (#18678)
* chore: examples app make managed user admin * fix: phone field not appearing * fix: booking fields order * feat: local libraries setup script * chore: add log when parsing booking field fails * fix: backwards compatbile name booking field * chore: libraries publish support scripts * chore: bump libraries * docs * fix: phone default field return label and placeholder * fix: e2e tests
This commit is contained in:
1 parent
79a8ab79f8
commit
f582faed2b
15 files changed
+336
-163
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const VERSION = "9.9.9";
|
||||
|
||||
// note(Lauris): update libraries package.json version
|
||||
const librariesPath = path.join(__dirname, "..");
|
||||
const librariesPackageJsonPath = path.join(librariesPath, "package.json");
|
||||
const librariesPackageJson = JSON.parse(fs.readFileSync(librariesPackageJsonPath, "utf8"));
|
||||
|
||||
librariesPackageJson.version = VERSION;
|
||||
|
||||
fs.writeFileSync(librariesPackageJsonPath, `${JSON.stringify(librariesPackageJson, null, 2)}\n`);
|
||||
|
||||
// note(Lauris): update API v2 package.json dependency
|
||||
const apiV2PackageJsonPath = path.join(librariesPath, "..", "..", "..", "apps", "api", "v2", "package.json");
|
||||
const apiV2PackageJson = JSON.parse(fs.readFileSync(apiV2PackageJsonPath, "utf8"));
|
||||
|
||||
apiV2PackageJson.dependencies["@calcom/platform-libraries"] = `npm:@calcom/platform-libraries@${VERSION}`;
|
||||
|
||||
fs.writeFileSync(apiV2PackageJsonPath, `${JSON.stringify(apiV2PackageJson, null, 2)}\n`);
|
||||
Reference in new issue
Block a user