Skip to content

Commit

Permalink
using plain js insted of json imports
Browse files Browse the repository at this point in the history
  • Loading branch information
khashashin committed May 26, 2024
1 parent 63f34d6 commit 5ef18ba
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ce/transliteration",
"version": "0.1.9",
"version": "0.2.0",
"exports": "./translit.ts"
}
3 changes: 1 addition & 2 deletions translit.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-ignore
import translit from './translit.json' with { type: 'json' };
import translit from './translitMap';

/**
* This module provides a transliteration mapping and a function to apply transliteration
Expand Down
2 changes: 1 addition & 1 deletion translit.json → translitMap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
export default {
"а": "a", "А": "A",
"аь": "ä", "Аь": "Ä", "аЬ": "ä", "АЬ": "Ä",
"б": "b", "Б": "B",
Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node",
"target": "ESNext",
"resolveJsonModule": true,
"esModuleInterop": true,
}
Expand Down

0 comments on commit 5ef18ba

Please sign in to comment.