chore: remove .prettierignore file and update package.json pnpm version constraint

This commit is contained in:
meow2149
2025-12-27 18:32:42 +08:00
committed by Dawn
parent 1bcc03e963
commit 495027b16e
3 changed files with 2 additions and 20 deletions
-18
View File
@@ -1,18 +0,0 @@
/dist/*
/html/*
.local
/node_modules/**
**/*.svg
**/*.sh
/public/*
.idea/**
.vscode/**
src-tauri/capabilities/**
src-tauri/gen/**
src-tauri/target/**
src-tauri/Cargo.toml
tauri-plugin-hula/**
CHANGELOG.md
auto-imports.d.ts
.gitee/**
.github/**
+1 -1
View File
@@ -6,7 +6,7 @@
"license": "Apache-2.0",
"engines": {
"node": "^20.19.0 || >=22.12.0",
"pnpm": ">=10.x"
"pnpm": ">=10"
},
"repository": {
"url": "https://github.com/HuLaSpark/HuLa.git"
+1 -1
View File
@@ -15,6 +15,7 @@ import { getComponentsDirs, getComponentsDtsPath } from './build/config/componen
import { createManualChunks } from './build/config/chunks'
import { atStartup } from './build/config/console'
import { getRootPath, getSrcPath } from './build/config/getPath'
import packageJson from './package.json'
function getLocalIP() {
const interfaces = os.networkInterfaces()
@@ -30,7 +31,6 @@ function getLocalIP() {
}
// 读取 package.json 依赖
const packageJson = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf-8'))
const dependencies = Object.keys(packageJson.dependencies || {})
// 预先获取本地IP