diff --git a/extension/CHANGELOG.md b/extension/CHANGELOG.md index 1e2ad73..c820f91 100644 --- a/extension/CHANGELOG.md +++ b/extension/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.0.76 + +### Bug Fixes + +- **Write Prism assets to the active extension output directory**: `scripts/download-prism.ts` now respects `PLAYWRITER_EXTENSION_DIST` instead of always writing to `dist/src`. This fixes release builds (`dist-release`) missing `prism.min.js` and `prism-bash.min.js` used by `welcome.html`. + ## 0.0.75 ### Changes diff --git a/extension/manifest.json b/extension/manifest.json index 7c6bb20..11bbf7c 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Playwriter", - "version": "0.0.75", + "version": "0.0.76", "description": "Automate your Browser using Cursor, Claude, VS Code. More capable and context efficient than Playwright MCP.", "permissions": [ "debugger", diff --git a/extension/scripts/download-prism.ts b/extension/scripts/download-prism.ts index 050bdc6..eed02d4 100644 --- a/extension/scripts/download-prism.ts +++ b/extension/scripts/download-prism.ts @@ -1,11 +1,12 @@ -// Downloads Prism.js assets into dist/src/ for the welcome page. +// Downloads Prism.js assets into /src/ for the welcome page. // Chrome extension CSP blocks external scripts, so we bundle them locally. import https from 'node:https' import fs from 'node:fs' import path from 'node:path' const BASE = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/' -const DEST = path.join('dist', 'src') +const outDir = process.env.PLAYWRITER_EXTENSION_DIST || 'dist' +const DEST = path.join(outDir, 'src') const files: [string, string][] = [ ['prism.min.js', 'prism.min.js'],