From 6c1f5ee5d9b4fa351251210e304a0c86f5a70ae0 Mon Sep 17 00:00:00 2001 From: hjoncour Date: Mon, 16 Mar 2026 22:44:56 -0400 Subject: [PATCH] fix(mapping): js & ts --- package-lock.json | 4 ++-- package.json | 2 +- src/icon-engine/resolver.ts | 13 ++++++++++++- ssmver.toml | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ead00f8..12c77a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chrome-github-icons", - "version": "0.4.2", + "version": "0.4.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "chrome-github-icons", - "version": "0.4.2", + "version": "0.4.3", "hasInstallScript": true, "dependencies": { "@iconify-json/vscode-icons": "^1.2.45", diff --git a/package.json b/package.json index 1b95a30..3638f4a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "chrome-github-icons", "description": "Cross-browser extension that replaces GitHub file icons with Material Design icons.", "private": true, - "version": "0.4.2", + "version": "0.4.3", "type": "module", "scripts": { "sync:assets": "tsx scripts/copy-icons.ts", diff --git a/src/icon-engine/resolver.ts b/src/icon-engine/resolver.ts index afd60e0..4948266 100644 --- a/src/icon-engine/resolver.ts +++ b/src/icon-engine/resolver.ts @@ -3,7 +3,18 @@ import { browser } from 'wxt/browser'; import type { PublicPath } from 'wxt/browser'; import type { IconQuery, ResolvedIcon } from './types'; -const LANGUAGE_EXTENSION_ALIASES: Record = {htm: 'html', yml: 'yaml'}; +const LANGUAGE_EXTENSION_ALIASES: Record = { + htm: 'html', + yml: 'yaml', + js: 'javascript', + mjs: 'javascript', + cjs: 'javascript', + jsx: 'javascriptreact', + ts: 'typescript', + mts: 'typescript', + cts: 'typescript', + tsx: 'typescriptreact', +}; function normalizeLabel(value: string): string { return value.trim().replace(/\s*\/\s*/g, '/').replace(/\/+/g, '/'); diff --git a/ssmver.toml b/ssmver.toml index cf72c38..54b6938 100644 --- a/ssmver.toml +++ b/ssmver.toml @@ -1,4 +1,4 @@ -version = "0.4.2" +version = "0.4.3" [settings] mode = "branch"