Skip to content

Commit 9254e2d

Browse files
committed
fix: start failed when profile/extensions not exists
resolve: windingwind/zotero-plugin-template#113
1 parent ec17dc5 commit 9254e2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/serve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default class Serve extends Base {
190190
!fs.existsSync(addonProxyFilePath) ||
191191
fs.readFileSync(addonProxyFilePath, "utf-8") !== buildPath
192192
) {
193-
fs.writeFileSync(addonProxyFilePath, buildPath);
193+
fs.outputFileSync(addonProxyFilePath, buildPath);
194194
this.logger.debug(
195195
`Addon proxy file has been updated.
196196
File path: ${addonProxyFilePath}

0 commit comments

Comments
 (0)