{"id":13774454,"url":"https://github.com/bitshiftza/rollup-plugin-ts-paths","last_synced_at":"2025-05-11T06:33:05.433Z","repository":{"id":48033003,"uuid":"137800730","full_name":"bitshiftza/rollup-plugin-ts-paths","owner":"bitshiftza","description":"Resolve modules from tsconfig paths in Rollup","archived":false,"fork":false,"pushed_at":"2021-08-10T18:29:30.000Z","size":29,"stargazers_count":22,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-20T11:19:02.554Z","etag":null,"topics":["plugin","rollup","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bitshiftza.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":"2018-06-18T20:05:23.000Z","updated_at":"2024-03-15T01:58:52.000Z","dependencies_parsed_at":"2022-08-12T17:10:39.767Z","dependency_job_id":null,"html_url":"https://github.com/bitshiftza/rollup-plugin-ts-paths","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitshiftza%2Frollup-plugin-ts-paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitshiftza%2Frollup-plugin-ts-paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitshiftza%2Frollup-plugin-ts-paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitshiftza%2Frollup-plugin-ts-paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitshiftza","download_url":"https://codeload.github.com/bitshiftza/rollup-plugin-ts-paths/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528405,"owners_count":21922623,"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":["plugin","rollup","typescript"],"created_at":"2024-08-03T17:01:26.890Z","updated_at":"2025-05-11T06:33:05.183Z","avatar_url":"https://github.com/bitshiftza.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Modules"],"readme":"# rollup-plugin-ts-paths\n\nReplace alias with resolved import from paths in tsconfig.json. Let's you use rollup to bundle/transpile code generated by `tsc` like this\n\n```js\n// src/path/to/foo/foot.ts\nimport { Foo } from 'foo';\n```\nwhere foo is defined in `tsconfig.json`\n\n```json\n{\n  \"compilerOptions\": {\n      \"paths\": {\n        \"foo\": [\n          \"src/path/to/foo/foo.ts\"\n        ]\n      }\n  }\n}\n\n\n```\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-plugin-ts-paths\n```\n\n\n## Usage\n\nGenerally, you need to ensure that rollup-plugin-ts-paths goes *before* other things (like rollup-plugin-commonjs) in your `plugins` array, so that the correc file can be resolved from an import.\n\n\n```js\n// rollup.config.js\nimport tsConfigPaths from 'rollup-plugin-ts-paths';\n\nexport default {\n  // ...\n  plugins: [\n    tsConfigPaths()\n  ]\n};\n```\n\n\n## Options\n\n```js\n{\n  // The directory the TS config file can be found in (optional)\n  tsConfigDirectory: processs.cwd()\n}\n```\n\n\n## Limitations\n\nCurrently on the first entry of a path specified in a `tsconfig.json` is supported.\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitshiftza%2Frollup-plugin-ts-paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitshiftza%2Frollup-plugin-ts-paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitshiftza%2Frollup-plugin-ts-paths/lists"}