Skip to content

Commit

Permalink
feat: update�
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiiwoo committed Dec 15, 2024
1 parent b8cf27c commit 586754f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ List/ip/china_ip.conf
List/non_ip/1stream.conf
index.html
node_modules
.DS_Store
.DS_Store
dist
4 changes: 2 additions & 2 deletions src/build/build-public.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'node:fs/promises';
import { walkDir, generateHtml } from '../utils/utils';
import { TreeEntry } from '../types';
import { walkDir, generateHtml } from '@utils/utils';
import { TreeEntry } from '@utils/types';

export async function buildPublic(): Promise<void> {
try {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
import { TreeEntry } from '../types';
import { TreeEntry } from './types';

// Priority Sorter
const priorityOrder: { [key: string]: number } = {
Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
"allowJs": true,
"outDir": "dist",
"resolveJsonModule": true,
"baseUrl": "./src", // 添加这一行
"baseUrl": "./src",
"paths": {
"*": ["*"] // 添加这一行
"*": ["*"],
"@utils/*": ["utils/*"]
}
},
"include": ["src/**/*"] // 添加这一行,指定需要编译的文件
"include": ["src/**/*"]
}

0 comments on commit 586754f

Please sign in to comment.