@mxmalykhin/template-package
Version:
Template for public npm packages (TS, CJS/ESM, Vitest, Biome, Rollup + ESBuild, Husky)
32 lines (29 loc) • 983 B
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.js
* @date 2024-06-04
* @copyright (c) 2024 Maxim Malykhin
* @license MIT
* @see [Github](https://github.com/mxmalykhin/template-package#readme)
*/
import './_virtual/_rollup-plugin-inject-process-env.js';
import { testing } from './folder-test/module2.js';
import { fooSideEffect, fooUnusedFunc } from './module1.js';
import { testing2 } from './folder-test/module3.js';
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,
fooUnusedFunc,
testing,
testing2,
testchild: { foo4 },
};
export { index as default, foo };