MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / sendMessage

Function sendMessage

packages/vite/helpers/ns-cli-plugins.ts:92–105  ·  view source on GitHub ↗
(files: string[])

Source from the content-addressed store, hash-verified

90
91 if (process.send) {
92 const sendMessage = (files: string[]) => {
93 const message = {
94 emittedFiles: files,
95 chunkFiles: files.filter((f) => f.includes('chunk') || f.includes('vendor')),
96 hash: Date.now().toString(),
97 isHMR: false,
98 buildType,
99 timestamp: Date.now(),
100 } as const;
101 if (opts.verbose) {
102 console.log(`Sending ${buildType} build notification to CLI.`);
103 }
104 process.send(message as any);
105 };
106 if (emittedFiles.length === 0) {
107 // Allow a short delay for any late FS writes by other post plugins
108 setTimeout(() => {

Callers 1

closeBundleFunction · 0.85

Calls 5

includesMethod · 0.80
sendMethod · 0.80
filterMethod · 0.45
toStringMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected