Nuxt/distributions/nuxt-start/package.js
2018-11-27 19:02:00 +03:30

24 lines
405 B
JavaScript

export default {
build: true,
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',
'engines'
])
await pkg.writePackage()
}
}
}