Skip to content
CCPEDIAby Unity Nodes
App Development

Compile single file with damlc?

2 posts306 views2 likesLast activity Mar 2022

  1. LucianoOP

    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.

  2. Sofia_Faro 2

    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.