Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Compile single file with damlc?Forum ↗

Compile single file with damlc?

App Development2 posts277 views2 likesLast activity Mar 2022
LU
LucianoOP
Mar 2022

Is it possible to compile a single file with daml damlc, rather than the entire project defined in daml.yaml?

I want to do this because I’ve made a large refactoring change that prevents many files from compiling.

SO
Sofia_Faro
Mar 2022

You can change your source line in daml.yaml to point to a single file, e.g.:

source: daml/Main.daml

Then daml build will try compiling that file (and any other files it depends on), instead of the whole folder.

← Back to Discussions