Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
cleanTemplateSchemas.js 437 B
//const fs = require('fs').promises;
const fs = require('fs');

if (fs.existsSync("build/schemas")) {
	fs.rm("build/schemas", { recursive: true, force: true }, (err) => {
		if (err) {
			throw err;
		}
		console.log("Deleted build/schemas");
	});
}

if (fs.existsSync("public/schemas")) {
	fs.rm("public/schemas", { recursive: true, force: true }, (err) => {
		if (err) {
			throw err;
		}
		console.log("Deleted public/schemas");
	});
}