0.8.1 • Published 4 months ago

@terminal-nerds/tsup-config v0.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@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:
    • pnpm icon
    • yarn icon
    • npm icon
  3. Latest tsup version

Basic usage

👣 Follow the steps below:

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

     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

NamePurpose
browserFor building a package, which will be used only in browser
cjsFor building a Node.js package in CommonJS format
esmFor building a Node.js package in ES Modules format
universalFor 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.

0.8.1

4 months ago

0.8.0

6 months ago

0.7.0

6 months ago

0.6.0

8 months ago

0.5.0

11 months ago

0.4.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago