UNPKG

@darkobits/re-pack

Version:

Utility for managing NPM package contents.

16 lines (15 loc) 441 B
import config from "./config.js"; import log from "./log.js"; function publishGuard() { const isPublishing = config.get("isPublishing"); const prefix = log.chalk.cyan.dim("guard"); if (isPublishing) { log.verbose(prefix, "Okay to publish!"); } else { throw new Error(`${prefix} This package should be published using "re-pack publish".`); } } export { publishGuard as default }; //# sourceMappingURL=publish-guard.js.map