Skip to content

Commit

Permalink
rename to STATIC_SITE_CLIENT_WORKING_FOLDER
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikun committed Nov 2, 2023
1 parent a68c403 commit d7163a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
updateSwaCliConfigFile,
} from "../../../core";
import { chooseOrCreateProjectDetails, getStaticSiteDeployment } from "../../../core/account";
import { DEFAULT_RUNTIME_LANGUAGE, STATIC_SITE_CLIENT_Working_Folder } from "../../../core/constants";
import { DEFAULT_RUNTIME_LANGUAGE, STATIC_SITE_CLIENT_WORKING_FOLDER } from "../../../core/constants";
import { cleanUp, getDeployClientPath } from "../../../core/deploy-client";
import { swaCLIEnv } from "../../../core/env";
import { getDefaultVersion } from "../../../core/functions-versions";
Expand Down Expand Up @@ -255,7 +255,7 @@ export async function deploy(options: SWACLIConfig) {
FUNCTION_LANGUAGE_VERSION: apiVersion,
};

const clientWorkingDir = path.resolve(deployClientEnv.REPOSITORY_BASE ?? "", STATIC_SITE_CLIENT_Working_Folder);
const clientWorkingDir = path.resolve(deployClientEnv.REPOSITORY_BASE ?? "", STATIC_SITE_CLIENT_WORKING_FOLDER);
if (!fs.existsSync(clientWorkingDir)) {
fs.mkdirSync(clientWorkingDir);
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const DEPLOY_BINARY_NAME = "StaticSitesClient";
export const DEPLOY_BINARY_STABLE_TAG = "stable";
export const DEPLOY_FOLDER = path.join(os.homedir(), ".swa", "deploy");
export const STATIC_SITE_CLIENT_RELEASE_METADATA_URL = "https://swalocaldeploy.azureedge.net/downloads/versions.json";
export const STATIC_SITE_CLIENT_Working_Folder = "staticsites-cli";
export const STATIC_SITE_CLIENT_WORKING_FOLDER = "staticsites-cli";

// Data-api-builder related constants
export const DATA_API_BUILDER_BINARY_NAME = "DataApiBuilder";
Expand Down

0 comments on commit d7163a6

Please sign in to comment.