chore: update format script

This commit is contained in:
xfy
2025-05-19 19:25:34 +08:00
parent f914f8ac96
commit 39089feea8
11 changed files with 37 additions and 53 deletions

View File

@ -1,3 +1,4 @@
import { algoliasearch } from 'algoliasearch';
/**
* Generate algolia records.
* @params -t for test.
@ -5,7 +6,6 @@
*/
/* @ts-check */
import { config } from 'dotenv';
import { algoliasearch } from 'algoliasearch';
// import { liteClient } from 'algoliasearch/lite';
import generateGists from './gists/index.mjs';
import postLists from './posts/index.mjs';

View File

@ -1,6 +1,6 @@
import path from 'path';
/* @ts-check */
import fs from 'fs/promises';
import path from 'path';
const dataPath = 'content/posts';