fix metadata plugin

pull/572/head
Cory LaViska 2021-10-18 08:58:50 -04:00
rodzic d4741532f5
commit 7be03ae623
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
import fs from 'fs';
import { parse } from 'comment-parser';
import commentParser 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 = parse(customComments + '\n */');
const parsed = commentParser.parse(customComments + '\n */');
parsed[0].tags?.map(t => {
switch (t.tag) {
// Animations