mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-29 12:31:52 -04:00
15 lines
451 B
JavaScript
15 lines
451 B
JavaScript
'use strict'
|
|
const pkg = require('../package.json')
|
|
|
|
if (!pkg.bundledName) {
|
|
throw new Error('Package has no bundled version. Not `bundledName` property in package.json found')
|
|
}
|
|
|
|
if (pkg.name.endsWith('/bundled') || pkg.name.endsWith('-bundled')) {
|
|
throw new Error(`Cannot publish a package called ${pkg.name}`)
|
|
}
|
|
|
|
if (pkg.bundleDependencies || pkg.bundledDependencies) {
|
|
throw new Error('Cannot publish a package with bundled dependencies')
|
|
}
|