Skip to content

Commit 9ef6c31

Browse files
authored
Merge pull request #131 from interscript/chore/npm-runtime-dep
chore: engine dep from npm — interscript@^3.0.0
2 parents 4748ffd + e622ead commit 9ef6c31

25 files changed

Lines changed: 79 additions & 51 deletions

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ jobs:
1616
with:
1717
node-version: "22"
1818
cache: npm
19-
- name: Clone interscript-ts (file dependency)
20-
run: |
21-
git clone --depth=1 --branch main https://github.com/interscript/interscript-ts.git ../interscript-ts
22-
cd ../interscript-ts && npm ci && npm run build
2319
- name: Install dependencies
2420
run: npm ci
2521
- name: Type check

.github/workflows/deploy.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ jobs:
2929
with:
3030
node-version: "22"
3131
cache: npm
32-
- name: Clone interscript-ts (file dependency)
33-
run: |
34-
git clone --depth=1 --branch main https://github.com/interscript/interscript-ts.git ../interscript-ts
35-
cd ../interscript-ts && npm ci && npm run build
3632
- name: Install dependencies
3733
run: npm ci
3834
- name: Build site

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.

0 commit comments

Comments
 (0)