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

ts-transform-paths does not work at all. #40

Open
lemiesz opened this issue Dec 15, 2022 · 0 comments
Open

ts-transform-paths does not work at all. #40

lemiesz opened this issue Dec 15, 2022 · 0 comments

Comments

@lemiesz
Copy link

lemiesz commented Dec 15, 2022

Here is my ts config

{
  "compileOnSave": true,
  "noEmit": true,
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@app/*": ["src/*"]
    },
   "plugins": [
            { "transform": "typescript-transform-paths", "afterDeclarations": true }
      ],
    "lib": ["dom", "ES6"], 
    "skipLibCheck": true,
    "module": "commonjs",
    "outDir": "dist",
    "sourceMap": true,
    "target": "es6",
    "types": ["jest", "node"],
    "isolatedModules": false,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "noImplicitAny": true,
    "preserveConstEnums": true,
    "suppressImplicitAnyIndexErrors": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "incremental": true,
    "allowJs": true
  },
  "include": ["src/**/*.ts"]
}

im calling it with the following command

        "compile": "rm -rf ./dist/* && ttsc -p tsconfig.build.json",

However it just does not rewrite my paths at all.

My JS gets compiled with all the @app/ declarations.

library versions

        "tsconfig-paths": "^3.14.0",
        "ttypescript": "^1.5.13",
        "typescript": "^4.6.2"
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