examples/types-cjs/__snapshots__/integration.test.ts.snap
// Vitest Snapshot v1
exports[`types-cjs > dist 1`] = `
[
"index.d.ts",
"index.js",
]
`;
exports[`types-cjs > dist/index.d.ts 1`] = `
export declare const hello: (name: string) => string;
export { }
`;
exports[`types-cjs > dist/index.js 1`] = `
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
// src/hello.js
var require_hello = __commonJS({
"src/hello.js"(exports2, module2) {
module2.exports = /* @__PURE__ */ __name(function hello(name) {
return \`Hello, \${name}\`;
}, "hello");
}
});
// src/index.js
module.exports.hello = require_hello();
`;
exports[`types-cjs > 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 '.main' entry bundle
─ ℹ Setting entry point: src/index.js
─ ℹ Setting output file: dist/index.js
› ✔ Making '.types' entry bundle
─ ℹ Generating 'd.ts' files
─ ℹ Bundle into single 'd.ts' file
------
Exit Code: 0
`;