https://github.com/yet3/skip-index
A group of plugins that remove the need for `index.ts` barrel files.
https://github.com/yet3/skip-index
Last synced: about 1 month ago
JSON representation
A group of plugins that remove the need for `index.ts` barrel files.
- Host: GitHub
- URL: https://github.com/yet3/skip-index
- Owner: yet3
- Created: 2026-06-18T19:19:38.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-06-18T20:51:50.000Z (about 1 month ago)
- Last Synced: 2026-06-18T22:12:27.840Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Skip Index
A group of plugins that remove the need for `index.ts` barrel files.
When you `import ./settings`, instead of requiring an `index.ts` that just re-exports `./settings/settings.ts`, the plugin resolves it directly.
`main.ts`
```ts
// Auto matches ./settings/settings.ts no need for index.ts
// settings/
// setting.ts
import "./settings"
```
## Packages
- [@skip-index/vite-plugin](#vite-plugin)
- [@skip-index/ts-plugin](#typescript-plugin)
## Vite Plugin
[package](/packages/vite-plugin/README.md)
#### Installation
```sh
npm install --save-dev @skip-index/vite-plugin
pnpm install -D @skip-index/vite-plugin
yarn add -D @skip-index/vite-plugin
bun add -D @skip-index/vite-plugin
```
#### Config
`vite.config.ts`
```ts
import { defineConfig } from "vite"
import skipIndex from "@skip-index/vite-plugin"
export default defineConfig({
plugins: [skipIndex()],
})
```
## TypeScript Plugin
[package](/packages/ts-plugin/README.md)
#### Installation
```sh
npm install --save-dev @skip-index/ts-plugin
pnpm install -D @skip-index/ts-plugin
yarn add -D @skip-index/ts-plugin
bun add -D @skip-index/ts-plugin
```
#### Config
`tsconfig.json`
```json
{
"compilerOptions": {
"plugins": [{ "name": "@skip-index/ts-plugin" }],
}
}
```