build: update all deps and migrate to biome
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import path from 'node:path'
|
||||
import config from '@aklive2d/config'
|
||||
import { file, alphaComposite } from '@aklive2d/libs'
|
||||
import { alphaComposite, file } from '@aklive2d/libs'
|
||||
import operators, {
|
||||
DIST_DIR,
|
||||
OPERATOR_SOURCE_FOLDER,
|
||||
generateAssetsJson,
|
||||
OPERATOR_SOURCE_FOLDER,
|
||||
} from '../index.ts'
|
||||
import { getExtractedFolder, getDistFolder } from './utils.ts'
|
||||
import type { PortraitHub, PortraitJson } from '../types.ts'
|
||||
import { getDistFolder, getExtractedFolder } from './utils.ts'
|
||||
|
||||
export const build = async (namesToBuild: string[]) => {
|
||||
const names = !namesToBuild.length ? Object.keys(operators) : namesToBuild
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import path from 'node:path'
|
||||
import { stringify } from 'yaml'
|
||||
import { yaml, file } from '@aklive2d/libs'
|
||||
import config from '@aklive2d/config'
|
||||
import { file, yaml } from '@aklive2d/libs'
|
||||
import { mapping as officialInfoMapping } from '@aklive2d/official-info'
|
||||
import { CONFIG_PATH, skinTable, CONFIG_FOLDER } from '../index.ts'
|
||||
import { stringify } from 'yaml'
|
||||
import { CONFIG_FOLDER, CONFIG_PATH, skinTable } from '../index.ts'
|
||||
import {
|
||||
getVoiceFolders,
|
||||
getExtractedFolder,
|
||||
findSkinEntry,
|
||||
findCodename,
|
||||
findSkinEntry,
|
||||
getExtractedFolder,
|
||||
getVoiceFolders,
|
||||
} from './utils.ts'
|
||||
|
||||
export const init = (name: string, id: string) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import path from 'node:path'
|
||||
import { githubDownload } from '@aklive2d/downloader'
|
||||
import config from '@aklive2d/config'
|
||||
import { githubDownload } from '@aklive2d/downloader'
|
||||
import { AUTO_UPDATE_FOLDER } from '../index.ts'
|
||||
|
||||
export const update = async () => {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import path from 'node:path'
|
||||
import unidecode from 'unidecode'
|
||||
import config from '@aklive2d/config'
|
||||
import { DIST_DIR, OPERATOR_SOURCE_FOLDER } from '../index.ts'
|
||||
import { file } from '@aklive2d/libs'
|
||||
import type { OfficialInfoOperatorConfigV2 } from '@aklive2d/official-info/types'
|
||||
import unidecode from 'unidecode'
|
||||
import { DIST_DIR, OPERATOR_SOURCE_FOLDER } from '../index.ts'
|
||||
import {
|
||||
CharacterTableJson,
|
||||
SkinTableJson,
|
||||
OperatorEntryType,
|
||||
SkinTableJsonCharSkinEntry,
|
||||
Codename,
|
||||
OperatorEntryType,
|
||||
SkinTableJson,
|
||||
SkinTableJsonCharSkinEntry,
|
||||
} from '../types.ts'
|
||||
import type { OfficialInfoOperatorConfigV2 } from '@aklive2d/official-info/types'
|
||||
|
||||
export const getExtractedFolder = (name: string) => {
|
||||
return path.join(OPERATOR_SOURCE_FOLDER, name, config.dir_name.extracted)
|
||||
|
||||
Reference in New Issue
Block a user