You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
629 B

var assert = require('assert')
exports.name = prompt('name', package.name || basename)
exports.version = '1.2.5'
exports.description = prompt('description', package.description)
exports.author = 'me <em@i.l> (http://url)'
exports.scripts = package.scripts || {}
exports.scripts.test = 'make test'
exports.main = package.main || 'main.js'
exports.config = JSON.parse(JSON.stringify(config))
try {delete exports.config.config}catch(e){}
try {delete exports.package.config}catch(e){}
try {delete exports.package.package}catch(e){}
try {delete exports.config.package}catch(e){}
exports.package = JSON.parse(JSON.stringify(package))