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:
Elliot DeNolf
2024-11-26 22:28:07 -05:00
committed by GitHub
parent 072f1efb41
commit 6af4deefc2
4 changed files with 60 additions and 32 deletions

View File

@@ -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)