The JCM compiler now also generates a `RESOURCE` artifact like the JS compiler does (#1833)