Skip to content

Commit d40b723

Browse files
committed
copy marked.umd.js to marked.js
1 parent f574b01 commit d40b723

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setupbase.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def find_package_data():
145145
pjoin(components, "jquery-ui", "dist", "jquery-ui.min.js"),
146146
pjoin(components, "jquery-ui", "dist", "themes", "smoothness", "jquery-ui.min.css"),
147147
pjoin(components, "jquery-ui", "dist", "themes", "smoothness", "images", "*"),
148-
pjoin(components, "marked", "lib", "marked.cjs"),
148+
pjoin(components, "marked", "lib", "marked.js"),
149149
pjoin(components, "react", "react.production.min.js"),
150150
pjoin(components, "react", "react-dom.production.min.js"),
151151
pjoin(components, "requirejs", "require.js"),
@@ -417,8 +417,8 @@ def run(self):
417417
cwd=repo_root,
418418
env=env
419419
)
420-
# Copy the CommonJS files to their JavaScript equivalent to ensure correct loading.
421-
shutil.copyfile(pjoin(self.bower_dir, "marked", "lib", "marked.cjs"), pjoin(self.bower_dir, "marked", "lib", "marked.js"))
420+
# Copy the UMD files to their JavaScript equivalent to ensure correct loading.
421+
shutil.copyfile(pjoin(self.bower_dir, "marked", "lib", "marked.umd.js"), pjoin(self.bower_dir, "marked", "lib", "marked.js"))
422422
except OSError as e:
423423
print("Failed to run bower: %s" % e, file=sys.stderr)
424424
print("You can install js dependencies with `npm install`", file=sys.stderr)

0 commit comments

Comments
 (0)