Skip to content

Commit

Permalink
v0.23.1 (#383)
Browse files Browse the repository at this point in the history
### Fixes

* Removes the tsconfig extends from the studio tsconfig.
* Adds virtual modules to optimizeDeps.exclude in studio's vite config.
  • Loading branch information
oshi97 authored Sep 22, 2023
1 parent dba8a4d commit f479087
Show file tree
Hide file tree
Showing 8 changed files with 190 additions and 125 deletions.
30 changes: 30 additions & 0 deletions bump-versions.mjs
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();
205 changes: 137 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/studio-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/studio-plugin",
"version": "0.23.0",
"version": "0.23.1",
"types": "./lib/index.d.ts",
"main": "./lib/index.js",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions packages/studio-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/studio-ui",
"version": "0.23.0",
"version": "0.23.1",
"types": "./lib/src/index.d.ts",
"main": "./lib/src/index.js",
"type": "module",
Expand Down Expand Up @@ -62,7 +62,7 @@
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/react-modal": "3.13.1",
"@yext/studio-plugin": "0.23.0",
"@yext/studio-plugin": "*",
"copyfiles": "^2.4.1",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.3.1",
Expand All @@ -75,6 +75,6 @@
"vite-plugin-svgr": "^2.4.0"
},
"peerDependencies": {
"@yext/studio-plugin": "0.23.0"
"@yext/studio-plugin": "*"
}
}
6 changes: 3 additions & 3 deletions packages/studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/studio",
"version": "0.23.0",
"version": "0.23.1",
"types": "./lib/types.d.ts",
"type": "module",
"bin": {
Expand All @@ -14,8 +14,8 @@
},
"dependencies": {
"@vitejs/plugin-react": "^4.0.4",
"@yext/studio-plugin": "0.23.0",
"@yext/studio-ui": "0.23.0",
"@yext/studio-plugin": "0.23.1",
"@yext/studio-ui": "0.23.1",
"autoprefixer": "^10.4.14",
"cac": "^6.7.14",
"cross-env": "^7.0.3",
Expand Down
Loading

0 comments on commit f479087

Please sign in to comment.