mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* test: make sure nvmrc and node-version are tested * fix: remove custom parsers for nvmrc and node-version in favor of mise idiomatic parsing * test: update snapshots * test: removing snapshot that it doesn't look like we need anymore? * test: update snapshot * test: increase docker pull timeout
14 lines
324 B
JavaScript
14 lines
324 B
JavaScript
const cowsay = require("cowsay");
|
|
|
|
function getYarnVersion() {
|
|
const ua = process.env.npm_config_user_agent || "";
|
|
return /\byarn\/([^\s]+)/.exec(ua)?.[1] ?? null; // e.g. "1.22.22", "3.6.1"
|
|
}
|
|
|
|
console.log("Node " + process.version);
|
|
console.log(
|
|
cowsay.say({
|
|
text: `Hello from Yarn ${getYarnVersion()}`,
|
|
})
|
|
);
|