Skip to content

Commit 2f216ee

Browse files
committed
refactor(cli): Use cache in ui5 build
Cherry-picked from: SAP/ui5-cli@d29ead8 JIRA: CPOUI5FOUNDATION-1174
1 parent 12ce6ba commit 2f216ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cli/lib/cli/commands/build.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import baseMiddleware from "../middlewares/base.js";
2+
import path from "node:path";
23

34
const build = {
45
command: "build",
@@ -173,6 +174,7 @@ async function handleBuild(argv) {
173174
const buildSettings = graph.getRoot().getBuilderSettings() || {};
174175
await graph.build({
175176
graph,
177+
cacheDir: path.join(graph.getRoot().getRootPath(), ".ui5-cache"),
176178
destPath: argv.dest,
177179
cleanDest: argv["clean-dest"],
178180
createBuildManifest: argv["create-build-manifest"],

0 commit comments

Comments
 (0)