fix comment parser

This commit is contained in:
Cory LaViska
2021-10-16 10:28:51 -04:00
parent be662ddf32
commit 10f31efefa

View File

@@ -1,5 +1,5 @@
import fs from 'fs';
import commentParser from 'comment-parser';
import { parse } from 'comment-parser';
const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
const { name, description, version, author, homepage, license } = packageData;
@@ -38,7 +38,7 @@ export default {
});
});
const parsed = commentParser.parse(customComments + '\n */');
const parsed = parse(customComments + '\n */');
parsed[0].tags?.map(t => {
switch (t.tag) {
// Animations