Critical bug fixes and recall improvements (#68)

This commit is contained in:
Eli Peter 2026-05-11 12:42:39 -04:00 committed by GitHub
parent 7d0e7320e2
commit 55247b7fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
352 changed files with 60069 additions and 900 deletions

View file

@ -0,0 +1,3 @@
export function baz() {
return 2;
}

View file

@ -0,0 +1,6 @@
{
"name": "web-app",
"version": "0.0.0",
"main": "src/index.ts",
"private": true
}

View file

@ -0,0 +1,3 @@
export function foo() {
return 1;
}

View file

@ -0,0 +1,9 @@
import { foo } from "./foo";
import { baz } from "../bar/baz";
import { util } from "@scope/util";
import { x } from "@/lib/x";
import { promises as fs } from "node:fs/promises";
export function main() {
return foo() + baz() + util() + x();
}

View file

@ -0,0 +1,3 @@
export function x() {
return 4;
}

View file

@ -0,0 +1,10 @@
{
// tsconfig with a path alias rooted at the app's src directory.
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@/*": ["*"]
}
},
"include": ["src/**/*"]
}

6
tests/fixtures/resolver/package.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"name": "resolver-fixture-root",
"version": "0.0.0",
"private": true,
"workspaces": ["apps/*", "packages/*"]
}

View file

@ -0,0 +1 @@
export const blocked = "should not resolve via exports gate";

View file

@ -0,0 +1,15 @@
{
"name": "@scope/exports-pkg",
"version": "0.0.0",
"private": true,
"main": "src/legacy-main.ts",
"exports": {
".": {
"import": "./src/main.ts",
"default": "./src/fallback.ts"
},
"./sub": "./src/sub.ts",
"./feat/*": "./src/feat/*.ts",
"./blocked": null
}
}

View file

@ -0,0 +1 @@
export const fallback = "fallback";

View file

@ -0,0 +1 @@
export const widget = "widget";

View file

@ -0,0 +1 @@
export const legacy = "legacy";

View file

@ -0,0 +1 @@
export const main = "main";

View file

@ -0,0 +1 @@
export const sub = "sub";

View file

@ -0,0 +1,6 @@
{
"name": "@scope/util",
"version": "0.0.0",
"main": "src/index.ts",
"private": true
}

View file

@ -0,0 +1,3 @@
export function util() {
return 3;
}