open-vault/ui/lib/keep-gitkeep/index.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

21 lines
445 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
'use strict';
const fs = require('fs');
module.exports = {
name: require('./package').name,
isDevelopingAddon() {
return true;
},
postBuild(result) {
// We gitignore the contents of our output directory http/web_ui
// but we need to keep the folder structure for the Vault build
fs.writeFileSync(result.directory + '/.gitkeep', '');
},
};