@netlify/edge-bundler 9.4.0 → 9.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -212,7 +212,7 @@ export const vendorNPMSpecifiers = async ({ basePath, directory, functions, impo
|
|
|
212
212
|
const types = (_a = ops.find((op) => path.basename(file.path) === path.basename(op.filePath))) === null || _a === void 0 ? void 0 : _a.types;
|
|
213
213
|
let content = file.text;
|
|
214
214
|
if (types) {
|
|
215
|
-
content = `/// <reference types="${path.relative(file.path, types)}" />\n${content}`;
|
|
215
|
+
content = `/// <reference types="${path.relative(path.dirname(file.path), types)}" />\n${content}`;
|
|
216
216
|
}
|
|
217
217
|
await fs.writeFile(file.path, content);
|
|
218
218
|
}));
|
|
@@ -85,7 +85,7 @@ test('Starts a server and serves requests for edge functions', async () => {
|
|
|
85
85
|
local: 'i love netlify',
|
|
86
86
|
});
|
|
87
87
|
const idBarrelFile = await readFile(join(servePath, 'bundled-id.js'), 'utf-8');
|
|
88
|
-
expect(idBarrelFile).toContain(`/// <reference types="${join('..', '..', '
|
|
88
|
+
expect(idBarrelFile).toContain(`/// <reference types="${join('..', '..', 'node_modules', 'id', 'types.d.ts')}" />`);
|
|
89
89
|
const identidadeBarrelFile = await readFile(join(servePath, 'bundled-pt-committee__identidade.js'), 'utf-8');
|
|
90
|
-
expect(identidadeBarrelFile).toContain(`/// <reference types="${join('..', '..', '
|
|
90
|
+
expect(identidadeBarrelFile).toContain(`/// <reference types="${join('..', '..', 'node_modules', '@types', 'pt-committee__identidade', 'index.d.ts')}" />`);
|
|
91
91
|
});
|