{"id":19071927,"url":"https://github.com/cyansalt/typescript-transform-aliases","last_synced_at":"2025-04-28T15:58:47.126Z","repository":{"id":57383969,"uuid":"330866607","full_name":"CyanSalt/typescript-transform-aliases","owner":"CyanSalt","description":"Transform aliases in TypeScript files.","archived":false,"fork":false,"pushed_at":"2024-12-27T06:14:23.000Z","size":366,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T15:58:42.288Z","etag":null,"topics":["typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyanSalt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-19T04:46:45.000Z","updated_at":"2024-12-27T06:14:26.000Z","dependencies_parsed_at":"2023-12-07T14:23:53.715Z","dependency_job_id":"b3f78327-d5eb-4a57-b678-fbd30dfd8ec7","html_url":"https://github.com/CyanSalt/typescript-transform-aliases","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Ftypescript-transform-aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Ftypescript-transform-aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Ftypescript-transform-aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Ftypescript-transform-aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyanSalt","download_url":"https://codeload.github.com/CyanSalt/typescript-transform-aliases/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342720,"owners_count":21574244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["typescript"],"created_at":"2024-11-09T01:32:46.114Z","updated_at":"2025-04-28T15:58:47.066Z","avatar_url":"https://github.com/CyanSalt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typescript-transform-aliases\n\n[![npm](https://img.shields.io/npm/v/typescript-transform-aliases.svg)](https://www.npmjs.com/package/typescript-transform-aliases)\n\nTransform aliases in TypeScript files.\n\n## Install\n\n```sh\nnpm i -D typescript-transform-aliases\n# or\nyarn add -D typescript-transform-aliases\n```\n\n## Usage\n\nWith [ttypescript](https://github.com/cevek/ttypescript/) or [ts-patch](https://github.com/nonara/ts-patch)\n\n```json\n{\n  \"compilerOptions\": {\n    \"plugins\": [\n      {\n        \"transform\": \"typescript-transform-aliases\",\n        \"after\": true,\n        \"afterDeclarations\": true,\n        \"aliases\": {\n          // for example\n          \"^lodash-es$\": \"lodash\"\n        }\n      }\n    ]\n  }\n}\n```\n\n## Similar packages\n\n- [typescript-transform-paths](https://github.com/LeDDGroup/typescript-transform-paths)\n\n- [@zerollup/ts-transform-paths](https://github.com/zerkalica/zerollup/tree/master/packages/ts-transform-paths/)\n\n- [ts-transform-import-path-rewrite](https://github.com/dropbox/ts-transform-import-path-rewrite)\n\nBoth `typescript-transform-paths` and `@zerollup/ts-transform-paths` transform the `paths` field in `tsconfig.json`, which are usually aliases for **relative** paths;\n\n`ts-transform-import-path-rewrite` could transform any aliases but does not support `require` or dynamic imports.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Ftypescript-transform-aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyansalt%2Ftypescript-transform-aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Ftypescript-transform-aliases/lists"}