diff --git a/identity-apps-core/package.json b/identity-apps-core/package.json index 8488a9b56c9..85e4411ec9a 100644 --- a/identity-apps-core/package.json +++ b/identity-apps-core/package.json @@ -6,7 +6,7 @@ "author": "WSO2", "license": "Apache-2.0", "scripts": { - "build": "node theme-distribute.js", + "build": "pnpm nx run theme:build && node theme-distribute.js", "clean": "pnpm clean:lock-files && pnpm clean:maven-folders && pnpm clean:node-modules", "clean:lock-files": "pnpm rimraf package-lock.json && pnpm rimraf pnpm-lock.yaml && pnpm rimraf yarn.lock", "clean:maven-folders": "pnpm rimraf target", diff --git a/identity-apps-core/theme-distribute.js b/identity-apps-core/theme-distribute.js index 2ea3dc0fa3f..7d7c1112b46 100644 --- a/identity-apps-core/theme-distribute.js +++ b/identity-apps-core/theme-distribute.js @@ -30,5 +30,6 @@ apps.forEach((app) => { .catch((error) => { // eslint-disable-next-line no-console console.error(error); + throw new Error("Error while copying theme files."); }); });