# @truffle/external-compile

> Wrapper to compile Truffle contracts with arbitrary shell command

Latest version **2.0.83** (published 2023-09-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @truffle/external-compile
pnpm add @truffle/external-compile
yarn add @truffle/external-compile
bun add @truffle/external-compile
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.83 |
| Published | 2023-09-07 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^16.20 \|\| ^18.16 \|\| >=20 |
| Dependencies | 7 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13900 |
| Author | g. nicholas d'andrea |
| Maintainers | rizedr, joshuafernandes, cliffoo, kevinbluer, gnidan, haltman, eggplantzzz, fainashalts, cds-amal |
| Keywords | ethereum, smart-contract, truffle |

## Links

- npm: https://www.npmjs.com/package/@truffle/external-compile
- Repository: https://github.com/trufflesuite/truffle
- Homepage: https://github.com/trufflesuite/truffle/tree/master/packages/external-compile#readme
- Issues: https://github.com/trufflesuite/truffle/issues
- npm.io page: https://npm.io/package/@truffle/external-compile

## Dependencies (7)

- [glob](https://npm.io/package/glob.md) ^7.1.6
- [debug](https://npm.io/package/debug.md) ^4.3.1
- [web3-utils](https://npm.io/package/web3-utils.md) 1.10.0
- [@truffle/config](https://npm.io/package/@truffle/config.md) ^1.3.61
- [@truffle/expect](https://npm.io/package/@truffle/expect.md) ^0.1.7
- [@truffle/compile-common](https://npm.io/package/@truffle/compile-common.md) ^0.9.8
- [@truffle/contract-schema](https://npm.io/package/@truffle/contract-schema.md) ^3.4.16

## Recent versions

- 2.0.83 (latest) — 2023-09-07
- 2.0.75-visual-debugger.0 (visual-debugger) — 2023-05-12
- 2.0.56-hardhat-error.0 (hardhat-error) — 2022-08-25
- 2.0.51-typescript-migrations.0 (typescript-migrations) — 2022-07-21
- 2.0.48-alpha.2 (signTypedData_v4) — 2022-06-24
- 2.0.35-dashboard.1 (dashboard) — 2022-02-01
- 2.0.26-decoder-beta.0 (decoder-beta) — 2021-09-29
- 2.0.24-alpha.1 (eip1559-beta) — 2021-09-13
- 2.0.2-abi-utils.0 (abi-utils) — 2020-10-12
- 1.0.32-next.0 (next) — 2020-07-09
- 1.1.0-tezos.2 (tezos) — 2020-04-14
- 1.0.29-alphaTez.9 (alphaTez) — 2020-02-13
- 1.0.27-truffleLogger.1 (truffleLogger) — 2020-01-16
- 1.0.22-micah.0 (micah) — 2019-11-08
- 1.1.0-ens-events.0 (ens-events) — 2019-09-27
- … 138 more at https://npm.io/package/@truffle/external-compile/versions

## README

# `@truffle/external-compile`

Package to enable Truffle to run arbitrary commands as part of compilation.

## Configuration

In your Truffle config (`truffle-config.js`):

```javascript
module.exports = {
  compilers: {
    external: {
      command: "<compilation-command>",
      targets: [{
        path: "<relative/globbed/path/to/outputs/*.output>",
        command: "<artifact-generation-command>"
      }]
    }
  }
}
```

---
_Source: https://npm.io/package/@truffle/external-compile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
