Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

TSUP Subpath Exports

This library helps you export multiple entrypoints in a tsup package

Usage

This library exports the function setupMultipleEntryPoints, which takes in an array of entrypoints. This is the same input taken by the entrypoints key in defineConfig

import { defineConfig } from "tsup"
import { setupMultipleEntryPoints } from "tsup-subpath-exports"

const entryPoints = ["src/index.ts", "src/extras/index.ts"]

export default defineConfig({
  entryPoints,
  onSuccess: async () => {
    await setupMultipleEntryPoints(entryPoints)
  },
})

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages