@adchitects/tsup-config v0.1.0
@adchitects/tsup-config
➡️ Extendable tsup configuration, part of the adchitects/configs project.
Prerequisites
ℹ️ This configuration package require these tools to use locally on your device(s):
Basic usage
👣 Follow the steps below:
Install it with the package manager of your choice (in our case, we use ).
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"], }));
📖 For the tsup CLI usage, please refer to its documentation.
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
⚙️ This configuration module loads configurations and plugins options conditionally.
Configurations
None so far.
Plugins
None so far.
Security
🔐 For more information, please refer to the Security section at the root of the adchitects/configs monorepo.
Contributing
🤝 Contributions of any kind are welcome!
Please refer to the monorepo (adchitects/configs) project's CONTRIBUTING file for more information if you wish to get involved.
License
⚖️ For more information, please refer to the License section at the root of the adchitects/configs monorepo.
Resources
None so far.
1 year ago