mirror of
https://github.com/sussy-code/providers.git
synced 2026-08-06 19:08:39 +00:00
New source
This commit is contained in:
parent
bb47bc7a93
commit
d30247da01
3 changed files with 1401 additions and 1370 deletions
11
package.json
11
package.json
|
|
@ -59,12 +59,13 @@
|
|||
"@types/spinnies": "^0.5.3",
|
||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||
"@typescript-eslint/parser": "^7.18.0",
|
||||
"@vitejs/plugin-react": "^5.2.0",
|
||||
"@vitest/coverage-v8": "^1.6.1",
|
||||
"commander": "^12.1.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"dotenv": "^16.6.1",
|
||||
"enquirer": "^2.4.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint": "^10.0.3",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-config-prettier": "^9.1.2",
|
||||
"eslint-import-resolver-typescript": "^3.10.1",
|
||||
|
|
@ -72,14 +73,12 @@
|
|||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"node-fetch": "^3.3.2",
|
||||
"prettier": "^3.6.2",
|
||||
"puppeteer": "^22.15.0",
|
||||
"rollup-plugin-obfuscator": "^1.1.0",
|
||||
"spinnies": "^0.5.1",
|
||||
"terser": "^5.44.0",
|
||||
"tsc-alias": "^1.8.16",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^5.4.21",
|
||||
"vite": "^8.0.0",
|
||||
"vite-node": "^1.6.1",
|
||||
"vite-plugin-dts": "^3.9.1",
|
||||
"vitest": "^1.6.1"
|
||||
|
|
@ -96,8 +95,10 @@
|
|||
"json5": "^2.2.3",
|
||||
"nanoid": "^3.3.11",
|
||||
"node-fetch": "^3.3.2",
|
||||
"rollup-plugin-visualizer": "^7.0.1",
|
||||
"set-cookie-parser": "^2.7.1",
|
||||
"unpacker": "^1.0.1"
|
||||
"unpacker": "^1.0.1",
|
||||
"puppeteer": "^22.15.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.14.4"
|
||||
}
|
||||
2728
pnpm-lock.yaml
2728
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
|
@ -15,35 +15,24 @@ export default defineConfig((env) => ({
|
|||
rollupTypes: true,
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [],
|
||||
},
|
||||
},
|
||||
build: {
|
||||
target: 'node18', // Node-only target
|
||||
minify: false,
|
||||
outDir: 'lib',
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, 'src/index.ts'),
|
||||
name: 'index',
|
||||
fileName: 'index',
|
||||
formats: ['cjs', 'es'], // Node-friendly formats
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
minify: false,
|
||||
rollupOptions: {
|
||||
external: [
|
||||
...Object.keys(pkg.dependencies),
|
||||
'puppeteer',
|
||||
'@puppeteer/browsers',
|
||||
'proxy-agent',
|
||||
'node:http',
|
||||
'node:https',
|
||||
'node:url',
|
||||
'proxy-agent'
|
||||
],
|
||||
output: {
|
||||
globals: Object.fromEntries(
|
||||
|
|
@ -51,6 +40,13 @@ export default defineConfig((env) => ({
|
|||
),
|
||||
},
|
||||
},
|
||||
outDir: 'lib',
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, 'src/index.ts'),
|
||||
name: 'index',
|
||||
fileName: 'index',
|
||||
formats: ['umd', 'es'],
|
||||
},
|
||||
},
|
||||
test: {
|
||||
include: tests,
|
||||
|
|
|
|||
Loading…
Reference in a new issue