refactor: add cron job core package (#704)

* refactor: add cron job core package

* docs: add comments to cron validation types

* chore(deps): move node-cron dependencies from tasks app to cron-jobs-core package

* fix: runOnInit is not running on start and rather on job creation

* fix: format issues

* fix: build fails when using top level await in cjs

* chore: update turbo gen package json typescript version to 5.5.2

* fix: format issue

* fix: deepsource issues

* chore: update turbo gen package json eslint version to 9.5.0

* chore: fix frozen lockfile and format
This commit is contained in:
Meier Lukas
2024-06-22 20:00:20 +02:00
committed by GitHub
parent ea12da991a
commit 92afd82d22
26 changed files with 397 additions and 128 deletions

37
pnpm-lock.yaml generated
View File

@@ -258,6 +258,9 @@ importers:
'@homarr/common':
specifier: workspace:^0.1.0
version: link:../../packages/common
'@homarr/cron-jobs-core':
specifier: workspace:^0.1.0
version: link:../../packages/cron-jobs-core
'@homarr/db':
specifier: workspace:^0.1.0
version: link:../../packages/db
@@ -291,9 +294,6 @@ importers:
dotenv:
specifier: ^16.4.5
version: 16.4.5
node-cron:
specifier: ^3.0.3
version: 3.0.3
superjson:
specifier: 2.2.1
version: 2.2.1
@@ -313,9 +313,6 @@ importers:
'@types/node':
specifier: ^20.14.8
version: 20.14.8
'@types/node-cron':
specifier: ^3.0.11
version: 3.0.11
dotenv-cli:
specifier: ^7.4.2
version: 7.4.2
@@ -592,6 +589,34 @@ importers:
specifier: ^5.5.2
version: 5.5.2
packages/cron-jobs-core:
dependencies:
'@homarr/common':
specifier: workspace:^0.1.0
version: link:../common
node-cron:
specifier: ^3.0.3
version: 3.0.3
devDependencies:
'@homarr/eslint-config':
specifier: workspace:^0.2.0
version: link:../../tooling/eslint
'@homarr/prettier-config':
specifier: workspace:^0.1.0
version: link:../../tooling/prettier
'@homarr/tsconfig':
specifier: workspace:^0.1.0
version: link:../../tooling/typescript
'@types/node-cron':
specifier: ^3.0.11
version: 3.0.11
eslint:
specifier: ^9.5.0
version: 9.5.0
typescript:
specifier: ^5.5.2
version: 5.5.2
packages/db:
dependencies:
'@auth/core':