Nuxt/distributions/nuxt-ts/package.js

24 lines
410 B
JavaScript
Raw Normal View History

2019-01-04 19:30:28 +00:00
export default {
build: false,
hooks: {
async 'build:done' (pkg) {
2019-01-04 19:30:28 +00:00
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()
}
}
}