Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path starting with @ is not replaced #212

Open
razor-x opened this issue Feb 17, 2024 · 0 comments
Open

Path starting with @ is not replaced #212

razor-x opened this issue Feb 17, 2024 · 0 comments

Comments

@razor-x
Copy link

razor-x commented Feb 17, 2024

Reproducible in this project https://github.com/seamapi/types at this commit: seamapi/types@68ec482

Project defines paths as

{
    "paths": {
      "@seamapi/types": ["./src/index.ts"],
      "@seamapi/types/connect": ["./src/connect.ts"],
      "@seamapi/types/devicedb": ["./src/devicedb.ts"],
      "lib/*": ["./src/lib/*"]
    }
}

And has an import statement

import { schemas as devicedb_schemas } from '@seamapi/types/devicedb'

but in the final output, this import statement is unchanged, however it should be replaced as

import { schemas as devicedb_schemas } from '../../../../../../devicedb.js';

Workaround is adding a custom replacer: seamapi/types#610

@razor-x razor-x changed the title Path starting with @ is not replaces Path starting with @ is not replaced Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant