Skip to content

Commit

Permalink
fix(node): assets should be copied when building with --watch
Browse files Browse the repository at this point in the history
ISSUES CLOSED: nrwl#5724
  • Loading branch information
AgentEnder committed Jun 1, 2021
1 parent d01bac7 commit b83f6e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/node/src/executors/package/package.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -61,6 +54,13 @@ export async function packageExecutor(
);
}

const result = await compileTypeScriptFiles(
normalizedOptions,
context,
libRoot,
dependencies
);

if (options.cli) {
addCliWrapper(normalizedOptions, context);
}
Expand Down

0 comments on commit b83f6e1

Please sign in to comment.