From 5ef18ba2d3f39691f5392b73ffce56790fc81ea3 Mon Sep 17 00:00:00 2001 From: Yusuf Khasbulatov Date: Mon, 27 May 2024 00:38:26 +0200 Subject: [PATCH] using plain js insted of json imports --- jsr.json | 2 +- translit.ts | 3 +-- translit.json => translitMap.ts | 2 +- tsconfig.json | 3 --- 4 files changed, 3 insertions(+), 7 deletions(-) rename translit.json => translitMap.ts (99%) diff --git a/jsr.json b/jsr.json index 5512fba..d9d18b8 100644 --- a/jsr.json +++ b/jsr.json @@ -1,5 +1,5 @@ { "name": "@ce/transliteration", - "version": "0.1.9", + "version": "0.2.0", "exports": "./translit.ts" } \ No newline at end of file diff --git a/translit.ts b/translit.ts index af89479..0818b02 100644 --- a/translit.ts +++ b/translit.ts @@ -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 diff --git a/translit.json b/translitMap.ts similarity index 99% rename from translit.json rename to translitMap.ts index 248d479..c19af63 100644 --- a/translit.json +++ b/translitMap.ts @@ -1,4 +1,4 @@ -{ +export default { "а": "a", "А": "A", "аь": "ä", "Аь": "Ä", "аЬ": "ä", "АЬ": "Ä", "б": "b", "Б": "B", diff --git a/tsconfig.json b/tsconfig.json index 4033ca1..6b33bce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,5 @@ { "compilerOptions": { - "module": "ESNext", - "moduleResolution": "Node", - "target": "ESNext", "resolveJsonModule": true, "esModuleInterop": true, }