Skip to content

Commit

Permalink
replace $obj$
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Oct 7, 2023
1 parent ec65b0c commit 94f81dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/util/projectToJs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import {
export const projectToJs =
(project: Project) =>
project.objects.map(
({script}) =>
scriptToExpressions(script).join("\n")
({script, id}) => {
return scriptToExpressions(script).join("\n").replaceAll(`$obj$`, id)
}
).join("\n")

const scriptToExpressions =
Expand Down
4 changes: 2 additions & 2 deletions test/proj1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94f81dd

Please sign in to comment.