Skip to content

Commit

Permalink
fix build errors on windows + refactoring error
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed May 16, 2022
1 parent 90b9f0e commit 7a0839c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "cpy ./src/cert/ ./build/"
"postbuild": "cpy ./lib/objects/**/*.lua ./build/lib/objects/ --cwd=src"
},
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/lib/common/maybeCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function maybeCallbackWithRedisError<T extends any[]>(
...args: T
): Promise<any> | void {
if (error instanceof Error && error.message.includes('Connection is closed')) {
error.message = module.exports.ERRORS.ERROR_DB_CLOSED;
error.message = ERRORS.ERROR_DB_CLOSED;
}
return maybeCallbackWithError(callback, error, ...args);
}
2 changes: 1 addition & 1 deletion packages/db-objects-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "cp -r ./src/lib/objects/lua* ./build/lib/objects/"
"postbuild": "cpy -r ./src/lib/objects/lua* ./build/lib/objects/"
},
"main": "build/index.js",
"license": "Apache 2.0",
Expand Down

0 comments on commit 7a0839c

Please sign in to comment.