@netlify/edge-bundler
Advanced tools
Comparing version 9.4.0 to 9.4.1
@@ -215,3 +215,3 @@ import { promises as fs } from 'fs'; | ||
if (types) { | ||
content = `/// <reference types="${path.relative(file.path, types)}" />\n${content}`; | ||
content = `/// <reference types="${path.relative(path.dirname(file.path), types)}" />\n${content}`; | ||
} | ||
@@ -218,0 +218,0 @@ await fs.writeFile(file.path, content); |
@@ -88,5 +88,5 @@ import { readFile } from 'fs/promises'; | ||
const idBarrelFile = await readFile(join(servePath, 'bundled-id.js'), 'utf-8'); | ||
expect(idBarrelFile).toContain(`/// <reference types="${join('..', '..', '..', 'node_modules', 'id', 'types.d.ts')}" />`); | ||
expect(idBarrelFile).toContain(`/// <reference types="${join('..', '..', 'node_modules', 'id', 'types.d.ts')}" />`); | ||
const identidadeBarrelFile = await readFile(join(servePath, 'bundled-pt-committee__identidade.js'), 'utf-8'); | ||
expect(identidadeBarrelFile).toContain(`/// <reference types="${join('..', '..', '..', 'node_modules', '@types', 'pt-committee__identidade', 'index.d.ts')}" />`); | ||
expect(identidadeBarrelFile).toContain(`/// <reference types="${join('..', '..', 'node_modules', '@types', 'pt-committee__identidade', 'index.d.ts')}" />`); | ||
}); |
{ | ||
"name": "@netlify/edge-bundler", | ||
"version": "9.4.0", | ||
"version": "9.4.1", | ||
"description": "Intelligently prepare Netlify Edge Functions for deployment", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3137934