Skip to content

Commit 1e3ebed

Browse files
committed
Update imports for proxy-codegen and backend-function-client renames
1 parent ece28b9 commit 1e3ebed

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/plugins/apps/src/vite/proxy-codegen.test.ts renamed to packages/plugins/apps/src/backend/proxy-codegen.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This product includes software developed at Datadog (https://www.datadoghq.com/).
33
// Copyright 2019-Present Datadog, Inc.
44

5-
import { generateProxyModule } from '@dd/apps-plugin/vite/proxy-codegen';
5+
import { generateProxyModule } from '@dd/apps-plugin/backend/proxy-codegen';
66

77
describe('Proxy Codegen - generateProxyModule', () => {
88
test('Should generate a proxy module that reads executeBackendFunction off the runtime global', () => {
File renamed without changes.

packages/plugins/apps/src/built/apps-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/* eslint-env browser */
66
/* global globalThis */
7-
import { executeBackendFunction } from '../vite/proxy-codegen/execute-backend-function';
7+
import { executeBackendFunction } from '../backend-function-client/execute-backend-function';
88

99
// Exposed on `globalThis.DD_APPS_RUNTIME` by the apps plugin injection so
1010
// generated proxy modules can call `executeBackendFunction` without importing

packages/plugins/apps/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import { collectAssets } from './assets';
1414
import type { BackendFunction } from './backend/discovery';
1515
import { extractExportedFunctions } from './backend/discovery';
1616
import { encodeQueryName } from './backend/encodeQueryName';
17+
import { generateProxyModule } from './backend/proxy-codegen';
1718
import { BACKEND_FILE_RE, CONFIG_KEY, PLUGIN_NAME } from './constants';
1819
import { resolveIdentifier } from './identifier';
1920
import type { AppsOptions } from './types';
2021
import { uploadArchive } from './upload';
2122
import { validateOptions } from './validate';
2223
import { getVitePlugin } from './vite/index';
23-
import { generateProxyModule } from './vite/proxy-codegen';
2424

2525
export { CONFIG_KEY, PLUGIN_NAME };
2626

0 commit comments

Comments
 (0)