chore: update some deps and update ci (#935)

This commit is contained in:
2023-01-16 22:37:40 +08:00
committed by GitHub
parent 40faa3502c
commit 7f1c25a3cf
10 changed files with 983 additions and 2760 deletions

View File

@@ -1,4 +1,4 @@
import { isEqual } from 'lodash'
import isEqual from 'lodash/isEqual'
import { URLSearchParams } from 'url'
import { vi } from 'vitest'

View File

@@ -105,20 +105,21 @@
"@types/express": "4.17.15",
"@types/lodash": "4.14.186",
"abort-controller": "3.0.0",
"axios": "*",
"axios": "^1.2.2",
"camelcase-keys": "*",
"concurrently": "7.6.0",
"cors": "2.8.5",
"dts-bundle-generator": "7.0.0",
"express": "4.18.2",
"isomorphic-unfetch": "3.1.0",
"ky": "0.31.3",
"ky": "0.33.2",
"lodash": "4.17.21",
"node-fetch": "3.2.10",
"rollup": "2.79.1",
"rollup": "3.10.0",
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-terser": "7.0.2",
"tsc-alias": "1.7.0",
"umi-request": "1.4.0"
"tsc-alias": "1.8.2",
"umi-request": "1.4.0",
"globby": "^13.0.0"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,7 @@
// @ts-check
import { execSync } from 'child_process'
import globby from 'globby'
import { readFileSync } from 'fs'
import { globbySync } from 'globby'
import path, { resolve } from 'path'
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import { terser } from 'rollup-plugin-terser'
@@ -9,7 +10,8 @@ import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
const packageJson = require('./package.json')
const packageJson = JSON.parse(readFileSync('./package.json', 'utf-8'))
const __dirname = new URL(import.meta.url).pathname.replace(/\/[^/]*$/, '')
const umdName = packageJson.name
@@ -41,7 +43,7 @@ const baseRollupConfig = {
* @returns {import('rollup').RollupOptions[]}
*/
const buildAdaptorConfig = () => {
const paths = globby.sync('./adaptors/*.ts')
const paths = globbySync('./adaptors/*.ts')
const filename = (path_) => path.parse(path_.split('/').pop()).name
return paths.map((path) => {

View File

@@ -11,4 +11,7 @@ export default defineConfig({
// @ts-ignore
plugins: [tsPath()],
optimizeDeps: {
needsInterop: ['lodash'],
},
})