chore: moved to bun

This commit is contained in:
Haoyu Xu
2025-04-30 20:39:01 +08:00
parent 83ee6ef858
commit 3535ae8ce1
8 changed files with 1614 additions and 5444 deletions

1595
bun.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,20 +14,24 @@
"build:cleanup": "turbo run build:cleanup" "build:cleanup": "turbo run build:cleanup"
}, },
"devDependencies": { "devDependencies": {
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.25.1", "eslint": "^9.25.1",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"prettier": "^3.5.3", "prettier": "^3.5.3",
"stylelint": "^16.19.1", "stylelint": "^16.19.1",
"turbo": "^2.5.2" "turbo": "^2.5.2"
}, },
"packageManager": "pnpm@10.4.1",
"name": "aklive2d", "name": "aklive2d",
"type": "module", "type": "module",
"pnpm": { "config": {
"onlyBuiltDependencies": [ "commitizen": {
"@parcel/watcher", "path": "cz-conventional-changelog"
"@swc/core",
"esbuild"
]
} }
},
"packageManager": "bun@1.2.11",
"workspaces": ["packages/*", "apps/*"],
"trustedDependencies": [
"@parcel/watcher",
"@swc/core"
]
} }

View File

@@ -1,5 +1,5 @@
import sharp from 'sharp' import sharp from 'sharp'
import path from 'path' import path from 'node:path'
export const process = async (filename, maskFilename, extractedDir) => { export const process = async (filename, maskFilename, extractedDir) => {
const image = sharp(path.join(extractedDir, filename)).removeAlpha() const image = sharp(path.join(extractedDir, filename)).removeAlpha()

View File

@@ -1,5 +1,5 @@
import fs, { promises as fsP } from 'fs' import fs, { promises as fsP } from 'node:fs'
import path from 'path' import path from 'node:path'
import yauzl from 'yauzl-promise' import yauzl from 'yauzl-promise'
import yazl from 'yazl' import yazl from 'yazl'

View File

@@ -1,5 +1,5 @@
import fs from 'fs' import fs from 'node:fs'
import path from 'path' import path from 'node:path'
import { parse } from 'yaml' import { parse } from 'yaml'
export function read(file_dir, customTags = []) { export function read(file_dir, customTags = []) {

View File

@@ -1,4 +1,4 @@
import path from 'path' import path from 'node:path'
import { file } from '@aklive2d/libs' import { file } from '@aklive2d/libs'
import { githubDownload } from '@aklive2d/downloader' import { githubDownload } from '@aklive2d/downloader'
import config from '@aklive2d/config' import config from '@aklive2d/config'

View File

@@ -1,5 +1,5 @@
import jsdom from 'jsdom' import jsdom from 'jsdom'
import path from 'path' import path from 'node:path'
import { file } from '@aklive2d/libs' import { file } from '@aklive2d/libs'
import config from '@aklive2d/config' import config from '@aklive2d/config'

5429
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff