Skip to content

Commit b50ec57

Browse files
Merge pull request #2 from ut-code/feat/manifest
Feat/manifest
2 parents 6d6c2b4 + 879a3da commit b50ec57

5 files changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TechWord
1+
# Techterm
22

33
プログラミング用語にマウスをホバーすると、意味を簡潔に表示します。
44
VS Code 拡張とブラウザ拡張の 2 つがあり、辞書と検索ロジックは共通です。

packages/browser/manifest.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"description": "プログラミング用語にホバーすると、意味を簡潔に表示します。",
66
"content_scripts": [
77
{
8-
"matches": ["<all_urls>"],
8+
"matches": [
9+
"https://*/*",
10+
"http://*/*"
11+
],
912
"js": ["content.js"],
1013
"run_at": "document_idle"
1114
}

packages/browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@techword/browser",
33
"version": "0.1.1",
44
"private": true,
5+
"typescript": "^6.0.3",
56
"scripts": {
67
"build": "esbuild src/content.ts --bundle --outfile=dist/content.js --format=iife --target=chrome110 && cp manifest.json dist/manifest.json",
78
"watch": "esbuild src/content.ts --bundle --outfile=dist/content.js --format=iife --target=chrome110 --watch"

packages/vscode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
}
4949
}
5050
},
51+
"typescript": "^6.0.3",
5152
"scripts": {
5253
"build": "tsc -p tsconfig.json",
5354
"watch": "tsc -p tsconfig.json --watch"

packages/vscode/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "commonjs",
5-
"moduleResolution": "node",
4+
"module": "Node16",
5+
"moduleResolution": "Node16",
66
"lib": ["ES2022"],
77
"rootDir": "src",
88
"outDir": "dist",

0 commit comments

Comments
 (0)