Skip to content

Commit bf650d1

Browse files
committed
main 🧊 add hook to index
1 parent 5b77c01 commit bf650d1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/newdocs/scripts/helpers/getElements.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33

4-
import type { FunctionType } from '../constants';
4+
import type { FunctionType } from '@/src/constants';
55

66
import { CORE_ROOT } from '../constants';
77

@@ -11,6 +11,7 @@ export const getElements = async (type: FunctionType) => {
1111

1212
return files
1313
.filter((file) => file.isDirectory())
14+
.sort((left, right) => left.name.localeCompare(right.name))
1415
.map((file) => ({
1516
type,
1617
name: file.name

0 commit comments

Comments
 (0)