2018-10-17 21:28:25 +00:00
|
|
|
export default {
|
|
|
|
build: true,
|
2018-11-27 15:32:00 +00:00
|
|
|
hooks: {
|
|
|
|
async 'build:done'(pkg) {
|
|
|
|
const mono = pkg.load('../..')
|
|
|
|
const nuxt = pkg.load('../nuxt')
|
2018-10-17 21:28:25 +00:00
|
|
|
|
2018-11-27 15:32:00 +00:00
|
|
|
await pkg.copyFilesFrom(mono, [
|
2018-10-17 21:28:25 +00:00
|
|
|
'LICENSE'
|
|
|
|
])
|
|
|
|
|
|
|
|
pkg.copyFieldsFrom(nuxt, [
|
|
|
|
'license',
|
|
|
|
'repository',
|
|
|
|
'contributors',
|
|
|
|
'keywords',
|
|
|
|
'engines'
|
|
|
|
])
|
|
|
|
|
2018-11-27 15:32:00 +00:00
|
|
|
await pkg.writePackage()
|
|
|
|
}
|
2018-10-17 21:28:25 +00:00
|
|
|
}
|
|
|
|
}
|