Files
pnpm/.scripts/check.js
zkochan 0bce40f4a5 feat: create @pnpm/self-installer
Create a standalone script for installing pnpm w/o npm.

Close #889
2017-10-08 02:01:11 +03:00

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')
}