{"library":"rollup-plugin-dts-path-alias","title":"rollup-plugin-dts-path-alias","description":"A Rollup plugin that resolves TypeScript path aliases and baseUrl in .d.ts files, converting them to relative paths. Current version 0.0.3 (2024), stable but early-stage. Designed for individual .ts file builds (not bundled .d.ts). Key differentiator: works with @rollup/plugin-typescript, not rollup-plugin-dts. Supports monorepos and auto-discovers tsconfig.json. Helps ensure type declaration portability across projects.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-dts-path-alias"],"cli":null},"imports":["import dtsPathAlias from 'rollup-plugin-dts-path-alias'","import dtsPathAlias from 'rollup-plugin-dts-path-alias'","import type { Plugin } from 'rollup';\nimport dtsPathAlias from 'rollup-plugin-dts-path-alias'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import typescript from '@rollup/plugin-typescript';\nimport dtsPathAlias from 'rollup-plugin-dts-path-alias';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    dtsPathAlias(),\n    typescript(),\n  ],\n};","lang":"typescript","description":"Typical Rollup config using @rollup/plugin-typescript and dtsPathAlias to compile TypeScript and resolve path aliases in .d.ts files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}