Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(client): fix isolated data proxy issues [DPGA, 3] #13599

Merged
merged 9 commits into from Jun 7, 2022
2 changes: 1 addition & 1 deletion packages/client/src/generation/TSClient/TSClient.ts
Expand Up @@ -97,7 +97,7 @@ export class TSClient implements Generatable {

const code = `${commonCodeJS({ ...this.options, browser: false })}
${buildRequirePath(edge)}
millsp marked this conversation as resolved.
Show resolved Hide resolved
${buildDirname(dataProxy, relativeOutdir, runtimeDir)}
${buildDirname(edge, relativeOutdir, runtimeDir)}
millsp marked this conversation as resolved.
Show resolved Hide resolved
/**
* Enums
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/generation/utils/buildDirname.ts
Expand Up @@ -2,13 +2,13 @@ import path from 'path'

/**
* Builds a `dirname` variable that holds the location of the generated client.
* @param dataProxy
* @param edge
* @param relativeOutdir
* @param runtimeDir
* @returns
*/
export function buildDirname(dataProxy: boolean | undefined, relativeOutdir: string, runtimeDir: string) {
if (dataProxy === true) {
export function buildDirname(edge: boolean | undefined, relativeOutdir: string, runtimeDir: string) {
if (edge === true) {
millsp marked this conversation as resolved.
Show resolved Hide resolved
return buildDirnameDefault()
}

Expand Down