test 测试用rollup打包
This commit is contained in:
parent
8bfa81842b
commit
2bbf3983c1
37
package.json
37
package.json
@ -23,7 +23,9 @@
|
||||
"docker:push:gitea": "docker push git.xiongxiao.me/abearxiong/code-flow:v0.0.2",
|
||||
"dts": "./node_modules/.bin/dts-bundle-generator -o types/index.d.ts src/type.ts",
|
||||
"postinstall2": "patch-package",
|
||||
"pub": "npm run build && npm run deploy && npm run reload"
|
||||
"pub": "npm run build && npm run deploy && npm run reload",
|
||||
"bud": "rimraf dist && rollup -c",
|
||||
"bud:watch": "rollup -c -w"
|
||||
},
|
||||
"keywords": [],
|
||||
"types": "types/index.d.ts",
|
||||
@ -35,13 +37,13 @@
|
||||
"@abearxiong/auth": "1.0.2",
|
||||
"@abearxiong/router": "0.0.1-alpha.43",
|
||||
"@abearxiong/use-config": "^0.0.2",
|
||||
"@babel/core": "^7.25.9",
|
||||
"@babel/preset-env": "^7.25.9",
|
||||
"@babel/preset-typescript": "^7.25.9",
|
||||
"@babel/core": "^7.26.0",
|
||||
"@babel/preset-env": "^7.26.0",
|
||||
"@babel/preset-typescript": "^7.26.0",
|
||||
"@kevisual/ai-graph": "workspace:^",
|
||||
"@kevisual/ai-lang": "workspace:^",
|
||||
"@kevisual/router": "0.0.4-alpha-2",
|
||||
"@supabase/supabase-js": "^2.45.6",
|
||||
"@kevisual/router": "0.0.4-alpha-6",
|
||||
"@supabase/supabase-js": "^2.46.1",
|
||||
"@types/semver": "^7.5.8",
|
||||
"archiver": "^7.0.1",
|
||||
"dayjs": "^1.11.13",
|
||||
@ -52,42 +54,51 @@
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"lodash-es": "^4.17.21",
|
||||
"minio": "^8.0.2",
|
||||
"nanoid": "^5.0.7",
|
||||
"nanoid": "^5.0.8",
|
||||
"neo4j-driver": "^5.26.0",
|
||||
"neode": "^0.4.9",
|
||||
"node-fetch": "^3.3.2",
|
||||
"ollama": "^0.5.9",
|
||||
"pg": "^8.13.1",
|
||||
"semver": "^7.6.3",
|
||||
"sequelize": "^6.37.4",
|
||||
"sequelize": "^6.37.5",
|
||||
"socket.io": "^4.8.1",
|
||||
"sqlite3": "^5.1.7",
|
||||
"strip-ansi": "^7.1.0",
|
||||
"uuid": "^10.0.0",
|
||||
"uuid": "^11.0.2",
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@abearxiong/use-file-store": "^0.0.1",
|
||||
"@rollup/plugin-commonjs": "^28.0.1",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-node-resolve": "^15.3.0",
|
||||
"@rollup/plugin-typescript": "^12.1.1",
|
||||
"@types/archiver": "^6.0.3",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/formidable": "^3.4.5",
|
||||
"@types/jsonwebtoken": "^9.0.7",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^22.7.9",
|
||||
"@types/node": "^22.9.0",
|
||||
"@types/react": "^18.3.12",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"@types/webpack-env": "^1.18.5",
|
||||
"concurrently": "^9.0.1",
|
||||
"concurrently": "^9.1.0",
|
||||
"copy-webpack-plugin": "^12.0.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||
"nodemon": "^3.1.7",
|
||||
"patch-package": "^8.0.0",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"rimraf": "^6.0.1",
|
||||
"rollup": "^4.24.4",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"rollup-plugin-dts": "^6.1.1",
|
||||
"tape": "^5.9.0",
|
||||
"ts-loader": "^9.5.1",
|
||||
"tsx": "^4.19.1",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "^5.6.3",
|
||||
"webpack": "^5.95.0",
|
||||
"webpack": "^5.96.1",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"webpack-node-externals": "^3.0.0"
|
||||
},
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2330f1000b3b28ef4dbf903f75bac661e0d969b7
|
||||
Subproject commit f15a9035a5ad615e15d196c933e508968276cf58
|
1351
pnpm-lock.yaml
generated
1351
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
32
rollup.config.js
Normal file
32
rollup.config.js
Normal file
@ -0,0 +1,32 @@
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import copy from 'rollup-plugin-copy';
|
||||
import { dts } from 'rollup-plugin-dts';
|
||||
import json from '@rollup/plugin-json';
|
||||
|
||||
/**
|
||||
* @type {import('rollup').RollupOptions}
|
||||
*/
|
||||
const config1 = {
|
||||
input: 'src/index.ts', // TypeScript 入口文件
|
||||
output: {
|
||||
dir: 'dist',
|
||||
// file: 'dist/app.js', // 输出文件
|
||||
format: 'es', // 输出格式设置为 ES 模块
|
||||
},
|
||||
plugins: [
|
||||
resolve({
|
||||
browser: false,
|
||||
}), // 使用 @rollup/plugin-node-resolve 解析 node_modules 中的模块
|
||||
commonjs(), //
|
||||
json(),
|
||||
typescript({
|
||||
allowImportingTsExtensions: true,
|
||||
noEmit: true,
|
||||
declaration: false,
|
||||
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
|
||||
],
|
||||
external: ['sequelize', 'socket.io', '@babel/preset-env', '@babel/preset-typescript', 'ioredis'],
|
||||
};
|
||||
export default [config1];
|
Loading…
x
Reference in New Issue
Block a user