From b83f6e1b7120a270b3e7a324b0478e49db181f1d Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Tue, 1 Jun 2021 15:04:35 -0500 Subject: [PATCH] fix(node): assets should be copied when building with --watch ISSUES CLOSED: #5724 --- .../node/src/executors/package/package.impl.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/node/src/executors/package/package.impl.ts b/packages/node/src/executors/package/package.impl.ts index 0391503fb58d9d..a4370209cdd47b 100644 --- a/packages/node/src/executors/package/package.impl.ts +++ b/packages/node/src/executors/package/package.impl.ts @@ -36,13 +36,6 @@ export async function packageExecutor( throw new Error(); } - const result = await compileTypeScriptFiles( - normalizedOptions, - context, - libRoot, - dependencies - ); - await copyAssetFiles(normalizedOptions.files); updatePackageJson(normalizedOptions, context); @@ -61,6 +54,13 @@ export async function packageExecutor( ); } + const result = await compileTypeScriptFiles( + normalizedOptions, + context, + libRoot, + dependencies + ); + if (options.cli) { addCliWrapper(normalizedOptions, context); }