for #2543 BREAKING CHANGE: semantic-release is now ESM-only. since it is used through its own executable, the impact on consuming projects should be minimal BREAKING CHANGE: references to plugin files in configs need to include the file extension because of executing in an ESM context
6 lines
172 B
JavaScript
6 lines
172 B
JavaScript
import {execa} from 'execa';
|
|
|
|
export async function npmView(packageName, env) {
|
|
return JSON.parse((await execa('npm', ['view', packageName, '--json'], {env})).stdout);
|
|
}
|