mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
add server to monorepo.
This commit is contained in:
10
packages/server/src/before.ts
Normal file
10
packages/server/src/before.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import path from 'path';
|
||||
import moment from 'moment';
|
||||
|
||||
global.__root_dir = path.join(__dirname, '..');
|
||||
global.__resources_dir = path.join(global.__root, 'resources');
|
||||
global.__locales_dir = path.join(global.__resources_dir, 'locales');
|
||||
|
||||
moment.prototype.toMySqlDateTime = function () {
|
||||
return this.format('YYYY-MM-DD HH:mm:ss');
|
||||
};
|
||||
Reference in New Issue
Block a user