diff --git a/.changeset/honest-clouds-think.md b/.changeset/honest-clouds-think.md new file mode 100644 index 00000000000..44afbef2404 --- /dev/null +++ b/.changeset/honest-clouds-think.md @@ -0,0 +1,5 @@ +--- +"@talend/scripts-core": patch +--- + +TMC-28977 - Allow Talend scripts to copy .css files on build diff --git a/tools/scripts-core/src/scripts/build-lib.js b/tools/scripts-core/src/scripts/build-lib.js index 4bb518e6548..282bb271b70 100755 --- a/tools/scripts-core/src/scripts/build-lib.js +++ b/tools/scripts-core/src/scripts/build-lib.js @@ -152,7 +152,7 @@ export default async function build(env, presetApi, unsafeOptions) { const copyPromise = () => new Promise((resolve, reject) => { if (options.includes('--watch')) { - const evtEmitter = cpx.watch(`${srcFolder}/**/*.{scss,json}`, targetFolder); + const evtEmitter = cpx.watch(`${srcFolder}/**/*.{css,scss,json}`, targetFolder); evtEmitter.on('watch-error', err => { reject(err); }); @@ -161,7 +161,7 @@ export default async function build(env, presetApi, unsafeOptions) { }); } else { console.log('Copying assets...'); - cpx.copy(`${srcFolder}/**/*.{scss,json}`, targetFolder, err => { + cpx.copy(`${srcFolder}/**/*.{css,scss,json}`, targetFolder, err => { if (err) { console.error(err); reject(err);