feat: use comment to target files (fixes #5)
This commit is contained in:
@@ -25,7 +25,7 @@ export default (targetDirectory) => {
|
||||
|
||||
const indexFile = fs.readFileSync(indexFilePath, 'utf8');
|
||||
|
||||
if (!_.startsWith(indexFile, '\'create index\';\n')) {
|
||||
if (!_.startsWith(indexFile, '// @create-index\n')) {
|
||||
throw new Error('"' + indexFilePath + '" unsafe index.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user