Skip to content

Declaration files (*.d.ts) is not transformed. #4

Closed
@joshuaavalon

Description

@joshuaavalon

I create an repository for the bug.

https://github.com/joshuaavalon/typescript-transform-paths-bug

After npm run build, lib\foo\index.js has

const a_1 = require("..\\a");

but lib\foo\index.d.ts has

import { A } from "@/a";
export declare type B = {
    b: A;
};

Edit:

{ "transform": "typescript-transform-paths", "afterDeclarations": true }

It transforms *.d.ts but it does not tranform .js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions