public LockFile.Builder artifacts(Map<String, LockedArtifact> artifacts) {
            this.artifacts.clear();
            this.artifacts.get().putAll(artifacts);
            return this;
        }
Saves lockfile to current working directory.
smithy-cli/src/main/java/software/amazon/smithy/cli/commands/LockFile.java