avocadowastaken/rapidbundle

View on GitHub
examples/bin-module/__snapshots__/integration.test.ts.snap

Summary

Maintainability
Test Coverage
// Vitest Snapshot v1

exports[`bin-module > dist 1`] = `
[
  "cli.js",
]
`;

exports[`bin-module > dist/cli.js 1`] = `
#!/usr/bin/env node
var l=Object.defineProperty;var r=(o,n)=>l(o,"name",{value:n,configurable:!0});function e(o){return\`Hello, \${o}\`}r(e,"hello");console.log(e(process.argv[3]));

`;

exports[`bin-module > logs 1`] = `
✔ Resolving build manifests
  ─ ℹ Checking 'action.yml'
  ─ ℹ Checking 'package.json'
  ✔ Run preparations
  ─ ℹ Removing 'dist' directory
  ✔ Making bundle from 'package.json'
  › ✔ Parsing 'package.json'
  › ✔ Making '.bin' entry bundle
    ─ ℹ Using '.bin.' entry: src/cli.ts
    ─ ℹ Using '.type' entry: module
------
Exit Code: 0
`;