feat: use comment to target files (fixes #5)

This commit is contained in:
Gajus Kuizinas
2016-11-01 15:58:31 +00:00
parent c41edde1cd
commit 91c2e4eae3
23 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -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.');
}