From 6199d6730eb1a01cbc3f86c5b57cf1ec077e85a8 Mon Sep 17 00:00:00 2001 From: Tyler Butler Date: Sun, 2 Feb 2020 13:09:30 -0800 Subject: [PATCH] Fix server build break --- server/routerlicious/packages/protocol-base/package.json | 3 ++- .../routerlicious/packages/protocol-definitions/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/routerlicious/packages/protocol-base/package.json b/server/routerlicious/packages/protocol-base/package.json index 1f74f911e89d..e400a3fd9cc5 100644 --- a/server/routerlicious/packages/protocol-base/package.json +++ b/server/routerlicious/packages/protocol-base/package.json @@ -13,7 +13,7 @@ "build": "npm run build:genver && concurrently npm:build:compile npm:lint", "build:compile": "concurrently npm:tsc npm:build:esnext", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", + "build:docs": "api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../../_api-extractor-temp/", "build:esnext": "tsc --project ./tsconfig.esnext.json", "build:full": "npm run build", "build:full:compile": "npm run build:compile", @@ -64,6 +64,7 @@ "@typescript-eslint/eslint-plugin": "~2.17.0", "@typescript-eslint/parser": "~2.17.0", "concurrently": "^4.1.0", + "copyfiles": "^2.1.0", "eslint": "~6.8.0", "eslint-plugin-eslint-comments": "~3.1.2", "eslint-plugin-import": "~2.20.0", diff --git a/server/routerlicious/packages/protocol-definitions/package.json b/server/routerlicious/packages/protocol-definitions/package.json index 9919123bee50..fd9ed42c0992 100644 --- a/server/routerlicious/packages/protocol-definitions/package.json +++ b/server/routerlicious/packages/protocol-definitions/package.json @@ -13,7 +13,7 @@ "build": "concurrently npm:build:compile npm:lint", "build:compile": "concurrently npm:tsc npm:build:esnext", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", + "build:docs": "api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../../_api-extractor-temp/", "build:esnext": "tsc --project ./tsconfig.esnext.json", "build:full": "npm run build", "build:full:compile": "npm run build:compile", @@ -36,6 +36,7 @@ "@typescript-eslint/eslint-plugin": "~2.17.0", "@typescript-eslint/parser": "~2.17.0", "concurrently": "^4.1.0", + "copyfiles": "^2.1.0", "eslint": "~6.8.0", "eslint-plugin-eslint-comments": "~3.1.2", "eslint-plugin-import": "~2.20.0",