Skip to content

Commit 5bb415f

Browse files
committed
build: complete build method
1 parent 204d280 commit 5bb415f

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

.vscodeignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": {
77
"name": "BoxBoxJason"
88
},
9-
"version": "0.0.1",
9+
"version": "0.1.0",
1010
"engines": {
1111
"vscode": "^1.104.0"
1212
},
@@ -117,7 +117,8 @@
117117
"scripts": {
118118
"electron-rebuild": "npx electron-rebuild --version 37.3.1",
119119
"compile": "npm run clean && npm run tailwind && ts-node esbuild.ts",
120-
"package": "npm run clean && npm run tailwind && npm run check-types && npm run lint && ts-node esbuild.ts --production",
120+
"build": "npm run clean && npm run tailwind && npm run check-types && npm run lint && ts-node esbuild.ts --production",
121+
"package": "npm run build && vsce package",
121122
"check-types": "tsc --noEmit",
122123
"lint": "eslint src",
123124
"test": "vscode-test",
@@ -153,5 +154,19 @@
153154
"react": "19.1.1",
154155
"react-dom": "19.1.1"
155156
},
157+
"files": [
158+
"dist",
159+
"assets",
160+
"README.md",
161+
"CHANGELOG.md",
162+
"node_modules/better-sqlite3/**",
163+
"node_modules/react/**",
164+
"node_modules/react-dom/**",
165+
"node_modules/bindings/**",
166+
"node_modules/file-uri-to-path/**"
167+
],
168+
"repository": {
169+
"type": "git",
170+
"url": "https://github.com/BoxBoxJason/achievements.git"
156171
}
157-
}
172+
}

src/views/management.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ export namespace AchievementsWebview {
2020
{
2121
enableScripts: true,
2222
retainContextWhenHidden: true,
23+
localResourceRoots: [
24+
vscode.Uri.file(path.join(context.extensionPath, "assets")),
25+
vscode.Uri.file(path.join(context.extensionPath, "dist", "style")),
26+
vscode.Uri.file(path.join(context.extensionPath, "dist")),
27+
],
2328
}
2429
);
2530
panel.webview.html = getDefaultWebviewContentReact(context, panel);

0 commit comments

Comments
 (0)