mirror of
https://github.com/HuLaSpark/HuLa.git
synced 2026-08-28 19:11:16 +08:00
chore: remove .prettierignore file and update package.json pnpm version constraint
This commit is contained in:
@@ -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/**
|
||||
Vendored
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user