Skip to content

Commit dae25b4

Browse files
committed
chore: engine dep from npm (interscript@^3.0.0) — no sibling checkout needed
1 parent 4748ffd commit dae25b4

23 files changed

Lines changed: 79 additions & 43 deletions

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"@iso24229/iso639-data": "^0.2.0",
3434
"@tailwindcss/vite": "^4.0.0",
3535
"astro": "^7.0.0",
36-
"interscript-ts": "file:../interscript-ts",
3736
"tailwindcss": "^4.0.0",
38-
"vue": "^3.5.0"
37+
"vue": "^3.5.0",
38+
"interscript": "^3.0.0"
3939
},
4040
"devDependencies": {
4141
"@astrojs/check": "^0.9.10",

scripts/generate-catalogue.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { readFileSync, readdirSync, writeFileSync } from "node:fs"
88
import { join, resolve, dirname } from "node:path"
99
import { fileURLToPath } from "node:url"
10-
import { parseIsc } from "interscript-ts"
10+
import { parseIsc } from "interscript"
1111

1212
const __dirname = dirname(fileURLToPath(import.meta.url))
1313
const ROOT = resolve(__dirname, "..")

src/components/HeroMorph.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let transliterateFn: ((code: string, input: string) => string) | null = null
6060
async function ensureEngine() {
6161
if (transliterateFn) return
6262
try {
63-
const mod = await import("interscript-ts")
63+
const mod = await import("interscript")
6464
const wanted = new Set<string>(morphs.map((m) => m.system))
6565
const maps: Record<string, unknown> = {}
6666
const fetchOne = async (code: string) => {

src/components/MapPreview.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function ensureEngine() {
3737
}
3838
engine.value = "loading"
3939
try {
40-
const mod = await import("interscript-ts")
40+
const mod = await import("interscript")
4141
// Fetch this system + its transitive deps. import.meta.glob can't
4242
// see public/ files in dev.
4343
const wanted = new Set<string>([props.systemCode])
@@ -96,7 +96,7 @@ gem install interscript
9696
interscript -s {{ systemCode }} input.txt
9797

9898
# TypeScript (after npm install interscript-ts)
99-
import {{ '{' }} transliterate {{ '}' }} from "interscript-ts"
99+
import {{ '{' }} transliterate {{ '}' }} from "interscript"
100100
transliterate("{{ systemCode }}", "your input")</code></pre>
101101
</div>
102102

src/components/QuickBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let transliterateFn: ((code: string, input: string) => string) | null = null
3939
async function ensureEngine() {
4040
if (transliterateFn) return
4141
try {
42-
const mod = await import("interscript-ts")
42+
const mod = await import("interscript")
4343
const wanted = new Set<string>(systems.map((s) => s.code))
4444
const sources: Record<string, string> = {}
4545
const libJsons: Record<string, unknown> = {}

src/components/RuleViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ onMounted(async () => {
286286
const res = await fetch(`/maps/${props.systemCode}.isc`)
287287
if (!res.ok) throw new Error(`HTTP ${res.status}`)
288288
const text = await res.text()
289-
const mod = await import("interscript-ts")
289+
const mod = await import("interscript")
290290
const doc = mod.parseIsc(text, `${props.systemCode}.isc`)
291291
stages.value = doc.stages.map((s) => ({
292292
name: s.name,

src/components/ScriptMosaic.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ let transliterateFn: ((code: string, input: string) => string) | null = null
179179
async function ensureEngine() {
180180
if (transliterateFn) return
181181
try {
182-
const mod = await import("interscript-ts")
182+
const mod = await import("interscript")
183183
// Collect every system code referenced by the mosaic, plus their
184184
// transitive dependencies. fetch() each one — import.meta.glob
185185
// doesn't see files under public/ in dev.

src/lib/server-map-strategies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
*/
88
import { readFileSync } from "node:fs"
99
import { resolve } from "node:path"
10-
import { iscStrategy, type LoadStrategy } from "interscript-ts"
11-
import { filesystemStrategy } from "interscript-ts/loaders.node"
10+
import { iscStrategy, type LoadStrategy } from "interscript"
11+
import { filesystemStrategy } from "interscript/loaders.node"
1212

1313
const MAPS_DIR = resolve(process.cwd(), "public/maps")
1414

src/pages/api.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ curl -G 'https://interscript.org/api/transliterate' \\
5454
<span class="runtime-badge">TypeScript / JavaScript</span>
5555
<h3>npm</h3>
5656
</header>
57-
<pre><code>npm install interscript-ts</code></pre>
58-
<pre><code set:html={`import { transliterate } from "interscript-ts"
57+
<pre><code>npm install interscript</code></pre>
58+
<pre><code set:html={`import { transliterate } from "interscript"
5959
6060
const out = transliterate(
6161
"bgnpcgn-ukr-Cyrl-Latn-2019",
@@ -84,7 +84,7 @@ out = Interscript.transliterate(
8484
<span class="runtime-badge">Browser</span>
8585
<h3>CDN</h3>
8686
</header>
87-
<pre><code>npm install interscript-ts
87+
<pre><code>npm install interscript
8888
# or: https://esm.sh/interscript-ts</code></pre>
8989
<pre><code set:html={`import {
9090
transliterateAsync,

0 commit comments

Comments
 (0)