import type { PluginSpec } from 'semantic-release' ; import type { NPMPluginOpts } from '../type' ; const npm = ( options ? ) : PluginSpec => { if ( ! options || ( typeof options . pkgRoot !== 'string' && typeof options . npmPublish !== 'boolean' && typeof options . tarballDir === 'undefined' ) ) return '@semantic-release/npm' ; return [ '@semantic-release/npm' , options ] ; } ; export default npm ;