diff --git a/admin/backend/package.json b/admin/backend/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/admin/backend/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/admin/frontend/package.json b/admin/frontend/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/admin/frontend/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/bull-adapter/package.json b/bull-adapter/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/bull-adapter/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/core/package.json b/core/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/core/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/ml/package.json b/ml/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/ml/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/nestjs/package.json b/nestjs/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/nestjs/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/package.json b/package.json index 3b4d551..9117227 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "@lilith/queue", "version": "1.3.14", "description": "Job queue ecosystem: core types, NestJS integration, ML batching, reporting, and admin dashboard", + "type": "module", "exports": { "./core": { "types": "./core/dist/index.d.ts", @@ -95,24 +96,24 @@ ], "scripts": { "build": "pnpm run build:core && pnpm run build:nestjs && pnpm run build:ml && pnpm run build:reporting && pnpm run build:bull-adapter && pnpm run build:admin", - "build:core": "tsc -p core/tsconfig.json", - "build:nestjs": "tsc -p nestjs/tsconfig.json", - "build:ml": "tsc -p ml/tsconfig.json", - "build:reporting": "tsc -p reporting/tsconfig.json", - "build:bull-adapter": "tsc -p bull-adapter/tsconfig.json", - "build:admin": "tsc -p admin/backend/tsconfig.json && tsc -p admin/frontend/tsconfig.json", + "build:core": "cd core && tsup", + "build:nestjs": "cd nestjs && tsup", + "build:ml": "cd ml && tsup", + "build:reporting": "cd reporting && tsup", + "build:bull-adapter": "cd bull-adapter && tsup", + "build:admin": "cd admin/backend && tsup && cd ../frontend && tsup", "dev": "pnpm run --parallel dev:*", - "dev:core": "tsc -p core/tsconfig.json --watch", - "dev:nestjs": "tsc -p nestjs/tsconfig.json --watch", - "dev:ml": "tsc -p ml/tsconfig.json --watch", - "dev:reporting": "tsc -p reporting/tsconfig.json --watch", - "dev:bull-adapter": "tsc -p bull-adapter/tsconfig.json --watch", - "dev:admin": "tsc -p admin/backend/tsconfig.json --watch & tsc -p admin/frontend/tsconfig.json --watch", + "dev:core": "cd core && tsup --watch", + "dev:nestjs": "cd nestjs && tsup --watch", + "dev:ml": "cd ml && tsup --watch", + "dev:reporting": "cd reporting && tsup --watch", + "dev:bull-adapter": "cd bull-adapter && tsup --watch", + "dev:admin": "cd admin/backend && tsup --watch & cd admin/frontend && tsup --watch", "test": "vitest", "test:e2e": "vitest run --config e2e/vitest.config.ts", "lint": "eslint . --fix", "lint:check": "eslint .", - "typecheck": "pnpm run build", + "typecheck": "tsc --noEmit -p core/tsconfig.json && tsc --noEmit -p nestjs/tsconfig.json && tsc --noEmit -p ml/tsconfig.json && tsc --noEmit -p reporting/tsconfig.json && tsc --noEmit -p bull-adapter/tsconfig.json && tsc --noEmit -p admin/backend/tsconfig.json && tsc --noEmit -p admin/frontend/tsconfig.json", "clean": "rm -rf core/dist nestjs/dist ml/dist reporting/dist bull-adapter/dist admin/backend/dist admin/frontend/dist", "prepublishOnly": "pnpm run build" }, @@ -213,6 +214,7 @@ }, "devDependencies": { "@lilith/ui-data": "workspace:*", + "tsup": "^8.5.1", "@lilith/ui-feedback": "workspace:*", "@lilith/ui-layout": "workspace:*", "@lilith/ui-primitives": "workspace:*", diff --git a/reporting/package.json b/reporting/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/reporting/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +}