Nuxt/distributions/nuxt-start/package.js

43 lines
772 B
JavaScript
Raw Normal View History

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()
}
},
ignoreUnused: [
// directly used by bin
'@nuxt/cli',
// discovered by config
'@nuxt/telemetry',
// vue-app externals for ssr
'node-fetch',
'vue',
'vue-client-only',
'vue-meta',
'vue-no-ssr',
'vue-router',
2020-12-22 22:06:08 +00:00
'vuex',
// Distro
'@nuxt/config',
'@nuxt/server',
'@nuxt/utils',
'@nuxt/vue-renderer'
]
}