Skip to content

chrisandrewcl/tsx-dependency-paths

Repository files navigation

tsx dependency path

This is a minimal reproduction of what seems to be an issue when using tsx with workspace dependencies that use alias.

Overview

This is a monorepo with two packages:

dependency package

A package with aliased imports (tsconfig paths). Relevant files:

main package

This packages uses tsx and depends on the dependency package. Relevant files:

  • src/thisFailsWithTsx.ts: it depends on the dependency package portion that uses aliases; this can be tested with pnpm tsxFail
  • packages/main/src/thisWorksWithTsx.ts: it depends on the dependency package portion that does't use aliases; this can be tested with pnpm tsxOk
  • packages/main/build.js: an esbuild build script for reference, which works on both cases (with and without aliases); this can be tested with pnpm build && pnpm builtWithAlias

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published