refactor: for test

This commit is contained in:
xiaojunnuo
2023-05-09 09:49:42 +08:00
parent 003ea9310b
commit f358a0f226
54 changed files with 97 additions and 112 deletions
+3 -2
View File
@@ -16,7 +16,8 @@
"preview": "vite preview"
},
"dependencies": {
"@certd/pipeline": "^0.3.0",
"@certd/pipeline": "workspace:^0.3.0",
"@certd/plugin-cert": "workspace:^0.3.0",
"ssh2": "^0.8.9"
},
"devDependencies": {
@@ -39,7 +40,7 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"lodash-es": "^4.17.20",
"lodash": "^4.17.20",
"log4js": "^6.3.0",
"mocha": "^10.1.0",
"ts-node": "^10.9.1",
+1 -1
View File
@@ -27,7 +27,7 @@ export class SshClient {
conn
.on("ready", () => {
this.logger.info("连接服务器成功");
conn.sftp(async (err: Error, sftp: any) => {
conn.sftp(async (err: any, sftp: any) => {
if (err) {
throw err;
}
+2 -2
View File
@@ -8,13 +8,13 @@ export default defineConfig({
name: "pipeline",
},
rollupOptions: {
external: ["vue", "lodash-es", "dayjs", "@fast-crud/fast-crud", "log4js", "lodash", "@certd/pipeline"],
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud", "log4js", "lodash", "@certd/pipeline"],
output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: "Vue",
"lodash-es": "_",
"lodash": "_",
lodash: "_",
dayjs: "dayjs",
"@fast-crud/fast-crud": "FastCrud",