({ name, version })
| 35 | } |
| 36 | |
| 37 | const versionNotExists = async ({ name, version }) => { |
| 38 | const spec = `${name}@${version}` |
| 39 | let exists |
| 40 | try { |
| 41 | await pacote.manifest(spec, { preferOnline: true }) |
| 42 | exists = true // if it exists, no publish needed |
| 43 | } catch { |
| 44 | exists = false // otherwise its needs publishing |
| 45 | } |
| 46 | log.info(`${spec} exists=${exists}`) |
| 47 | return !exists |
| 48 | } |
| 49 | |
| 50 | const getPublishes = async ({ force }) => { |
| 51 | const publishPackages = [] |
no test coverage detected