@mxmalykhin/template-package
Version:
Template for public npm packages (TS, CJS/ESM, Vitest, Biome, Rollup + ESBuild, Husky)
37 lines (32 loc) • 1.14 kB
JavaScript
/**
* @module @mxmalykhin/template-package
* @version 0.0.12-development
* @commit main-1360234
* @description Template for public npm packages (TS, CJS/ESM, Vitest, Biome, Rollup + ESBuild, Husky)
* @file index.cjs
* @date 2024-06-04
* @copyright (c) 2024 Maxim Malykhin
* @license MIT
* @see [Github](https://github.com/mxmalykhin/template-package#readme)
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
require('./_virtual/_rollup-plugin-inject-process-env.cjs');
var module2 = require('./folder-test/module2.cjs');
var module1 = require('./module1.cjs');
var module3 = require('./folder-test/module3.cjs');
const foo = (text = '') => `[index] -> [foo] ${text}`;
const foo2 = (text = '') => `[index] -> [foo2] ${text}`;
const foo3 = (text = '') => `[index] -> [foo3] ${text}`;
const foo4 = (text = '') => `[index] -> [foo4] ${text}`;
var index = {
foo2,
foo3,
fooSideEffect: module1.fooSideEffect,
fooUnusedFunc: module1.fooUnusedFunc,
testing: module2.testing,
testing2: module3.testing2,
testchild: { foo4 },
};
exports.default = index;
exports.foo = foo;