@adchitects/tsup-config
Prerequisites
Basic usage
-
Install it with the Node.js package manager of your choice (in our case, we use pnpm).
pnpm install --save-dev tsup @adchitects/tsup-config
-
Create a tsup configuration file -
tsup.config.ts
. -
Import a specific getter from this module package configuration and use it.
NOTE: This one below is an example!import { defineConfig } from "tsup"; import { setNodeUniveralOptions } from "@adchitects/tsup-config"; export default defineConfig((options) => ({ ...setNodeUniveralOptions(options), entry: ["./source/**/*.ts"], }));
Available options getters
Name | Purpose |
---|---|
getBaseOptions() |
For general usage |
getComponentsOptions() |
For building a component package |
getNodeCJSOptions() |
For building a Node.js package in CommonJS format |
getNodeESMOptions() |
For building a Node.js package in ES Modules format |
getNodeUniveralOptions() |
For building a Node.js package in both CommonJS and ES Modules format |
Used configurations & plugins
Configurations
None so far.
Plugins
None so far.
Security
Contributing
Please refer to the monorepo (adchitects/configs) project's CONTRIBUTING file for more information if you wish to get involved.
License
Resources
None so far.