@terminal-nerds/tsup-config

0.8.1 • Public • Published

@terminal-nerds/tsup-config

package version badge

➡️ Extendable tsup configuration, part of the terminal-nerds/configs project.


Prerequisites

node.js version support badge supported tsup version badge

ℹ️ This configuration package require these tools to use locally on your device(s):

  1. node.js icon Latest Node.js LTS (Long-Term Support) version
  2. One of Node.js package managers:
  3. Latest tsup version

Basic usage

👣 Follow the steps below:

  1. Install it with the node.js icon Node.js package manager of your choice (in our case, we use pnpm icon pnpm).

     pnpm install --save-dev tsup @terminal-nerds/tsup-config
  2. Create a tsup configuration file - tsup.config.ts.

  3. Use a specific [configuration target], and use it.\

    import { defineConfig } from "tsup";
    
    import { getOptions } from "@terminal-nerds/tsup-config";
    
    export default defineConfig((options) => ({
    	...getOptions("universal", options),
    	entry: ["./source/**/*.ts"],
    }));

📖 For the tsup CLI usage, please refer to its documentation.


Available targets

Dependencies badge

Name Purpose
browser For building a package, which will be used only in browser
cjs For building a Node.js package in CommonJS format
esm For building a Node.js package in ES Modules format
universal For building a Node.js package in both CommonJS and ES Modules format

Security

workflow security badge

🔐 For more information, please refer to the Security section at the root of the terminal-nerds/configs monorepo.


Contributing

contributors badge

🤝 Contributions of any kind are welcome!

Please refer to the monorepo (terminal-nerds/configs) project's CONTRIBUTING file for more information if you wish to get involved.


License

license badge

⚖️ For more information, please refer to the License section at the root of the terminal-nerds/configs monorepo.

Readme

Keywords

Package Sidebar

Install

npm i @terminal-nerds/tsup-config

Weekly Downloads

0

Version

0.8.1

License

MIT

Unpacked Size

9.39 kB

Total Files

6

Last publish

Collaborators

  • xeho91