UNPKG

@akemona-org/strapi

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MongoDB, MySQL, MariaDB, PostgreSQL, SQLite

19 lines (15 loc) 350 B
'use strict'; const _ = require('lodash'); // files to load with filename key const prefixedPaths = [ 'functions', 'policies', 'locales', 'hook', 'middleware', 'language', 'layout', ]; module.exports = function checkReservedFilenames(file) { return _.some(prefixedPaths, (e) => file.indexOf(`config/${e}`) >= 0) ? true : false; };