mz-canvas
Version:
The TypeScript-based library for manipulating <canvas> element and 2D graphics in the browser.
28 lines (25 loc) • 839 B
JavaScript
import fs from 'fs';
import path from 'path';
const packageJson = fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8');
let version = '1.0.0';
try {
const parsed = JSON.parse(packageJson);
version = parsed.version;
} catch (ex) {}
export const settings = {
entryPoints: ['./src/index.ts'],
bundle: true,
sourcemap: 'linked', // external
minify: true,
target: ['es6'],
outfile: './dist/mz-canvas.min.js',
banner: {
js: `/*
mzCanvas v${ version }
TypeScript-based library for manipulating canvas element and 2D graphics in the browser.
https://github.com/mzusin/mz-canvas
Licensed GPLv3 for open source use, or Commercial License for commercial use - https://github.com/mzusin/index/blob/main/LICENSE.md
Copyright (c) 2023-present, Miriam Zusin
*/`,
},
};