mirror of https://github.com/lukechilds/node.git
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.
16 lines
629 B
16 lines
629 B
13 years ago
|
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))
|