UNPKG

@solidstate/hardhat-selector-uploader

Version:
13 lines (12 loc) 466 B
import { uploadSelectors } from '../lib/selector_uploader.js'; import { isCi } from '@nomicfoundation/hardhat-utils/ci'; export default async () => ({ onCleanUpArtifacts: async (context, artifactPaths, next) => { if (context.config.selectorUploader.runOnCompile && !context.globalOptions.noUploadSelectors && !isCi()) { await uploadSelectors(context); } return next(context, artifactPaths); }, });