japanese-string-utils
Version:
The utils convert Japanese strings to other forms, such as Hiragana, Katakana, Full-width, Half-width, numeric and others.
33 lines (30 loc) • 608 B
JavaScript
import pkg from './package.json' assert { type: "json" };
import typescript from 'typescript';
import rollupTypescript from '@rollup/plugin-typescript';
const license = `/*!
* ${ pkg.name }
* https://github.com/${ pkg.repository }
* (c) 2018 @yomotsu
* Released under the MIT License.
*/`;
export default {
input: 'src/index.ts',
output: [
{
format: 'umd',
file: pkg.main,
name: 'japaneseStringUtils',
banner: license,
indent: '\t',
},
{
format: 'es',
file: pkg.module,
banner: license,
indent: '\t',
}
],
plugins: [
rollupTypescript( { typescript } ),
],
};