{"id":22935,"library":"vite-plugin-yalc","title":"vite-plugin-yalc","description":"A Vite plugin for library projects using yalc for local package development. Version 0.1.3 is the latest stable release, updated occasionally. It hooks into Vite's build process to automatically push the built library to the yalc store after each build. Unlike manual yalc push, it integrates seamlessly into the Vite dev workflow. Provides two main exports: `runYalc` for automatic push after build, and `runCommand` for executing arbitrary scripts before pushing. Requires yalc globally installed.","status":"active","version":"0.1.3","language":"javascript","source_language":"en","source_url":"https://github.com/ehubbell/vite-plugin-yalc","tags":["javascript","vite","vite-library","vite-plugin","yalc","yalc-plugin"],"install":[{"cmd":"npm install vite-plugin-yalc","lang":"bash","label":"npm"},{"cmd":"yarn add vite-plugin-yalc","lang":"bash","label":"yarn"},{"cmd":"pnpm add vite-plugin-yalc","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"yalc must be installed globally for the plugin to work.","package":"yalc","optional":false}],"imports":[{"note":"Named export, not default.","wrong":"import runYalc from 'vite-plugin-yalc'","symbol":"runYalc","correct":"import { runYalc } from 'vite-plugin-yalc'"},{"note":"ESM-only; no CommonJS support.","wrong":"const runCommand = require('vite-plugin-yalc')","symbol":"runCommand","correct":"import { runCommand } from 'vite-plugin-yalc'"}],"quickstart":{"code":"// vite.config.ts\nimport { defineConfig } from 'vite';\nimport { runYalc } from 'vite-plugin-yalc';\n\nexport default defineConfig({\n  build: {\n    lib: {\n      entry: 'src/index.ts',\n      name: 'MyLib',\n      formats: ['es', 'cjs'],\n    },\n  },\n  plugins: [runYalc()],\n});","lang":"typescript","description":"Integrates yalc push into Vite build, automatically pushing library to local yalc store."},"warnings":[{"fix":"Run `npm i -g yalc` prior to using the plugin.","message":"yalc must be installed globally (`npm i -g yalc`) before using this plugin, otherwise the build will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Vite's own `rollupOptions` hooks or pre-build scripts instead.","message":"The `runCommand` export may be removed in a future version in favor of custom scripts.","severity":"deprecated","affected_versions":"<=0.1.3"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `npm install vite-plugin-yalc --save-dev`.","cause":"Plugin not installed as dev dependency.","error":"Cannot find module 'vite-plugin-yalc'"},{"fix":"Run `npm install -g yalc`.","cause":"yalc is not installed globally.","error":"Error: yalc command not found. Please install yalc globally."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}