Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
586 B
Plaintext
17 lines
586 B
Plaintext
const { nodeFileTrace } = require('@vercel/nft');
|
|
|
|
const entryPoint = require.resolve('..');
|
|
|
|
// Trace the module entrypoint
|
|
nodeFileTrace([entryPoint]).then((result) => {
|
|
console.log('@vercel/nft traced dependencies:', Array.from(result.fileList));
|
|
|
|
// If either binary is picked up, fail the test
|
|
if (result.fileList.has('sentry-cli') || result.fileList.has('sentry-cli.exe')) {
|
|
console.error('ERROR: The sentry-cli binary should not be found by @vercel/nft');
|
|
process.exit(-1);
|
|
} else {
|
|
console.log('The sentry-cli binary was not traced by @vercel/nft');
|
|
}
|
|
});
|