From f4143a8939d86c85b43bed254a281d169d6d2648 Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 25 Jul 2023 21:15:19 +0800 Subject: [PATCH] Fixed build scripts for post-events package --- .github/scripts/dev.js | 2 +- ghost/collections/package.json | 1 + ghost/post-events/package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/dev.js b/.github/scripts/dev.js index cae2f44523..b6c35f90c2 100644 --- a/.github/scripts/dev.js +++ b/.github/scripts/dev.js @@ -41,7 +41,7 @@ const COMMAND_ADMIN = { const COMMAND_TYPESCRIPT = { name: 'ts', - command: 'nx watch --projects=ghost/collections,ghost/in-memory-repository,ghost/mail-events,ghost/model-to-domain-event-interceptor,ghost/post-revisions,ghost/nql-filter-expansions,ghost/donations -- nx run \\$NX_PROJECT_NAME:build:ts', + command: 'nx watch --projects=ghost/collections,ghost/in-memory-repository,ghost/mail-events,ghost/model-to-domain-event-interceptor,ghost/post-revisions,ghost/nql-filter-expansions,ghost/post-events,ghost/donations -- nx run \\$NX_PROJECT_NAME:build:ts', cwd: path.resolve(__dirname, '../../'), prefixColor: 'cyan', env: {} diff --git a/ghost/collections/package.json b/ghost/collections/package.json index 42e7df68fe..e5f7379348 100644 --- a/ghost/collections/package.json +++ b/ghost/collections/package.json @@ -31,6 +31,7 @@ "@tryghost/logging": "2.4.5", "@tryghost/nql": "0.11.0", "@tryghost/nql-filter-expansions": "0.0.0", + "@tryghost/post-events": "0.0.0", "@tryghost/tpl": "0.1.25", "bson-objectid": "2.0.4" }, diff --git a/ghost/post-events/package.json b/ghost/post-events/package.json index cf3162e825..635f1b8a57 100644 --- a/ghost/post-events/package.json +++ b/ghost/post-events/package.json @@ -9,7 +9,7 @@ "scripts": { "dev": "tsc --watch --preserveWatchOutput --sourceMap", "build": "tsc", - "prepare": "tsc", + "build:ts": "yarn build", "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit",