Skip to content

Commit

Permalink
chore(intellij): use $PROJECT_DIR for local dev to remove dependency …
Browse files Browse the repository at this point in the history
…on current working directory
  • Loading branch information
fwouts committed Jan 31, 2024
1 parent 108fc92 commit 2a4eadd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integrations/intellij/.run/Run IDE with Plugin.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ExternalSystemSettings>
<option name="env">
<map>
<entry key="PREVIEWJS_MODULES_DIR" value="../../../dev-workspace" />
<entry key="PREVIEWJS_MODULES_DIR" value="$PROJECT_DIR$/../../dev-workspace" />
</map>
</option>
<option name="executionName" />
Expand Down
2 changes: 1 addition & 1 deletion integrations/intellij/daemon/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var __dirname = url.fileURLToPath(new URL(".", import.meta.url));
"process.env.PREVIEWJS_INTELLIJ_VERSION": JSON.stringify(pluginVersion),
...(process.env.PREVIEWJS_MODULES_DIR && {
"process.env.PREVIEWJS_MODULES_DIR": JSON.stringify(
path.join(__dirname, process.env.PREVIEWJS_MODULES_DIR)
process.env.PREVIEWJS_MODULES_DIR
),
}),
},
Expand Down

0 comments on commit 2a4eadd

Please sign in to comment.