{"id":22129157,"url":"https://github.com/valentiniljaz/rollup-plugin-tsc-alias","last_synced_at":"2025-07-25T18:32:00.364Z","repository":{"id":42424511,"uuid":"473919663","full_name":"valentiniljaz/rollup-plugin-tsc-alias","owner":"valentiniljaz","description":"Replace alias paths with relative paths after typescript compilation during rollup bundling","archived":false,"fork":false,"pushed_at":"2022-04-06T20:23:41.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-09T10:32:20.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valentiniljaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-25T08:02:34.000Z","updated_at":"2023-07-24T07:28:36.000Z","dependencies_parsed_at":"2022-09-10T13:00:40.025Z","dependency_job_id":null,"html_url":"https://github.com/valentiniljaz/rollup-plugin-tsc-alias","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Frollup-plugin-tsc-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Frollup-plugin-tsc-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Frollup-plugin-tsc-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Frollup-plugin-tsc-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valentiniljaz","download_url":"https://codeload.github.com/valentiniljaz/rollup-plugin-tsc-alias/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227606482,"owners_count":17792795,"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":[],"created_at":"2024-12-01T17:58:57.940Z","updated_at":"2025-07-25T18:32:00.356Z","avatar_url":"https://github.com/valentiniljaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rollup plugin: tsc-alias\n\nReplace alias paths with relative paths after typescript compilation during rollup bundling\n\n## Installation\n\n### npm\n\n`npm install rollup-plugin-tsc-alias --save-dev`\n\n### yarn\n\n`yarn add rollup-plugin-tsc-alias --dev`\n\n### Example\n\nTo run `tsc-alias` after TS built add the following to `rollup.config.js`:\n\n```JavaScript\nimport tscAlias from 'rollup-plugin-tsc-alias';\n\nexport default {\n  entry: './src/index.ts',\n  output: {\n    dest: './dist/bundle.js',\n  },\n  plugins: [\n    tscAlias({\n      // OPTIONS\n    })\n  ]\n};\n```\n\nAll the available options:\n\n\u003ctable\u003e\n  \u003cthead\u003e\n  \u003ctr\u003e\n    \u003cth\u003eOption\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003cth\u003eDefault Value\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003econfigFile\u003c/td\u003e\n      \u003ctd\u003epath to tsconfig.json\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003e'tsconfig.json'\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ewatch\u003c/td\u003e\n      \u003ctd\u003eObserve file changes\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eoutDir\u003c/td\u003e\n      \u003ctd\u003eRun in a folder leaving the \"outDir\" of the tsconfig.json (relative path to tsconfig)\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003etsconfig.compilerOptions.outDir\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003edeclarationDir\u003c/td\u003e\n      \u003ctd\u003eWorks the same as outDir but for declarationDir\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003etsconfig.compilerOptions.declarationDir\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eresolveFullPaths\u003c/td\u003e\n      \u003ctd\u003eAttempt to replace incomplete import paths (those not ending in \u003ccode\u003e.js\u003c/code\u003e) with fully resolved paths (for ECMAScript Modules compatibility)\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003esilent\u003c/td\u003e\n      \u003ctd\u003eReduced terminal output. This is a deprecated option and no longer has any effect.\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003etrue\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003everbose\u003c/td\u003e\n      \u003ctd\u003eAdditional information is output to the terminal\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ereplacers\u003c/td\u003e\n      \u003ctd\u003eFiles to import as extra replacers \u003ca href=\"https://github.com/justkey007/tsc-alias/discussions/73\"\u003eMore info\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003e[]\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eoutput\u003c/td\u003e\n      \u003ctd\u003eThe output object tsc-alias will send logs to.\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003enew Output(options.verbose)\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## Author\n\nThis project is maintained by [Valentin Iljaž](https://github.com/valentiniljaz).\n\n## License\n\nMIT\n\n## See also\n\nIf you find this Rollup plugin useful, you might also be interested in my other project, [Webacus](https://webacus.dev).\n\n\u003cp\u003e\n  \u003ca href=\"https://webacus.dev\" title=\"Webacus\"\u003e\n    \u003cimg src=\"https://webacus.dev/imgs/icons/webacus_square_logo.jpg\" alt=\"Webacus\" width=\"100px\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n  Webacus is the all-in-one toolkit designed to streamline the workflow of web developers. It solves the common problem of needing to quickly perform micro-tasks like encoding/decoding strings or formatting data by providing a unified platform with over 120 interconnected tools. Instead of searching for individual online tools, developers can access everything they need within Webacus, benefiting from a consistent interface and the ability to chain operations together for complex tasks. This local-first approach ensures speed, security, and privacy, allowing developers to focus on coding rather than managing tools.\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentiniljaz%2Frollup-plugin-tsc-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalentiniljaz%2Frollup-plugin-tsc-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentiniljaz%2Frollup-plugin-tsc-alias/lists"}