Lines Matching refs:manifest
24 function publish (manifest, tarball, opts) { argument
27 validate('OSO|OOO', [manifest, tarball, opts])
28 if (manifest.private) {
34 const spec = npa.resolve(manifest.name, manifest.version)
36 opts = opts.concat(manifest.publishConfig, { spec })
39 const pubManifest = patchedManifest(spec, auth, manifest, opts)
77 const manifest = cloneDeep(base)
78 manifest._nodeVersion = process.versions.node
80 manifest._npmVersion = opts.npmVersion
90 manifest._npmUser = {
96 fixer.fixNameField(manifest, { strict: true, allowLegacyCase: true })
97 const version = semver.clean(manifest.version)
100 new Error('invalid semver: ' + manifest.version),
104 manifest.version = version
105 return manifest
108 function buildMetadata (spec, auth, registry, manifest, tardata, opts) { argument
110 _id: manifest.name,
111 name: manifest.name,
112 description: manifest.description,
115 readme: manifest.readme || ''
122 manifest.maintainers = JSON.parse(JSON.stringify(root.maintainers))
125 root.versions[ manifest.version ] = manifest
126 const tag = manifest.tag || opts.tag
127 root['dist-tags'][tag] = manifest.version
129 const tbName = manifest.name + '-' + manifest.version + '.tgz'
130 const tbURI = manifest.name + '/-/' + tbName
135 manifest._id = manifest.name + '@' + manifest.version
136 manifest.dist = manifest.dist || {}
138 manifest.dist.integrity = integrity['sha512'][0].toString()
140 manifest.dist.shasum = integrity['sha1'][0].hexDigest()
141 manifest.dist.tarball = url.resolve(registry, tbURI)