├── .github └── FUNDING.yml ├── .gitignore ├── .prettierrc ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── LICENSE ├── README.md ├── SECURITY.md ├── demo ├── .npmrc ├── index.html ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── server.mjs ├── src │ ├── Root.module.css │ ├── Root.tsx │ ├── entry-server.tsx │ ├── main.jsx │ └── styles.css ├── tsconfig.json └── vite.config.ts ├── dist └── index.d.mts ├── package.json ├── pnpm-lock.yaml ├── src ├── debug.ts ├── index.ts ├── logFile.ts ├── mappings.ts ├── path.ts └── types.ts ├── test ├── __fixtures__ │ ├── configDir-syntax │ │ ├── index.ts │ │ ├── log.ts │ │ └── tsconfig.json │ ├── extends-paths │ │ ├── case.md │ │ ├── config.json │ │ ├── my-app │ │ │ ├── index.ts │ │ │ ├── message.ts │ │ │ └── tsconfig.json │ │ └── tsconfig.json │ ├── paths-outside-root │ │ ├── config.json │ │ ├── my-app │ │ │ ├── index.ts │ │ │ ├── package.json │ │ │ └── tsconfig.json │ │ └── my-utils │ │ │ ├── log.ts │ │ │ └── tsconfig.json │ ├── with-baseUrl │ │ ├── index.ts │ │ ├── log.ts │ │ └── tsconfig.json │ └── without-baseUrl │ │ ├── index.ts │ │ ├── log.ts │ │ └── tsconfig.json ├── plugin.test.ts └── tsconfig.json ├── tsconfig.json └── vitest.config.ts /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: 2 | - aleclarson 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/SECURITY.md -------------------------------------------------------------------------------- /demo/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-workspace-root-check=true -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/index.html -------------------------------------------------------------------------------- /demo/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/package.json -------------------------------------------------------------------------------- /demo/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/pnpm-lock.yaml -------------------------------------------------------------------------------- /demo/pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/server.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/server.mjs -------------------------------------------------------------------------------- /demo/src/Root.module.css: -------------------------------------------------------------------------------- 1 | .main { 2 | background: black; 3 | } 4 | -------------------------------------------------------------------------------- /demo/src/Root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/src/Root.tsx -------------------------------------------------------------------------------- /demo/src/entry-server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/src/entry-server.tsx -------------------------------------------------------------------------------- /demo/src/main.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/src/main.jsx -------------------------------------------------------------------------------- /demo/src/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/src/styles.css -------------------------------------------------------------------------------- /demo/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/tsconfig.json -------------------------------------------------------------------------------- /demo/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/demo/vite.config.ts -------------------------------------------------------------------------------- /dist/index.d.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/dist/index.d.mts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/src/debug.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/logFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/src/logFile.ts -------------------------------------------------------------------------------- /src/mappings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/src/mappings.ts -------------------------------------------------------------------------------- /src/path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/src/path.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/__fixtures__/configDir-syntax/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/configDir-syntax/index.ts -------------------------------------------------------------------------------- /test/__fixtures__/configDir-syntax/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/configDir-syntax/log.ts -------------------------------------------------------------------------------- /test/__fixtures__/configDir-syntax/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/configDir-syntax/tsconfig.json -------------------------------------------------------------------------------- /test/__fixtures__/extends-paths/case.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/extends-paths/case.md -------------------------------------------------------------------------------- /test/__fixtures__/extends-paths/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": "./my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/__fixtures__/extends-paths/my-app/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/extends-paths/my-app/index.ts -------------------------------------------------------------------------------- /test/__fixtures__/extends-paths/my-app/message.ts: -------------------------------------------------------------------------------- 1 | export const message = 'Hello world' 2 | -------------------------------------------------------------------------------- /test/__fixtures__/extends-paths/my-app/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/extends-paths/my-app/tsconfig.json -------------------------------------------------------------------------------- /test/__fixtures__/extends-paths/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/extends-paths/tsconfig.json -------------------------------------------------------------------------------- /test/__fixtures__/paths-outside-root/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": "./my-app" 3 | } -------------------------------------------------------------------------------- /test/__fixtures__/paths-outside-root/my-app/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/paths-outside-root/my-app/index.ts -------------------------------------------------------------------------------- /test/__fixtures__/paths-outside-root/my-app/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/paths-outside-root/my-app/package.json -------------------------------------------------------------------------------- /test/__fixtures__/paths-outside-root/my-app/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/paths-outside-root/my-app/tsconfig.json -------------------------------------------------------------------------------- /test/__fixtures__/paths-outside-root/my-utils/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/paths-outside-root/my-utils/log.ts -------------------------------------------------------------------------------- /test/__fixtures__/paths-outside-root/my-utils/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/paths-outside-root/my-utils/tsconfig.json -------------------------------------------------------------------------------- /test/__fixtures__/with-baseUrl/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/with-baseUrl/index.ts -------------------------------------------------------------------------------- /test/__fixtures__/with-baseUrl/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/with-baseUrl/log.ts -------------------------------------------------------------------------------- /test/__fixtures__/with-baseUrl/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/with-baseUrl/tsconfig.json -------------------------------------------------------------------------------- /test/__fixtures__/without-baseUrl/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/without-baseUrl/index.ts -------------------------------------------------------------------------------- /test/__fixtures__/without-baseUrl/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/without-baseUrl/log.ts -------------------------------------------------------------------------------- /test/__fixtures__/without-baseUrl/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/__fixtures__/without-baseUrl/tsconfig.json -------------------------------------------------------------------------------- /test/plugin.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/plugin.test.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aleclarson/vite-tsconfig-paths/HEAD/vitest.config.ts --------------------------------------------------------------------------------