tscad is in early development

rsbuild-exec

Runs a command after the rsbuild build is finished.

This package is not only relevant for tscad, it can be used in every rsbuild/rslib project.


Methods and properties

Import
import { 
  
} from 'rsbuild-exec'

function pluginExec(options)

An rsbuild plugin to execute a command after the build is finished.

Examples

import { pluginRsbuildExec } from 'rsbuild-exec';

export default defineConfig({
  plugins: [
    pluginRsbuildExec({
      // An (optional) title for the command (for logging purposes)
      title: 'my-command',
      // The command to execute
      command: 'echo "Hello, World!"',
      // (optional) Exec options
      options: {
        // (just an example)
        env: { CUSTOM_ENV_VAR: 'value' },
      },
    }),
  ],
});

Parameters

Prop

Type

Defined in packages/rsbuild-exec/src/index.ts