mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 02:07:14 +00:00
24 lines
409 B
JavaScript
24 lines
409 B
JavaScript
|
export default {
|
||
|
build: false,
|
||
|
hooks: {
|
||
|
async 'build:done'(pkg) {
|
||
|
const mono = pkg.load('../..')
|
||
|
const nuxt = pkg.load('../nuxt')
|
||
|
|
||
|
await pkg.copyFilesFrom(mono, [
|
||
|
'LICENSE'
|
||
|
])
|
||
|
|
||
|
pkg.copyFieldsFrom(nuxt, [
|
||
|
'license',
|
||
|
'repository',
|
||
|
'contributors',
|
||
|
'keywords',
|
||
|
'collective'
|
||
|
])
|
||
|
|
||
|
await pkg.writePackage()
|
||
|
}
|
||
|
}
|
||
|
}
|