Skip to content

Commit 86b29a7

Browse files
committed
Fix build
1 parent b0c9c52 commit 86b29a7

5 files changed

Lines changed: 210 additions & 13 deletions

File tree

CHANGELOG.md

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

3+
## v4.0.1
4+
Правки по сборке.
5+
36
## v4.0.0
47
Упрощено API по загрузке словарей. Словарь можно сразу экспортировать в код.
58

package-lock.json

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

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eyo-kernel",
33
"description": "Restoring the letter «ё» (yo) in russian texts",
4-
"version": "4.0.0",
4+
"version": "4.0.1",
55
"author": {
66
"name": "Denis Seleznev",
77
"email": "hcodes@yandex.ru",
@@ -12,10 +12,6 @@
1212
".": {
1313
"types": "./dist/index.d.ts",
1414
"default": "./dist/index.js"
15-
},
16-
"./load": {
17-
"types": "./dist/loadDictionary.d.ts",
18-
"default": "./dist/loadDictionary.js"
1915
}
2016
},
2117
"typings": "./dist/index.d.ts",
@@ -46,6 +42,7 @@
4642
"@types/jest": "^30.0.0",
4743
"@typescript-eslint/eslint-plugin": "^8.46.2",
4844
"@typescript-eslint/parser": "^8.46.2",
45+
"del-cli": "^7.0.0",
4946
"eslint": "^9.38.0",
5047
"jest": "^30.2.0",
5148
"jest-environment-jsdom": "^30.2.0",
@@ -59,7 +56,8 @@
5956
"jest": "NODE_OPTIONS=--experimental-vm-modules jest ./test",
6057
"eslint": "eslint .",
6158
"create:dicts": "node ./tools/createDictionaries.mjs",
62-
"build": "npm run create:dicts && tsc",
59+
"clean": "del-cli ./dist/*",
60+
"build": "npm run clean && npm run create:dicts && tsc",
6361
"unit-test": "jest ./test",
6462
"prepare": "npm run build"
6563
}

src/eyo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dictionary } from './dictionary';
1+
import { Dictionary } from './dictionary.js';
22

33
const PUNCTUATION = '[{}()[\\]|<>=\\_"\'«»„“#$^%&*+-:;.,?!]';
44
const REG_EXP = new RegExp('([А-ЯЁа-яё])[а-яё]+(?![а-яё]|\\.[ \u00A0\t]+([а-яё]|[А-ЯЁ]{2}|' +

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { Eyo } from './eyo';
2-
export { Dictionary } from './dictionary';
3-
export { safeDictionary } from './safeDictionary';
4-
export { notSafeDictionary } from './notSafeDictionary';
1+
export { Eyo } from './eyo.js';
2+
export { Dictionary } from './dictionary.js';
3+
export { safeDictionary } from './safeDictionary.js';
4+
export { notSafeDictionary } from './notSafeDictionary.js';

0 commit comments

Comments
 (0)