Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | /**
* Copies the standalone Pearl sub-theme to build/ as-is.
*
* Pearl is an opt-in "frosted" overlay layered on top of a base theme.
* It is deliberately excluded from the production CSS monolith (it lives in
* src/pearl-theme/, which the buildCss globs do not match), so it never ends up
* baked into slds2.*.css. It is an internal/pipeline artifact (consumed by the
* SCS release), not part of the published npm package, so it lands in build/
* rather than dist/.
*
* No PostCSS/transform step: the source is shipped verbatim.
*/
import fs from 'fs-extra';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const root = path.resolve(__dirname, '../');
const src = path.resolve(root, 'src/pearl-theme/pearl.css');
const dest = path.resolve(root, 'build/css/sub-themes/pearl.css');
fs.ensureDirSync(path.dirname(dest));
fs.copySync(src, dest, { overwrite: true });
console.log('Pearl theme copied to build/css/sub-themes/pearl.css');
|