refactor: hard coded value -> config
This commit is contained in:
parent
464b7abf4a
commit
2b9bcb7e6e
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
|
|
||||||
import { mapFilePath, markdownPath, portfolioFilePath } from "./config"
|
import { mapFilePath, markdownPath, outPath, portfolioFilePath } from "./config"
|
||||||
import { fillTags, parseSeries, sortDates } from "./postProcess"
|
import { fillTags, parseSeries, sortDates } from "./postProcess"
|
||||||
import { recursiveParse } from "./recursiveParse"
|
import { recursiveParse } from "./recursiveParse"
|
||||||
import { saveIndex } from "./searchIndex"
|
import { saveIndex } from "./searchIndex"
|
||||||
|
@ -35,7 +35,7 @@ async function main() {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fs.rmSync("dist", { recursive: true })
|
fs.rmSync(outPath, { recursive: true })
|
||||||
// eslint-disable-next-line no-empty
|
// eslint-disable-next-line no-empty
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue