Skip to content

Commit

Permalink
fix(vscode): Update pack command and function to check path exists (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ccastrotrejo committed May 1, 2024
1 parent e9a5297 commit ebad1be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/vs-code-designer/package.json
Expand Up @@ -40,7 +40,7 @@
"scripts": {
"build:extension": "tsup && pnpm run copyFiles && pnpm -w run build:vscode-react",
"copyFiles": "node extension-copy-svgs.js",
"vscode:designer:pack": "pnpm run build && pnpm run vscode:designer:pack:step1 && pnpm run vscode:designer:pack:step2",
"vscode:designer:pack": "pnpm run build:extension && pnpm run vscode:designer:pack:step1 && pnpm run vscode:designer:pack:step2",
"vscode:designer:pack:step1": "cd ./dist && npm install",
"vscode:designer:pack:step2": "cd ./dist && vsce package",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
Expand Down
Expand Up @@ -78,7 +78,7 @@ export async function getLocalSettingsJson(
localSettingsPath: string,
allowOverwrite = false
): Promise<ILocalSettingsJson> {
if (await fse.pathExists(localSettingsPath)) {
if (fse.existsSync(localSettingsPath)) {
const data: string = (await fse.readFile(localSettingsPath)).toString();
const localSettingsUri: Uri = Uri.file(localSettingsPath);

Expand Down

0 comments on commit ebad1be

Please sign in to comment.