@netlify/zip-it-and-ship-it
Version:
14 lines (13 loc) • 477 B
JavaScript
import { getPublishedFiles } from './published.js';
// Some modules generate source files on `postinstall` that are not located
// inside the module's directory itself.
export const getSideFiles = async function (modulePath, moduleName) {
const sideFiles = SIDE_FILES[moduleName];
if (sideFiles === undefined) {
return [];
}
return await getPublishedFiles(`${modulePath}/${sideFiles}`);
};
const SIDE_FILES = {
'@prisma/client': '../../.prisma',
};