@embroider/shared-internals
Advanced tools
Comparing version 2.8.2-unstable.3e8dbe3 to 2.8.2-unstable.4070ba7
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "2.8.2-unstable.3e8dbe3", | ||
"version": "2.8.2-unstable.4070ba7", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages", |
@@ -5,3 +5,3 @@ export { AppMeta, AddonMeta, PackageInfo } from './metadata'; | ||
export { default as Package, V2AddonPackage as AddonPackage, V2AppPackage as AppPackage, V2Package } from './package'; | ||
export { default as PackageCache } from './package-cache'; | ||
export { default as PackageCache, type PackageCachePublicAPI } from './package-cache'; | ||
export type { RewrittenPackageIndex } from './rewritten-package-cache'; | ||
@@ -8,0 +8,0 @@ export { RewrittenPackageCache } from './rewritten-package-cache'; |
@@ -23,3 +23,2 @@ type Filename = string; | ||
}; | ||
externals?: string[]; | ||
'implicit-modules'?: string[]; | ||
@@ -26,0 +25,0 @@ 'implicit-scripts'?: Filename[]; |
@@ -12,1 +12,6 @@ import Package from './package'; | ||
} | ||
type PublicAPI<T> = { | ||
[K in keyof T]: T[K]; | ||
}; | ||
export type PackageCachePublicAPI = PublicAPI<PackageCache>; | ||
export {}; |
@@ -67,6 +67,2 @@ "use strict"; | ||
let candidate = filename; | ||
const virtualPrefix = 'embroider_virtual:'; | ||
if (candidate.includes(virtualPrefix)) { | ||
candidate = candidate.replace(/^.*embroider_virtual:/, ''); | ||
} | ||
// first we look through our cached packages for any that are rooted right | ||
@@ -73,0 +69,0 @@ // at or above the file. |
@@ -1,2 +0,2 @@ | ||
import PackageCache from './package-cache'; | ||
import PackageCache, { type PackageCachePublicAPI } from './package-cache'; | ||
import Package from './package'; | ||
@@ -7,6 +7,3 @@ export interface RewrittenPackageIndex { | ||
} | ||
type PublicAPI<T> = { | ||
[K in keyof T]: T[K]; | ||
}; | ||
export declare class RewrittenPackageCache implements PublicAPI<PackageCache> { | ||
export declare class RewrittenPackageCache implements PackageCachePublicAPI { | ||
private plainCache; | ||
@@ -27,2 +24,1 @@ constructor(plainCache: PackageCache); | ||
} | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
173606
1712