From 6672d3802711d9118f6024ebe6c69ef0e35fa4a5 Mon Sep 17 00:00:00 2001 From: Otavio Jacobi Date: Wed, 30 Oct 2024 14:48:29 -0300 Subject: [PATCH] Build standalone without pkg Change-type: major --- .github/actions/publish/action.yml | 4 +- .mocharc.js | 2 +- INSTALL-LINUX.md | 14 +- automation/build-bin.ts | 331 +++------------ automation/run.ts | 6 +- automation/utils.ts | 63 --- npm-shrinkwrap.json | 55 --- package.json | 26 -- patches/all/open+7.4.2.patch | 16 - patches/unix/node-gyp-build+4.6.0.patch | 14 - patches/win32/windosu+0.3.0.patch | 38 -- src/app.ts | 8 +- src/utils/bootstrap.ts | 37 -- tests/helpers.ts | 92 ++++- .../pkg/expected-warnings-darwin-arm64.txt | 382 ------------------ .../pkg/expected-warnings-darwin-x64.txt | 382 ------------------ .../pkg/expected-warnings-linux-arm64.txt | 382 ------------------ .../pkg/expected-warnings-linux-x64.txt | 382 ------------------ .../pkg/expected-warnings-win32-x64.txt | 382 ------------------ 19 files changed, 155 insertions(+), 2461 deletions(-) delete mode 100644 patches/all/open+7.4.2.patch delete mode 100644 patches/unix/node-gyp-build+4.6.0.patch delete mode 100644 patches/win32/windosu+0.3.0.patch delete mode 100644 tests/test-data/pkg/expected-warnings-darwin-arm64.txt delete mode 100644 tests/test-data/pkg/expected-warnings-darwin-x64.txt delete mode 100644 tests/test-data/pkg/expected-warnings-linux-arm64.txt delete mode 100644 tests/test-data/pkg/expected-warnings-linux-x64.txt delete mode 100644 tests/test-data/pkg/expected-warnings-win32-x64.txt diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 31fa9e9a..d33bfd3f 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -138,6 +138,8 @@ runs: uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 with: name: gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ strategy.job-index }} - path: dist + path: | + dist + !dist/balena retention-days: 1 if-no-files-found: error diff --git a/.mocharc.js b/.mocharc.js index b8181136..86b4b465 100644 --- a/.mocharc.js +++ b/.mocharc.js @@ -2,7 +2,7 @@ module.exports = { reporter: 'spec', require: 'ts-node/register/transpile-only', file: './tests/config-tests', - timeout: 12000, + timeout: 48000, // To test only, say, 'push.spec.ts', do it as follows so that // requests are authenticated: // spec: ['tests/auth/*.spec.ts', 'tests/**/deploy.spec.ts'], diff --git a/INSTALL-LINUX.md b/INSTALL-LINUX.md index 10b9dc51..1122be9a 100644 --- a/INSTALL-LINUX.md +++ b/INSTALL-LINUX.md @@ -8,15 +8,15 @@ method. Selected operating system: **Linux** -1. Download the latest zip file from the [latest release +1. Download the latest tar.gz file from the [latest release page](https://github.com/balena-io/balena-cli/releases/latest). Look for a file name that ends - with "-standalone.zip", for example: - `balena-cli-vX.Y.Z-linux-x64-standalone.zip` + with "-standalone.tar.gz", for example: + `balena-cli-vX.Y.Z-linux-x64-standalone.tar.gz` -2. Extract the zip file contents to any folder you choose, for example `/home/james`. - The extracted contents will include a `balena-cli` folder. +2. Extract the tar.gz file contents to any folder you choose, for example `/home/james`. + The extracted contents will include a `balena/bin` folder. -3. Add that folder (e.g. `/home/james/balena-cli`) to the `PATH` environment variable. +3. Add that folder (e.g. `/home/james/balena/bin`) to the `PATH` environment variable. Check this [StackOverflow post](https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix) for instructions. Close and reopen the terminal window so that the changes to `PATH` @@ -27,7 +27,7 @@ Selected operating system: **Linux** * `balena version` - should print the CLI's version * `balena help` - should print a list of available commands -To update the balena CLI to a new version, download a new release zip file and replace the previous +To update the balena CLI to a new version, download a new release tar.gz file and replace the previous installation folder. To uninstall, simply delete the folder and edit the PATH environment variable as described above. diff --git a/automation/build-bin.ts b/automation/build-bin.ts index f0c03f6f..b4a06bde 100644 --- a/automation/build-bin.ts +++ b/automation/build-bin.ts @@ -15,29 +15,17 @@ * limitations under the License. */ -import type { JsonVersions } from '../src/commands/version/index'; - import { run as oclifRun } from '@oclif/core'; -import * as archiver from 'archiver'; import { exec, execFile } from 'child_process'; -import * as filehound from 'filehound'; import type { Stats } from 'fs'; import * as fs from 'fs-extra'; import * as klaw from 'klaw'; import * as path from 'path'; import * as rimraf from 'rimraf'; -import * as semver from 'semver'; import { promisify } from 'util'; import { notarize } from '@electron/notarize'; -import { stripIndent } from '../build/utils/lazy'; -import { - diffLines, - loadPackageJson, - ROOT, - StdOutTap, - whichSpawn, -} from './utils'; +import { loadPackageJson, ROOT, whichSpawn } from './utils'; const execFileAsync = promisify(execFile); const execAsync = promisify(exec); @@ -55,12 +43,6 @@ interface PathByPlatform { [platform: string]: string; } -const standaloneZips: PathByPlatform = { - linux: dPath(`balena-cli-${version}-linux-${arch}-standalone.zip`), - darwin: dPath(`balena-cli-${version}-macOS-${arch}-standalone.zip`), - win32: dPath(`balena-cli-${version}-windows-${arch}-standalone.zip`), -}; - const getOclifInstallersOriginalNames = async (): Promise => { const { stdout } = await execAsync('git rev-parse --short HEAD'); const sha = stdout.trim(); @@ -75,260 +57,26 @@ const renamedOclifInstallers: PathByPlatform = { win32: dPath(`balena-cli-${version}-windows-${arch}-installer.exe`), }; -export const finalReleaseAssets: { [platform: string]: string[] } = { - win32: [standaloneZips['win32'], renamedOclifInstallers['win32']], - darwin: [standaloneZips['darwin'], renamedOclifInstallers['darwin']], - linux: [standaloneZips['linux']], +const getOclifStandaloneOriginalNames = async (): Promise => { + const { stdout } = await execAsync('git rev-parse --short HEAD'); + const sha = stdout.trim(); + return { + linux: dPath(`balena-${version}-${sha}-linux-${arch}.tar.gz`), + darwin: dPath(`balena-${version}-${sha}-darwin-${arch}.tar.gz`), + win32: dPath(`balena-${version}-${sha}-win32-${arch}.tar.gz`), + }; }; -/** - * Given the output of `pkg` as a string (containing warning messages), - * diff it against previously saved output of known "safe" warnings. - * Throw an error if the diff is not empty. - */ -async function diffPkgOutput(pkgOut: string) { - const { monochrome } = await import('../tests/helpers'); - const relSavedPath = path.join( - 'tests', - 'test-data', - 'pkg', - `expected-warnings-${process.platform}-${arch}.txt`, - ); - const absSavedPath = path.join(ROOT, relSavedPath); - const ignoreStartsWith = [ - '> pkg@', - '> Fetching base Node.js binaries', - ' fetched-', - 'prebuild-install WARN install No prebuilt binaries found', - ]; - const modulesRE = - process.platform === 'win32' - ? /(?<=[ '])([A-Z]:)?\\.+?\\node_modules(?=\\)/ - : /(?<=[ '])\/.+?\/node_modules(?=\/)/; - const buildRE = - process.platform === 'win32' - ? /(?<=[ '])([A-Z]:)?\\.+\\build(?=\\)/ - : /(?<=[ '])\/.+\/build(?=\/)/; - - const cleanLines = (chunks: string | string[]) => { - const lines = typeof chunks === 'string' ? chunks.split('\n') : chunks; - return lines - .map((line: string) => monochrome(line)) // remove ASCII colors - .filter((line: string) => !/^\s*$/.test(line)) // blank lines - .filter((line: string) => - ignoreStartsWith.every((i) => !line.startsWith(i)), - ) - .map((line: string) => { - // replace absolute paths with relative paths - let replaced = line.replace(modulesRE, 'node_modules'); - if (replaced === line) { - replaced = line.replace(buildRE, 'build'); - } - return replaced; - }); - }; - - pkgOut = cleanLines(pkgOut).join('\n'); - const { readFile } = (await import('fs')).promises; - const expectedOut = cleanLines(await readFile(absSavedPath, 'utf8')).join( - '\n', - ); - if (expectedOut !== pkgOut) { - const sep = - '================================================================================'; - const diff = diffLines(expectedOut, pkgOut); - const msg = `pkg output does not match expected output from "${relSavedPath}" -Diff: -${sep} -${diff} -${sep} -Check whether the new or changed pkg warnings are safe to ignore, then update -"${relSavedPath}" -and share the result of your investigation as comments on the pull request. -Hint: the fix is often a matter of updating the 'pkg.scripts' or 'pkg.assets' -sections in the CLI's 'package.json' file, or a matter of updating the -'buildPkg' function in 'automation/build-bin.ts'. Sometimes it requires -patching dependencies: See for example 'patches/all/open+7.0.2.patch'. -${sep} -`; - throw new Error(msg); - } -} - -/** - * Call `pkg.exec` to generate the standalone zip file, capturing its warning - * messages (stdout and stderr) in order to call diffPkgOutput(). - */ -async function execPkg(...args: any[]) { - const { exec: pkgExec } = await import('@yao-pkg/pkg'); - const outTap = new StdOutTap(true); - try { - outTap.tap(); - await (pkgExec as any)(...args); - } catch (err) { - outTap.untap(); - console.log(outTap.stdoutBuf.join('')); - console.error(outTap.stderrBuf.join('')); - throw err; - } - outTap.untap(); - await diffPkgOutput(outTap.allBuf.join('')); -} - -/** - * Use the 'pkg' module to create a single large executable file with - * the contents of 'node_modules' and the CLI's javascript code. - * Also copy a number of native modules (binary '.node' files) that are - * compiled during 'npm install' to the 'build-bin' folder, alongside - * the single large executable file created by pkg. (This is necessary - * because of a pkg limitation that does not allow binary executables - * to be directly executed from inside another binary executable.) - */ -async function buildPkg() { - // https://github.com/vercel/pkg#targets - let targets = `linux-${arch}`; - if (process.platform === 'darwin') { - targets = `macos-${arch}`; - } - // TBC: not yet possible to build for Windows arm64 on x64 nodes - if (process.platform === 'win32') { - targets = `win-x64`; - } - const args = [ - '--targets', - targets, - '--output', - 'build-bin/balena', - 'package.json', - ]; - console.log('======================================================='); - console.log(`execPkg ${args.join(' ')}`); - console.log(`cwd="${process.cwd()}" ROOT="${ROOT}"`); - console.log('======================================================='); - - await execPkg(args); - - const paths: Array<[string, string[], string[]]> = [ - // [platform, [source path], [destination path]] - ['*', ['open', 'xdg-open'], ['xdg-open']], - ['darwin', ['denymount', 'bin', 'denymount'], ['denymount']], - ]; - await Promise.all( - paths.map(([platform, source, dest]) => { - if (platform === '*' || platform === process.platform) { - // eg copy from node_modules/open/xdg-open to build-bin/xdg-open - return fs.copy( - path.join(ROOT, 'node_modules', ...source), - path.join(ROOT, 'build-bin', ...dest), - ); - } - }), - ); - const nativeExtensionPaths: string[] = await filehound - .create() - .paths(path.join(ROOT, 'node_modules')) - .ext(['node', 'dll']) - .find(); - - console.log(`\nCopying to build-bin:\n${nativeExtensionPaths.join('\n')}`); - - await Promise.all( - nativeExtensionPaths.map((extPath) => - fs.copy( - extPath, - extPath.replace( - path.join(ROOT, 'node_modules'), - path.join(ROOT, 'build-bin'), - ), - ), - ), - ); -} - -/** - * Run some basic tests on the built pkg executable. - * TODO: test more than just `balena version -j`; integrate with the - * existing mocha/chai CLI command testing. - */ -async function testPkg() { - const pkgBalenaPath = path.join( - ROOT, - 'build-bin', - process.platform === 'win32' ? 'balena.exe' : 'balena', - ); - console.log(`Testing standalone package "${pkgBalenaPath}"...`); - // Run `balena version -j`, parse its stdout as JSON, and check that the - // reported Node.js major version matches semver.major(process.version) - let { stdout, stderr } = await execFileAsync(pkgBalenaPath, [ - 'version', - '-j', - ]); - const { filterCliOutputForTests } = await import('../tests/helpers'); - const filtered = filterCliOutputForTests({ - err: stderr.split(/\r?\n/), - out: stdout.split(/\r?\n/), - }); - stdout = filtered.out.join('\n'); - stderr = filtered.err.join('\n'); - let pkgNodeVersion = ''; - let pkgNodeMajorVersion = 0; - try { - const balenaVersions: JsonVersions = JSON.parse(stdout); - pkgNodeVersion = balenaVersions['Node.js']; - pkgNodeMajorVersion = semver.major(pkgNodeVersion); - } catch (err) { - throw new Error(stripIndent` - Error parsing JSON output of "balena version -j": ${err} - Original output: "${stdout}"`); - } - if (semver.major(process.version) !== pkgNodeMajorVersion) { - throw new Error( - `Mismatched major version: built-in pkg Node version="${pkgNodeVersion}" vs process.version="${process.version}"`, - ); - } - if (filtered.err.length > 0) { - const err = filtered.err.join('\n'); - throw new Error(`"${pkgBalenaPath}": non-empty stderr "${err}"`); - } - console.log('Success! (standalone package test successful)'); -} - -/** - * Create the zip file for the standalone 'pkg' bundle previously created - * by the buildPkg() function in 'build-bin.ts'. - */ -async function zipPkg() { - const outputFile = standaloneZips[process.platform]; - if (!outputFile) { - throw new Error( - `Standalone installer unavailable for platform "${process.platform}"`, - ); - } - await fs.mkdirp(path.dirname(outputFile)); - await new Promise((resolve, reject) => { - console.log(`Zipping standalone package to "${outputFile}"...`); - - const archive = archiver('zip', { - zlib: { level: 7 }, - }); - archive.directory(path.join(ROOT, 'build-bin'), 'balena-cli'); - - const outputStream = fs.createWriteStream(outputFile); - - outputStream.on('close', resolve); - outputStream.on('error', reject); - - archive.on('error', reject); - archive.on('warning', console.warn); - - archive.pipe(outputStream); - archive.finalize().catch(reject); - }); -} +const renamedOclifStandalone: PathByPlatform = { + linux: dPath(`balena-cli-${version}-linux-${arch}-standalone.tar.gz`), + darwin: dPath(`balena-cli-${version}-macOS-${arch}-standalone.tar.gz`), + win32: dPath(`balena-cli-${version}-windows-${arch}-standalone.tar.gz`), +}; export async function signFilesForNotarization() { console.log('Signing files for notarization'); - if (process.platform !== 'darwin') { + if (process.platform !== 'darwin' || !process.env.CSC_LINK) { + console.log('Skipping signing for notarization'); return; } console.log('Deleting unneeded zip files...'); @@ -416,20 +164,39 @@ export async function signFilesForNotarization() { ]); } -export async function buildStandaloneZip() { - console.log(`Building standalone zip package for CLI ${version}`); +export async function buildStandalone() { + console.log(`Building standalone tarball for CLI ${version}`); + fs.rmSync('./tmp', { recursive: true, force: true }); + fs.rmSync('./dist', { recursive: true, force: true }); + fs.mkdirSync('./dist'); try { - await buildPkg(); - await testPkg(); - await zipPkg(); - console.log(`Standalone zip package build completed`); + let packOpts = ['-r', ROOT, '--no-xz']; + if (process.platform === 'darwin') { + packOpts = packOpts.concat('--targets', `darwin-${arch}`); + } else if (process.platform === 'win32') { + packOpts = packOpts.concat('--targets', 'win32-x64'); + } else if (process.platform === 'linux') { + packOpts = packOpts.concat('--targets', `linux-${arch}`); + } + + console.log(`Building oclif installer for CLI ${version}`); + const packCmd = `pack:tarballs`; + console.log('======================================================='); + console.log(`oclif ${packCmd} ${packOpts.join(' ')}`); + console.log(`cwd="${process.cwd()}" ROOT="${ROOT}"`); + console.log('======================================================='); + const oclifPath = path.join(ROOT, 'node_modules', 'oclif'); + await oclifRun([packCmd].concat(...packOpts), oclifPath); + await renameStandalone(); + + console.log(`Standalone tarball package build completed`); } catch (error) { - console.error(`Error creating or testing standalone zip package`); + console.error(`Error creating or testing standalone tarball package`); throw error; } } -async function renameInstallerFiles() { +async function renameInstallers() { const oclifInstallers = await getOclifInstallersOriginalNames(); if (await fs.pathExists(oclifInstallers[process.platform])) { await fs.rename( @@ -439,6 +206,16 @@ async function renameInstallerFiles() { } } +async function renameStandalone() { + const oclifStandalone = await getOclifStandaloneOriginalNames(); + if (await fs.pathExists(oclifStandalone[process.platform])) { + await fs.rename( + oclifStandalone[process.platform], + renamedOclifStandalone[process.platform], + ); + } +} + /** * If the CSC_LINK and CSC_KEY_PASSWORD env vars are set, digitally sign the * executable installer using Microsoft SignTool.exe (Sign Tool) @@ -525,7 +302,7 @@ export async function buildOclifInstaller() { console.log('======================================================='); const oclifPath = path.join(ROOT, 'node_modules', 'oclif'); await oclifRun([packCmd].concat(...packOpts), oclifPath); - await renameInstallerFiles(); + await renameInstallers(); // The Windows installer is explicitly signed here (oclif doesn't do it). // The macOS installer is automatically signed by oclif (which runs the // `pkgbuild` tool), using the certificate name given in package.json diff --git a/automation/run.ts b/automation/run.ts index b0986f43..9e5af74c 100644 --- a/automation/run.ts +++ b/automation/run.ts @@ -19,7 +19,7 @@ import * as _ from 'lodash'; import { buildOclifInstaller, - buildStandaloneZip, + buildStandalone, catchUncommitted, signFilesForNotarization, testShrinkwrap, @@ -36,7 +36,7 @@ process.env.DEBUG = ['0', 'no', 'false', '', undefined].includes( * Trivial command-line parser. Check whether the command-line argument is one * of the following strings, then call the appropriate functions: * 'build:installer' (to build a native oclif installer) - * 'build:standalone' (to build a standalone pkg package) + * 'build:standalone' (to build a standalone package) * * @param args Arguments to parse (default is process.argv.slice(2)) */ @@ -49,7 +49,7 @@ async function parse(args?: string[]) { } const commands: { [cmd: string]: () => void | Promise } = { 'build:installer': buildOclifInstaller, - 'build:standalone': buildStandaloneZip, + 'build:standalone': buildStandalone, 'sign:binaries': signFilesForNotarization, 'catch-uncommitted': catchUncommitted, 'test-shrinkwrap': testShrinkwrap, diff --git a/automation/utils.ts b/automation/utils.ts index c4c8cb43..a5dcd2b7 100644 --- a/automation/utils.ts +++ b/automation/utils.ts @@ -18,73 +18,10 @@ import { spawn } from 'child_process'; import * as path from 'path'; import * as fs from 'fs'; -import { diffTrimmedLines } from 'diff'; import * as whichMod from 'which'; export const ROOT = path.join(__dirname, '..'); -/** Tap and buffer this process' stdout and stderr */ -export class StdOutTap { - public stdoutBuf: string[] = []; - public stderrBuf: string[] = []; - public allBuf: string[] = []; // both stdout and stderr - - protected origStdoutWrite: typeof process.stdout.write; - protected origStderrWrite: typeof process.stdout.write; - - constructor(protected printDots = false) {} - - tap() { - this.origStdoutWrite = process.stdout.write; - this.origStderrWrite = process.stderr.write; - - process.stdout.write = (chunk: string, ...args: any[]): boolean => { - this.stdoutBuf.push(chunk); - this.allBuf.push(chunk); - const str = this.printDots ? '.' : chunk; - return this.origStdoutWrite.call(process.stdout, str, ...args); - }; - - process.stderr.write = (chunk: string, ...args: any[]): boolean => { - this.stderrBuf.push(chunk); - this.allBuf.push(chunk); - const str = this.printDots ? '.' : chunk; - return this.origStderrWrite.call(process.stderr, str, ...args); - }; - } - - untap() { - process.stdout.write = this.origStdoutWrite; - process.stderr.write = this.origStderrWrite; - if (this.printDots) { - console.error(''); - } - } -} - -/** - * Diff strings by line, using the 'diff' npm package: - * https://www.npmjs.com/package/diff - */ -export function diffLines(str1: string, str2: string): string { - const diffObjs = diffTrimmedLines(str1, str2); - const prefix = (chunk: string, char: string) => - chunk - .split('\n') - .map((line: string) => `${char} ${line}`) - .join('\n'); - const diffStr = diffObjs - .map((part: any) => { - return part.added - ? prefix(part.value, '+') - : part.removed - ? prefix(part.value, '-') - : prefix(part.value, ' '); - }) - .join('\n'); - return diffStr; -} - export function loadPackageJson() { const packageJsonPath = path.join(ROOT, 'package.json'); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index be481657..ee35f3ae 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -92,14 +92,12 @@ "devDependencies": { "@balena/lint": "^9.1.3", "@electron/notarize": "^2.0.0", - "@types/archiver": "^6.0.2", "@types/bluebird": "^3.5.36", "@types/body-parser": "^1.19.2", "@types/chai": "^4.3.0", "@types/chai-as-promised": "^7.1.4", "@types/cli-truncate": "^2.0.0", "@types/common-tags": "^1.8.1", - "@types/diff": "^5.0.3", "@types/dockerode": "3.3.23", "@types/ejs": "^3.1.0", "@types/express": "^4.17.13", @@ -138,16 +136,12 @@ "@types/update-notifier": "^4.1.1", "@types/which": "^2.0.1", "@types/window-size": "^1.1.1", - "@yao-pkg/pkg": "^5.11.1", - "archiver": "^7.0.1", "catch-uncommitted": "^2.0.0", "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "cross-env": "^7.0.3", "deep-object-diff": "^1.1.0", - "diff": "^5.0.0", "ent": "^2.2.0", - "filehound": "^1.17.5", "fs-extra": "^11.2.0", "http-proxy": "^1.18.1", "husky": "^9.1.5", @@ -11139,19 +11133,6 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/fstream": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", @@ -13929,18 +13910,6 @@ "node": ">= 6" } }, - "node_modules/macmount": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/macmount/-/macmount-1.0.0.tgz", - "integrity": "sha512-kaz5wkgk4lQSAZ+Ch+TJHJHQqjmqM9TOjoLMrOp1mdLlrQBPa2qC/5Hj6OEjklVpMZn6GC2EeBibmSVeyRpXuA==", - "optional": true, - "os": [ - "darwin" - ], - "bin": { - "macmount": "bin/macmount" - } - }, "node_modules/magic-string": { "version": "0.30.8", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.8.tgz", @@ -19721,30 +19690,6 @@ "node": ">=0.10.0" } }, - "node_modules/winusb-driver-generator": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/winusb-driver-generator/-/winusb-driver-generator-2.1.2.tgz", - "integrity": "sha512-x0bsG4OEtb4ppDqB1151qniwXxl3S5hPafxQsbfMZRcoYLB5mf6CdkwtYysEmI9+4XKTIv8XwQO13a1IC/wNxQ==", - "hasInstallScript": true, - "optional": true, - "os": [ - "win32" - ], - "dependencies": { - "bindings": "^1.5.0", - "node-addon-api": "^5.0.0", - "prebuild-install": "^7.1.1" - }, - "engines": { - "node": ">=16 < 19" - } - }, - "node_modules/winusb-driver-generator/node_modules/node-addon-api": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", - "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", - "optional": true - }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", diff --git a/package.json b/package.json index bf635610..0ded6b22 100644 --- a/package.json +++ b/package.json @@ -24,26 +24,6 @@ "bin": { "balena": "./bin/run.js" }, - "pkg": { - "scripts": [ - "build/**/*.js", - "node_modules/balena-sdk/es2018/index.js", - "node_modules/pinejs-client-request/node_modules/pinejs-client-core/es2018/index.js", - "node_modules/@balena/compose/dist/parse/schemas/*.json" - ], - "assets": [ - "build/auth/pages/*.ejs", - "node_modules/balena-sdk/node_modules/balena-pine/**/*", - "node_modules/balena-pine/**/*", - "node_modules/pinejs-client-core/**/*", - "node_modules/open/xdg-open", - "node_modules/windosu/*.bat", - "node_modules/windosu/*.cmd", - "node_modules/axios/**/*", - "npm-shrinkwrap.json", - "oclif.manifest.json" - ] - }, "scripts": { "postinstall": "node patches/apply-patches.js", "prebuild": "rimraf build/ build-bin/", @@ -113,14 +93,12 @@ "devDependencies": { "@balena/lint": "^9.1.3", "@electron/notarize": "^2.0.0", - "@types/archiver": "^6.0.2", "@types/bluebird": "^3.5.36", "@types/body-parser": "^1.19.2", "@types/chai": "^4.3.0", "@types/chai-as-promised": "^7.1.4", "@types/cli-truncate": "^2.0.0", "@types/common-tags": "^1.8.1", - "@types/diff": "^5.0.3", "@types/dockerode": "3.3.23", "@types/ejs": "^3.1.0", "@types/express": "^4.17.13", @@ -159,16 +137,12 @@ "@types/update-notifier": "^4.1.1", "@types/which": "^2.0.1", "@types/window-size": "^1.1.1", - "@yao-pkg/pkg": "^5.11.1", - "archiver": "^7.0.1", "catch-uncommitted": "^2.0.0", "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "cross-env": "^7.0.3", "deep-object-diff": "^1.1.0", - "diff": "^5.0.0", "ent": "^2.2.0", - "filehound": "^1.17.5", "fs-extra": "^11.2.0", "http-proxy": "^1.18.1", "husky": "^9.1.5", diff --git a/patches/all/open+7.4.2.patch b/patches/all/open+7.4.2.patch deleted file mode 100644 index 02ce03fc..00000000 --- a/patches/all/open+7.4.2.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/node_modules/open/index.js b/node_modules/open/index.js -index 13147d0..ff161dd 100644 ---- a/node_modules/open/index.js -+++ b/node_modules/open/index.js -@@ -10,7 +10,10 @@ const pAccess = promisify(fs.access); - const pReadFile = promisify(fs.readFile); - - // Path to included `xdg-open`. --const localXdgOpenPath = path.join(__dirname, 'xdg-open'); -+const localXdgOpenPath = process.pkg -+ ? path.join(path.dirname(process.execPath), 'xdg-open') -+ : path.join(__dirname, 'xdg-open'); -+ - - /** - Get the mount point for fixed drives in WSL. diff --git a/patches/unix/node-gyp-build+4.6.0.patch b/patches/unix/node-gyp-build+4.6.0.patch deleted file mode 100644 index 4bdcd974..00000000 --- a/patches/unix/node-gyp-build+4.6.0.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/node_modules/node-gyp-build/node-gyp-build.js b/node_modules/node-gyp-build/node-gyp-build.js -index 61b398e..3cc3be8 100644 ---- a/node_modules/node-gyp-build/node-gyp-build.js -+++ b/node_modules/node-gyp-build/node-gyp-build.js -@@ -30,6 +30,9 @@ load.resolve = load.path = function (dir) { - if (process.env[name + '_PREBUILD']) dir = process.env[name + '_PREBUILD'] - } catch (err) {} - -+ // pkg fix: native node modules are located externally to the pkg executable -+ dir = dir.replace(/^\/snapshot\/.+?\/node_modules\//, path.dirname(process.execPath) + path.sep) -+ - if (!prebuildsOnly) { - var release = getFirst(path.join(dir, 'build/Release'), matchBuild) - if (release) return release diff --git a/patches/win32/windosu+0.3.0.patch b/patches/win32/windosu+0.3.0.patch deleted file mode 100644 index d55d5ab7..00000000 --- a/patches/win32/windosu+0.3.0.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/node_modules/windosu/lib/pipe.js b/node_modules/windosu/lib/pipe.js -index dc81fa5..a381cc7 100644 ---- a/node_modules/windosu/lib/pipe.js -+++ b/node_modules/windosu/lib/pipe.js -@@ -42,7 +42,8 @@ function pipe(path, options) { - return d.promise; - } - module.exports = pipe; --if (module === require.main) { -+ -+function main() { - if (!process.argv[4]) { - console.error('Incorrect arguments!'); - process.exit(-1); -@@ -52,3 +53,8 @@ if (module === require.main) { - serve: process.argv[3] == 'server' - }); - } -+module.exports.main = main; -+ -+if (module === require.main) { -+ main(); -+} -diff --git a/node_modules/windosu/lib/windosu.js b/node_modules/windosu/lib/windosu.js -index 6502812..dd0391a 100644 ---- a/node_modules/windosu/lib/windosu.js -+++ b/node_modules/windosu/lib/windosu.js -@@ -16,7 +16,9 @@ module.exports.exec = function (command, options, callback) { - temp: temp, - command: command, - cliWidth: cliWidth(), -- pipe: '"' + process.execPath + '" "' + path.join(__dirname, 'pipe.js') + '"', -+ pipe: process.pkg -+ ? '"' + process.execPath + '" pkgExec "' + path.join(__dirname, 'pipe.js') + '::main"' -+ : '"' + process.execPath + '" "' + path.join(__dirname, 'pipe.js') + '"', - input: inputName = id + '-in', - output: outputName = id + '-out', - stderr_redir: process.stdout.isTTY ? '2>&1' : '2> %ERROR%' diff --git a/src/app.ts b/src/app.ts index 13b3e5b5..f2ec2282 100644 --- a/src/app.ts +++ b/src/app.ts @@ -159,18 +159,12 @@ async function oclifRun(command: string[], options: AppOptions) { /** CLI entrypoint. Called by the `bin/run.js` and `bin/dev.js` scripts. */ export async function run(cliArgs = process.argv, options: AppOptions) { try { - const { setOfflineModeEnvVars, normalizeEnvVars, pkgExec } = await import( + const { setOfflineModeEnvVars, normalizeEnvVars } = await import( './utils/bootstrap' ); setOfflineModeEnvVars(); normalizeEnvVars(); - // The 'pkgExec' special/internal command provides a Node.js interpreter - // for use of the standalone zip package. See pkgExec function. - if (cliArgs.length > 3 && cliArgs[2] === 'pkgExec') { - return pkgExec(cliArgs[3], cliArgs.slice(4)); - } - await init(); // Look for commands that have been removed and if so, exit with a notice diff --git a/src/utils/bootstrap.ts b/src/utils/bootstrap.ts index 679e66f3..f4a32136 100644 --- a/src/utils/bootstrap.ts +++ b/src/utils/bootstrap.ts @@ -83,43 +83,6 @@ export function setOfflineModeEnvVars() { } } -/** - * Implements the 'pkgExec' command, used as a way to provide a Node.js - * interpreter for child_process.spawn()-like operations when the CLI is - * executing as a standalone zip package (built-in Node interpreter) and - * the system may not have a separate Node.js installation. A present use - * case is a patched version of the 'windosu' package that requires a - * Node.js interpreter to spawn a privileged child process. - * - * @param modFunc Path to a JS module that will be executed via require(). - * The modFunc argument may optionally contain a function name separated - * by '::', for example '::main' in: - * 'C:\\snapshot\\balena-cli\\node_modules\\windosu\\lib\\pipe.js::main' - * in which case that function is executed in the require'd module. - * @param args Optional arguments to passed through process.argv and as - * arguments to the function specified via modFunc. - */ -export async function pkgExec(modFunc: string, args: string[]) { - const [modPath, funcName] = modFunc.split('::'); - let replacedModPath = modPath; - const match = modPath - .replace(/\\/g, '/') - .match(/\/snapshot\/balena-cli\/(.+)/); - if (match) { - replacedModPath = `../${match[1]}`; - } - process.argv = [process.argv[0], process.argv[1], ...args]; - try { - const mod: any = await import(replacedModPath); - if (funcName) { - await mod[funcName](...args); - } - } catch (err) { - console.error(`Error executing pkgExec "${modFunc}" [${args.join()}]`); - console.error(err); - } -} - export interface CachedUsername { token: string; username: string; diff --git a/tests/helpers.ts b/tests/helpers.ts index bbce4681..39a69f8f 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -17,13 +17,21 @@ import * as _ from 'lodash'; import * as path from 'path'; +import * as fs from 'fs'; +import { createGunzip } from 'zlib'; import * as packageJSON from '../package.json'; import { getNodeEngineVersionWarn } from '../build/utils/messages'; import { warnify } from '../build/utils/messages'; -const balenaExe = process.platform === 'win32' ? 'balena.exe' : 'balena'; -const standalonePath = path.resolve(__dirname, '..', 'build-bin', balenaExe); +const standalonePath = path.resolve( + __dirname, + '..', + 'dist', + 'balena', + 'bin', + 'balena', +); export interface TestOutput { err: string[]; // stderr @@ -164,11 +172,21 @@ async function runCommandInSubprocess( // override default proxy exclusion to allow proxying of requests to 127.0.0.1 BALENARC_DO_PROXY: '127.0.0.1,localhost', }; - const { execFile } = await import('child_process'); + const { exec } = await import('child_process'); + + // check if standalonePath exists and print its content + if (!fs.existsSync(standalonePath)) { + console.error('standalonePath does not exist'); + } else { + console.error('file exists!'); + } + await new Promise((resolve) => { - const child = execFile( - standalonePath, - cmd.split(' ').filter((c) => c), + const child = exec( + `${standalonePath} ${cmd + .split(' ') + .filter((c) => c) + .join(' ')}`, { env: { ...process.env, ...addedEnvs } }, ($error, $stdout, $stderr) => { stderr = $stderr || ''; @@ -213,6 +231,67 @@ ${$error}`; }; } +async function extractTarStream() { + if ( + fs.existsSync(path.join(__dirname, '..', 'dist', 'balena', 'bin', 'balena')) + ) { + return; + } + + const tar = await import('tar-stream'); + + const version = 'v' + packageJSON.version; + const arch = process.arch; + const platform = + process.platform === 'win32' + ? 'windows' + : process.platform === 'darwin' + ? 'macOS' + : process.platform; + + const sourceFile = path.join( + __dirname, + '..', + 'dist', + `balena-cli-${version}-${platform}-${arch}-standalone.tar.gz`, + ); + const destinationDir = path.join(__dirname, '..', 'dist'); + + const extract = tar.extract(); + + return new Promise((resolve, reject) => { + extract.on('entry', (header, stream, next) => { + const outputPath = path.join(destinationDir, header.name); + + if (header.type === 'directory') { + fs.mkdirSync(outputPath, { recursive: true }); + next(); + } else { + fs.mkdirSync(path.dirname(outputPath), { recursive: true }); + const fileStream = fs.createWriteStream(outputPath); + + stream.pipe(fileStream); + + fileStream.on('close', () => { + if (header.mode) { + fs.chmodSync(outputPath, header.mode); // Set file permissions + } + next(); + }); + fileStream.on('error', reject); + } + }); + + extract.on('finish', resolve); + extract.on('error', reject); + + fs.createReadStream(sourceFile) + .pipe(createGunzip()) + .pipe(extract) + .on('error', reject); + }); +} + /** * Run a CLI command and capture its stdout, stderr and exit code for testing. * If the BALENA_CLI_TEST_TYPE env var is set to 'standalone', then the command @@ -223,6 +302,7 @@ ${$error}`; */ export async function runCommand(cmd: string): Promise { if (process.env.BALENA_CLI_TEST_TYPE === 'standalone') { + await extractTarStream(); const semver = await import('semver'); if (semver.lt(process.version, '10.16.0')) { throw new Error( diff --git a/tests/test-data/pkg/expected-warnings-darwin-arm64.txt b/tests/test-data/pkg/expected-warnings-darwin-arm64.txt deleted file mode 100644 index 45651ed9..00000000 --- a/tests/test-data/pkg/expected-warnings-darwin-arm64.txt +++ /dev/null @@ -1,382 +0,0 @@ -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/help.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-args.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-flags.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/compose_ts.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/docker.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/env-common.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/helpers.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/lazy.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/revoke.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/app/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/block/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/inject.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/read.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/reconfigure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/write.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/deploy/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/deactivate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/detect.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/identify.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/init.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/local-mode.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/logs.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/move.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/note.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/os-update.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/public-url.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/reboot.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/register.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/shutdown.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/ssh.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/start-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/stop-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/track-fleet.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/tunnel.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device-type/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/track-latest.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/internal/osinit.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/join/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/leave/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/flash.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/login/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/logout/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/organization/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/build-config.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/download.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/initialize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/versions.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/preload/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/push/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/finalize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/invalidate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/validate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/settings/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/add.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/support/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/util/available-drives.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/version/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/whoami/index.js -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot resolve 'path' - node_modules/@balena/compose/dist/parse/schemas/index.js - Dynamic require may fail at run time, because the requested file - is unknown at compilation time and not included into executable. - Use a string literal as an argument for 'require', or leave it - as is and specify the resolved file name in 'scripts' option. -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/axios.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/utils.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/adapters/adapters.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/adapters/http.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/adapters/xhr.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/cancel/CancelToken.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/cancel/CanceledError.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/cancel/isCancel.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/Axios.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/AxiosError.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/AxiosHeaders.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/InterceptorManager.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/buildFullPath.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/dispatchRequest.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/mergeConfig.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/settle.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/transformData.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/defaults/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/defaults/transitional.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/env/data.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/AxiosTransformStream.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/AxiosURLSearchParams.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/HttpStatusCode.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/bind.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/buildURL.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/callbackify.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/combineURLs.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/cookies.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/formDataToJSON.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/formDataToStream.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/fromDataURI.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/isAbsoluteURL.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/isAxiosError.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/isURLSameOrigin.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/parseHeaders.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/parseProtocol.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/readBlob.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/speedometer.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/spread.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/throttle.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/toFormData.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/toURLEncodedForm.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/validator.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/common/utils.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/node/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/node/classes/FormData.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/node/classes/URLSearchParams.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/form-data-encoder/lib/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/formdata-node/lib/form-data.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/string-width/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js \ No newline at end of file diff --git a/tests/test-data/pkg/expected-warnings-darwin-x64.txt b/tests/test-data/pkg/expected-warnings-darwin-x64.txt deleted file mode 100644 index 0af99311..00000000 --- a/tests/test-data/pkg/expected-warnings-darwin-x64.txt +++ /dev/null @@ -1,382 +0,0 @@ -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/help.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-args.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-flags.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/compose_ts.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/docker.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/env-common.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/helpers.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/lazy.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/revoke.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/app/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/block/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/inject.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/read.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/reconfigure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/write.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/deploy/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/deactivate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/detect.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/identify.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/init.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/local-mode.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/logs.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/move.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/note.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/os-update.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/public-url.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/reboot.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/register.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/shutdown.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/ssh.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/start-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/stop-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/track-fleet.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/tunnel.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device-type/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/track-latest.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/internal/osinit.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/join/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/leave/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/flash.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/login/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/logout/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/organization/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/build-config.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/download.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/initialize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/versions.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/preload/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/push/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/finalize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/invalidate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/validate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/settings/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/add.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/support/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/util/available-drives.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/version/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/whoami/index.js -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot resolve 'path' - node_modules/@balena/compose/dist/parse/schemas/index.js - Dynamic require may fail at run time, because the requested file - is unknown at compilation time and not included into executable. - Use a string literal as an argument for 'require', or leave it - as is and specify the resolved file name in 'scripts' option. -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/axios.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/utils.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/adapters/adapters.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/adapters/http.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/adapters/xhr.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/cancel/CancelToken.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/cancel/CanceledError.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/cancel/isCancel.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/Axios.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/AxiosError.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/AxiosHeaders.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/InterceptorManager.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/buildFullPath.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/dispatchRequest.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/mergeConfig.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/settle.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/transformData.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/defaults/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/defaults/transitional.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/env/data.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/AxiosTransformStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/AxiosURLSearchParams.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/HttpStatusCode.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/bind.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/buildURL.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/callbackify.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/combineURLs.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/cookies.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/formDataToJSON.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/formDataToStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/fromDataURI.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/isAbsoluteURL.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/isAxiosError.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/isURLSameOrigin.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/parseHeaders.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/parseProtocol.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/readBlob.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/speedometer.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/spread.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/throttle.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/toFormData.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/toURLEncodedForm.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/validator.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/common/utils.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/node/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/node/classes/FormData.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/node/classes/URLSearchParams.js -> Warning Failed to make bytecode node20-x64 for file node_modules/form-data-encoder/lib/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/formdata-node/lib/form-data.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/string-width/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js \ No newline at end of file diff --git a/tests/test-data/pkg/expected-warnings-linux-arm64.txt b/tests/test-data/pkg/expected-warnings-linux-arm64.txt deleted file mode 100644 index 45651ed9..00000000 --- a/tests/test-data/pkg/expected-warnings-linux-arm64.txt +++ /dev/null @@ -1,382 +0,0 @@ -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/help.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-args.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-flags.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/compose_ts.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/docker.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/env-common.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/helpers.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/lazy.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/revoke.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/app/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/block/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/inject.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/read.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/reconfigure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/write.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/deploy/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/deactivate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/detect.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/identify.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/init.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/local-mode.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/logs.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/move.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/note.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/os-update.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/public-url.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/reboot.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/register.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/shutdown.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/ssh.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/start-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/stop-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/track-fleet.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/tunnel.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device-type/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/track-latest.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/internal/osinit.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/join/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/leave/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/flash.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/login/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/logout/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/organization/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/build-config.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/download.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/initialize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/versions.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/preload/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/push/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/finalize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/invalidate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/validate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/settings/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/add.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/support/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/util/available-drives.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/version/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/whoami/index.js -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot resolve 'path' - node_modules/@balena/compose/dist/parse/schemas/index.js - Dynamic require may fail at run time, because the requested file - is unknown at compilation time and not included into executable. - Use a string literal as an argument for 'require', or leave it - as is and specify the resolved file name in 'scripts' option. -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/axios.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/utils.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/adapters/adapters.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/adapters/http.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/adapters/xhr.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/cancel/CancelToken.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/cancel/CanceledError.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/cancel/isCancel.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/Axios.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/AxiosError.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/AxiosHeaders.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/InterceptorManager.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/buildFullPath.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/dispatchRequest.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/mergeConfig.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/settle.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/core/transformData.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/defaults/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/defaults/transitional.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/env/data.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/AxiosTransformStream.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/AxiosURLSearchParams.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/HttpStatusCode.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/bind.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/buildURL.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/callbackify.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/combineURLs.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/cookies.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/formDataToJSON.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/formDataToStream.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/fromDataURI.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/isAbsoluteURL.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/isAxiosError.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/isURLSameOrigin.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/parseHeaders.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/parseProtocol.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/readBlob.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/speedometer.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/spread.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/throttle.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/toFormData.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/toURLEncodedForm.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/helpers/validator.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/common/utils.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/node/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/node/classes/FormData.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/axios/lib/platform/node/classes/URLSearchParams.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/form-data-encoder/lib/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/formdata-node/lib/form-data.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/string-width/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js -> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js \ No newline at end of file diff --git a/tests/test-data/pkg/expected-warnings-linux-x64.txt b/tests/test-data/pkg/expected-warnings-linux-x64.txt deleted file mode 100644 index 0af99311..00000000 --- a/tests/test-data/pkg/expected-warnings-linux-x64.txt +++ /dev/null @@ -1,382 +0,0 @@ -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/app.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/help.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-args.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/common-flags.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/compose_ts.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/docker.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/env-common.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/helpers.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/utils/lazy.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/api-key/revoke.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/app/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/block/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/inject.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/read.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/reconfigure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/config/write.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/deploy/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/deactivate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/detect.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/identify.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/init.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/local-mode.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/logs.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/move.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/note.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/os-update.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/public-url.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/reboot.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/register.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/shutdown.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/ssh.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/start-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/stop-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/track-fleet.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device/tunnel.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/device-type/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/env/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/create.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/fleet/track-latest.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/internal/osinit.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/join/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/leave/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/local/flash.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/login/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/logout/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/organization/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/build-config.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/download.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/initialize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/os/versions.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/preload/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/push/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/finalize.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/invalidate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/release/validate.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/settings/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/add.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/ssh-key/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/support/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/list.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/tag/set.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/util/available-drives.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/version/index.js -> Warning Entry 'main' not found in %1 - %1: node_modules/@oclif/core/package.json - %2: build/commands/whoami/index.js -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/open/xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/build/Release/drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules/drivelist/scripts/win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot resolve 'path' - node_modules/@balena/compose/dist/parse/schemas/index.js - Dynamic require may fail at run time, because the requested file - is unknown at compilation time and not included into executable. - Use a string literal as an argument for 'require', or leave it - as is and specify the resolved file name in 'scripts' option. -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/axios.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/utils.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/adapters/adapters.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/adapters/http.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/adapters/xhr.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/cancel/CancelToken.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/cancel/CanceledError.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/cancel/isCancel.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/Axios.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/AxiosError.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/AxiosHeaders.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/InterceptorManager.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/buildFullPath.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/dispatchRequest.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/mergeConfig.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/settle.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/core/transformData.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/defaults/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/defaults/transitional.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/env/data.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/AxiosTransformStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/AxiosURLSearchParams.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/HttpStatusCode.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/bind.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/buildURL.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/callbackify.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/combineURLs.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/cookies.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/formDataToJSON.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/formDataToStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/fromDataURI.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/isAbsoluteURL.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/isAxiosError.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/isURLSameOrigin.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/parseHeaders.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/parseProtocol.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/readBlob.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/speedometer.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/spread.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/throttle.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/toFormData.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/toURLEncodedForm.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/helpers/validator.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/common/utils.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/node/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/node/classes/FormData.js -> Warning Failed to make bytecode node20-x64 for file node_modules/axios/lib/platform/node/classes/URLSearchParams.js -> Warning Failed to make bytecode node20-x64 for file node_modules/form-data-encoder/lib/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/formdata-node/lib/form-data.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/string-width/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js -> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js \ No newline at end of file diff --git a/tests/test-data/pkg/expected-warnings-win32-x64.txt b/tests/test-data/pkg/expected-warnings-win32-x64.txt deleted file mode 100644 index 787007e1..00000000 --- a/tests/test-data/pkg/expected-warnings-win32-x64.txt +++ /dev/null @@ -1,382 +0,0 @@ -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\app.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\app.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\help.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\common-args.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\common-flags.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\compose_ts.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\docker.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\env-common.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\helpers.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\utils\lazy.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\api-key\generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\api-key\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\api-key\revoke.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\app\create.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\block\create.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\config\generate.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\config\inject.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\config\read.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\config\reconfigure.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\config\write.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\deploy\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\deactivate.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\detect.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\identify.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\init.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\local-mode.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\logs.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\move.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\note.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\os-update.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\public-url.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\reboot.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\register.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\shutdown.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\ssh.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\start-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\stop-service.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\track-fleet.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device\tunnel.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\device-type\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\env\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\env\rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\env\rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\env\set.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\create.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\pin.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\purge.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\rename.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\restart.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\fleet\track-latest.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\internal\osinit.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\join\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\leave\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\local\configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\local\flash.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\login\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\logout\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\organization\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\os\build-config.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\os\configure.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\os\download.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\os\initialize.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\os\versions.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\preload\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\push\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\release\finalize.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\release\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\release\invalidate.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\release\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\release\validate.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\settings\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\ssh-key\add.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\ssh-key\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\ssh-key\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\ssh-key\rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\support\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\tag\list.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\tag\rm.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\tag\set.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\util\available-drives.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\version\index.js -> Warning Entry 'main' not found in %1 - %1: node_modules\@oclif\core\package.json - %2: build\commands\whoami\index.js -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\open\xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\open\xdg-open - %2: path-to-executable/xdg-open -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\build\Release\drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\scripts\darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\scripts\linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\scripts\win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\build\Release\drivelist.node - %2: path-to-executable/drivelist.node -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\scripts\darwin.sh - %2: path-to-executable/drivelist/darwin.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\scripts\linux.sh - %2: path-to-executable/drivelist/linux.sh -> Warning Cannot include file %1 into executable. - The file must be distributed with executable as %2. - %1: node_modules\drivelist\scripts\win32.bat - %2: path-to-executable/drivelist/win32.bat -> Warning Cannot resolve 'path' - node_modules\@balena\compose\dist\parse\schemas\index.js - Dynamic require may fail at run time, because the requested file - is unknown at compilation time and not included into executable. - Use a string literal as an argument for 'require', or leave it - as is and specify the resolved file name in 'scripts' option. -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\axios.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\utils.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\adapters\adapters.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\adapters\http.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\adapters\xhr.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\cancel\CanceledError.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\cancel\CancelToken.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\cancel\isCancel.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\Axios.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\AxiosError.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\AxiosHeaders.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\buildFullPath.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\dispatchRequest.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\InterceptorManager.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\mergeConfig.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\settle.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\core\transformData.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\defaults\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\defaults\transitional.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\env\data.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\AxiosTransformStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\AxiosURLSearchParams.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\bind.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\buildURL.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\callbackify.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\combineURLs.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\cookies.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\formDataToJSON.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\formDataToStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\fromDataURI.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\HttpStatusCode.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\isAbsoluteURL.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\isAxiosError.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\isURLSameOrigin.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\parseHeaders.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\parseProtocol.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\readBlob.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\speedometer.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\spread.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\throttle.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\toFormData.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\toURLEncodedForm.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\validator.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\helpers\ZlibHeaderTransformStream.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\platform\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\platform\common\utils.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\platform\node\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\platform\node\classes\FormData.js -> Warning Failed to make bytecode node20-x64 for file node_modules\axios\lib\platform\node\classes\URLSearchParams.js -> Warning Failed to make bytecode node20-x64 for file node_modules\form-data-encoder\lib\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\formdata-node\lib\form-data.js -> Warning Failed to make bytecode node20-x64 for file node_modules\@isaacs\cliui\node_modules\string-width\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\@isaacs\cliui\node_modules\strip-ansi\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\@isaacs\cliui\node_modules\wrap-ansi\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\@isaacs\cliui\node_modules\ansi-regex\index.js -> Warning Failed to make bytecode node20-x64 for file node_modules\@isaacs\cliui\node_modules\ansi-styles\index.js