Skip to content

Commit

Permalink
copy marked.umd.js to marked.js
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Mar 27, 2023
1 parent f574b01 commit d40b723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def find_package_data():
pjoin(components, "jquery-ui", "dist", "jquery-ui.min.js"),
pjoin(components, "jquery-ui", "dist", "themes", "smoothness", "jquery-ui.min.css"),
pjoin(components, "jquery-ui", "dist", "themes", "smoothness", "images", "*"),
pjoin(components, "marked", "lib", "marked.cjs"),
pjoin(components, "marked", "lib", "marked.js"),
pjoin(components, "react", "react.production.min.js"),
pjoin(components, "react", "react-dom.production.min.js"),
pjoin(components, "requirejs", "require.js"),
Expand Down Expand Up @@ -417,8 +417,8 @@ def run(self):
cwd=repo_root,
env=env
)
# Copy the CommonJS files to their JavaScript equivalent to ensure correct loading.
shutil.copyfile(pjoin(self.bower_dir, "marked", "lib", "marked.cjs"), pjoin(self.bower_dir, "marked", "lib", "marked.js"))
# Copy the UMD files to their JavaScript equivalent to ensure correct loading.
shutil.copyfile(pjoin(self.bower_dir, "marked", "lib", "marked.umd.js"), pjoin(self.bower_dir, "marked", "lib", "marked.js"))
except OSError as e:
print("Failed to run bower: %s" % e, file=sys.stderr)
print("You can install js dependencies with `npm install`", file=sys.stderr)
Expand Down

0 comments on commit d40b723

Please sign in to comment.