MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / importSpecifier

Function importSpecifier

scripts/smoke-test-packed.ts:70–71  ·  view source on GitHub ↗
(pkgName: string, subpath: string)

Source from the content-addressed store, hash-verified

68const subpathsToTest = (pkg: PackageJson): readonly string[] => Object.keys(pkg.exports ?? {});
69
70const importSpecifier = (pkgName: string, subpath: string): string =>
71 subpath === "." ? pkgName : `${pkgName}${subpath.slice(1)}`;
72
73type SmokeFailure = {
74 readonly pkg: string;

Callers 1

smokeTestPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected