Skip to content

v0.1.10

Choose a tag to compare

@koistya koistya released this 24 Jan 09:14
· 5 commits to main since this release
176dc80

New Features

Prompt Option

Prepend instructions or file content to bundles for LLM context:

export default defineConfig({
  bundles: {
    review: {
      include: "src/**/*",
      prompt: "./prompts/review.md",  // load from file
    },
    analyze: {
      include: "lib/**/*",
      prompt: "Analyze this code for performance issues.",  // inline
    },
  },
});

Root Option

Bundle from a subdirectory (useful for monorepos):

export default defineConfig({
  root: "./packages/app",
  bundles: {
    app: "src/**/*",  // matches packages/app/src/**/*
  },
});

emptyOutDir Option

Control output directory cleaning:

npx srcpack --emptyOutDir      # always empty
npx srcpack --no-emptyOutDir   # never empty

Auto-enabled when outDir is inside project root; shows warning otherwise.

Upload Exclude

Skip specific bundles from upload:

upload: {
  provider: "gdrive",
  clientId: "...",
  clientSecret: "...",
  exclude: ["local", "debug"],
}

Bug Fixes

  • Fix gitignore negation pattern support (e.g., !build/keep.txt now works correctly)
  • Optimize gitignore handling by passing patterns to fast-glob for better performance

Other Changes

  • Add GitHub Actions CI workflow for automated testing
  • Update dependencies (ora, prettier, vue, rollup)

Full Changelog: v0.1.6...v0.1.10