MCPcopy Index your code
hub / github.com/egoist/yaup

github.com/egoist/yaup @v1.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.8.0 ↗ · + Follow
9 symbols 26 edges 9 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


yaup

npm version

Why this over other esbuild/rollup wrappers?

  • Unopinionated: close to raw esbuild, flexible configration
  • Minimal: minimal API interface so it's easier to maintain

Install

npm i yaup -D

Usage

It's common to publish dual CommonJS/ES module packages with an extra TypeScript declaration file, all you need is creating a yaup.config.ts:

import { defineConfig } from 'yaup'

export default defineConfig({
  input: './src/index.ts',
  output: [
    {
      format: 'esm',
      dir: 'dist/esm',
    },
    {
      format: 'cjs',
      dir: 'dist/cjs',
    },
    {
      format: 'dts',
      dir: 'dist/types',
    },
  ],
})

Run yaup in this directory, it will emit:

  • dist/esm/index.js
  • dist/cjs/index.js
  • dist/types/index.d.ts

Then, configure package.json accordingly:

{
  "main": "./dist/cjs/index.js",
  "module": "./dist/esm/index.js",
  "types": "./dist/types/index.js",
  "exports": {
    ".": {
      "import": "./dist/esm/index.js",
      "default": "./dist/cjs/index.js"
    }
  }
}

API

Full config reference.

Contributing

Bug fixes are welcome, I'm not accepting new features unless it's absolutely necessary.

License

MIT © EGOIST

Core symbols most depended-on inside this repo

timestamp
called by 4
src/utils.ts
run
called by 2
src/cli.ts
yaup
called by 1
src/index.ts
defineConfig
called by 1
src/config.ts
findConfigFile
called by 1
src/cli.ts
setup
called by 0
src/index.ts
write
called by 0
src/index.ts
truthy
called by 0
src/utils.ts

Shape

Function 9

Languages

TypeScript100%

Modules by API surface

src/index.ts3 symbols
src/cli.ts3 symbols
src/utils.ts2 symbols
src/config.ts1 symbols

For agents

$ claude mcp add yaup \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page