Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bun-scripty

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-scripty

Scripty for Bun

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

Bun-Scripty

Bun-Scripty is a package that allows you to define npm scripts in separate TypeScript files, adapted to work with Bun. This project is inspired by and based on scripty by Test Double.

Introduction

Bun-Scripty allows you to organize your npm scripts into separate TypeScript files, making them easier to maintain and manage. Instead of cluttering your package.json with numerous script commands, you can create individual TypeScript script files for each command.

Installation

bun add bun-scripty

Usage

  1. Create a scripts directory in your project root (or customize the path, see Customizing Script Path).

  2. Add your TypeScript script files in this directory. For example, scripts/test.ts for a test script.

  3. Make your script files executable:

       chmod +x scripts/test.ts
    
  4. In your package.json, use Bun-Scripty to run your scripts:

    {
      "scripts": {
        "test": "bun-scripty"
      }
    }
    

Now, when you run bun run test, Bun-Scripty will execute the scripts/test.ts file.

Features

  • Organize npm scripts into separate TypeScript files
  • Support for nested directories
  • Works seamlessly with Bun
  • Customizable script path

Current Limitations and Future Plans

  • Current Version: Bun-Scripty currently only supports TypeScript (.ts) files.
  • Future Expansion: We plan to expand support to other languages in future releases, similar to the original scripty project.

Acknowledgements

This project is based on the excellent scripty package by Test Double. We'd like to express our gratitude for their solid script setup and structure, which served as the foundation for Bun-Scripty.

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Keywords

FAQs

Package last updated on 15 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc