-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Fixes * Removes the tsconfig extends from the studio tsconfig. * Adds virtual modules to optimizeDeps.exclude in studio's vite config.
- Loading branch information
Showing
8 changed files
with
190 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { execSync } from "child_process"; | ||
import fs from "fs"; | ||
|
||
const newVersion = process.argv[2]; | ||
|
||
function bumpStudio() { | ||
const packageJsonPath = "./packages/studio/package.json"; | ||
const packageJson = readJson(packageJsonPath); | ||
packageJson.dependencies["@yext/studio-plugin"] = newVersion; | ||
packageJson.dependencies["@yext/studio-ui"] = newVersion; | ||
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2)); | ||
bumpPackage("studio"); | ||
} | ||
|
||
function bumpPackage(packageName) { | ||
console.log(`... bumping ${packageName}`); | ||
execSync(`npm version ${newVersion} -w=packages/${packageName}`); | ||
} | ||
|
||
function readJson(filepath) { | ||
return JSON.parse(fs.readFileSync(filepath, "utf-8")); | ||
} | ||
|
||
function main() { | ||
bumpPackage("studio-plugin"); | ||
bumpPackage("studio-ui"); | ||
bumpStudio(); | ||
} | ||
|
||
main(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.