@embroider/shared-internals
Advanced tools
Comparing version 2.6.1-unstable.80f442d to 2.6.1-unstable.93b39c4
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "2.6.1-unstable.80f442d", | ||
"version": "2.6.1-unstable.93b39c4", | ||
"private": false, | ||
@@ -56,3 +56,3 @@ "description": "Utilities shared among the other embroider packages", | ||
"tmp": "^0.1.0", | ||
"typescript": "^5.1.6" | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -9,4 +9,4 @@ import Package from './package'; | ||
get(packageRoot: string): Package; | ||
ownerOfFile(filename: string): Package | undefined; | ||
ownerOfFile(filenameInput: string): Package | undefined; | ||
static shared(identifier: string, appRoot: string): PackageCache; | ||
} |
@@ -65,3 +65,8 @@ "use strict"; | ||
} | ||
ownerOfFile(filename) { | ||
ownerOfFile(filenameInput) { | ||
let filename = filenameInput; | ||
const virtualPrefix = 'embroider_virtual:'; | ||
if (filename.includes(virtualPrefix)) { | ||
filename = filename.replace(/^.*embroider_virtual:/, ''); | ||
} | ||
let segments = filename.replace(/\\/g, '/').split(path_1.posix.sep); | ||
@@ -68,0 +73,0 @@ // first we look through our cached packages for any that are rooted right |
@@ -24,9 +24,9 @@ import type { NodePath } from '@babel/traverse'; | ||
Program: { | ||
enter(path: NodePath<Babel.types.Program>, state: State): void; | ||
exit(path: NodePath<Babel.types.Program>, state: State): void; | ||
enter(path: NodePath<t.Program>, state: State): void; | ||
exit(path: NodePath<t.Program>, state: State): void; | ||
}; | ||
ExportDefaultDeclaration(path: NodePath<Babel.types.ExportDefaultDeclaration>, state: State): void; | ||
ExportNamedDeclaration(path: NodePath<Babel.types.ExportNamedDeclaration>, state: State): void; | ||
ExportDefaultDeclaration(path: NodePath<t.ExportDefaultDeclaration>, state: State): void; | ||
ExportNamedDeclaration(path: NodePath<t.ExportNamedDeclaration>, state: State): void; | ||
}; | ||
}; | ||
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
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
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
158151
1579