build: update all deps and migrate to biome
This commit is contained in:
1
packages/wrangler/.ignore
Normal file
1
packages/wrangler/.ignore
Normal file
@@ -0,0 +1 @@
|
||||
data
|
||||
@@ -1,3 +0,0 @@
|
||||
dist
|
||||
data
|
||||
auto_update
|
||||
@@ -1,27 +0,0 @@
|
||||
import { tsConfig } from '@aklive2d/eslint-config'
|
||||
import tseslint from 'typescript-eslint'
|
||||
import globals from 'globals'
|
||||
|
||||
/** @type {import('eslint').Config} */
|
||||
export default tseslint.config(
|
||||
...tsConfig,
|
||||
{
|
||||
ignores: ['dist', 'data'],
|
||||
},
|
||||
{
|
||||
files: ['**/*.js', '**/*.ts'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{ argsIgnorePattern: '^_' },
|
||||
],
|
||||
},
|
||||
}
|
||||
)
|
||||
@@ -1,22 +1,22 @@
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import crypto from 'node:crypto'
|
||||
import { Buffer } from 'node:buffer'
|
||||
import { spawn } from 'node:child_process'
|
||||
import pThrottle from 'p-throttle'
|
||||
import { file as fileLib } from '@aklive2d/libs'
|
||||
import crypto from 'node:crypto'
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { BACKGROUND_DIR as BACKGROUND_DATA_DIR } from '@aklive2d/background'
|
||||
import config from '@aklive2d/config'
|
||||
import { unzipDownload } from '@aklive2d/downloader'
|
||||
import * as showcaseDirs from '@aklive2d/showcase'
|
||||
import { OPERATOR_SOURCE_FOLDER as OPERATOR_DATA_DIR } from '@aklive2d/operator'
|
||||
import { file as fileLib } from '@aklive2d/libs'
|
||||
import { DATA_DIR as MUSIC_DATA_DIR } from '@aklive2d/music'
|
||||
import { BACKGROUND_DIR as BACKGROUND_DATA_DIR } from '@aklive2d/background'
|
||||
import { OPERATOR_SOURCE_FOLDER as OPERATOR_DATA_DIR } from '@aklive2d/operator'
|
||||
import * as showcaseDirs from '@aklive2d/showcase'
|
||||
import pThrottle from 'p-throttle'
|
||||
import type {
|
||||
GenerateDirTreeOpts,
|
||||
DirTree,
|
||||
LookupTable,
|
||||
HashItem,
|
||||
DownloadList,
|
||||
GenerateDirTreeOpts,
|
||||
HashItem,
|
||||
LookupTable,
|
||||
} from './types.ts'
|
||||
|
||||
const dataDir = path.join(import.meta.dirname, config.dir_name.data)
|
||||
|
||||
@@ -5,11 +5,9 @@
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-throttle": "^7.0.0",
|
||||
"p-throttle": "^8.0.0",
|
||||
"@aklive2d/libs": "workspace:*",
|
||||
"@aklive2d/eslint-config": "workspace:*",
|
||||
"@aklive2d/config": "workspace:*",
|
||||
"@aklive2d/prettier-config": "workspace:*",
|
||||
"@aklive2d/downloader": "workspace:*",
|
||||
"@aklive2d/showcase": "workspace:*",
|
||||
"@aklive2d/operator": "workspace:*",
|
||||
@@ -17,8 +15,6 @@
|
||||
"@aklive2d/background": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"globals": ">=16.0.0",
|
||||
"typescript-eslint": ">=8.31.1",
|
||||
"typescript": ">=5.8.2"
|
||||
"typescript": ">=5.9.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
import baseConfig from '@aklive2d/prettier-config'
|
||||
|
||||
/**
|
||||
* @type {import("prettier").Config}
|
||||
*/
|
||||
const config = {
|
||||
...baseConfig,
|
||||
semi: false,
|
||||
}
|
||||
|
||||
export default config
|
||||
@@ -1,5 +1,5 @@
|
||||
import { envParser } from '@aklive2d/libs'
|
||||
import { upload, download, deploy } from './index.ts'
|
||||
import { deploy, download, upload } from './index.ts'
|
||||
|
||||
async function main() {
|
||||
const { mode } = envParser.parse({
|
||||
|
||||
Reference in New Issue
Block a user