fix(plugin-search): missing copyfiles script, incorrect scss import (#9552)
.tsx files were introduced into the plugin-search package, but an appropriate `copyfiles` script was not introduced to get these files into the dist output. This was causing a `Module not found: Can't resolve './index.scss'` error on build. --------- Co-authored-by: Alessio Gravili <alessio@gravili.de>
This commit is contained in:
@@ -35,7 +35,9 @@ async function main() {
|
||||
|
||||
const args = minimist(process.argv.slice(2))
|
||||
const { dest } = args
|
||||
if (!dest) {throw new Error('--dest is required')}
|
||||
if (!dest) {
|
||||
throw new Error('--dest is required')
|
||||
}
|
||||
|
||||
const resolvedDest = path.resolve(dest)
|
||||
|
||||
@@ -43,18 +45,24 @@ async function main() {
|
||||
? null
|
||||
: [
|
||||
'payload',
|
||||
'ui',
|
||||
'next',
|
||||
'db-mongodb',
|
||||
'drizzle',
|
||||
'db-sqlite',
|
||||
'db-postgres',
|
||||
'plugin-seo',
|
||||
'db-sqlite',
|
||||
'db-vercel-postgres',
|
||||
'drizzle',
|
||||
'graphql',
|
||||
'live-preview-react',
|
||||
'next',
|
||||
'payload-cloud',
|
||||
'plugin-cloud',
|
||||
'plugin-form-builder',
|
||||
'plugin-nested-docs',
|
||||
'plugin-redirects',
|
||||
'plugin-search',
|
||||
'plugin-seo',
|
||||
'richtext-lexical',
|
||||
'translations',
|
||||
'plugin-cloud',
|
||||
'graphql',
|
||||
'ui',
|
||||
]
|
||||
|
||||
const packageDetails = await getPackageDetails(packageWhitelist)
|
||||
|
||||
Reference in New Issue
Block a user