Skip to content

Commit f4a397f

Browse files
authored
Bump version (#58)
1 parent ebc87a8 commit f4a397f

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v6.0.1
4+
Мелкий фикс.
5+
36
## v6.0.0
47
- Из зависимостей удалены пакеты `node-fetch` и `iconv-lite`. Ёфикатор теперь обрабатывает только файлы с кодировкой `UTF-8`.
58
- Пакет переведён на ESM.

bin/eyo.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
22

33
import chalk from'chalk';
4-
import fs from 'node:fs';
54
import { program } from 'commander';
65
import {
76
expandGlobArgs,
@@ -11,7 +10,9 @@ import {
1110
processText,
1211
} from '../lib/utils.mjs';
1312

14-
const version = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
13+
import { createRequire } from 'node:module';
14+
const require = createRequire(import.meta.url);
15+
const { version } = require('../package.json');
1516

1617
program.configureHelp({
1718
styleTitle: (str) => chalk.bold(str),

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eyo",
33
"description": "CLI for restoring the letter «ё» (yo) in russian texts",
4-
"version": "6.0.0",
4+
"version": "6.0.1",
55
"author": {
66
"name": "Denis Seleznev",
77
"email": "hcodes@yandex.ru",

0 commit comments

Comments
 (0)