Skip to content

Commit 63479a2

Browse files
committed
typo
1 parent 9e56d61 commit 63479a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

npm_mjs/management/commands/create_package_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def handle(self, *args, **options):
4545
else:
4646
continue
4747
deep_merge_dicts(package, data)
48-
os.makedirs(TRANSPILE_CACHE_PATH, exists_ok=True)
48+
os.makedirs(TRANSPILE_CACHE_PATH, exist_ok=True)
4949
package_path = os.path.join(TRANSPILE_CACHE_PATH, "package.json")
5050
with open(package_path, "w") as outfile:
5151
json.dump(package, outfile)

npm_mjs/management/commands/npm_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def install_npm(force, stdout, post_npm_signal=True):
4848
or force
4949
):
5050
stdout.write("Installing pnpm dependencies...")
51-
os.makedirs(TRANSPILE_CACHE_PATH, exists_ok=True)
51+
os.makedirs(TRANSPILE_CACHE_PATH, exist_ok=True)
5252
set_last_run("npm_install", int(round(time.time())))
5353
call_command("create_package_json")
5454

npm_mjs/management/commands/transpile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ def handle(self, *args, **options):
8181
# Remove any previously created static output dirs
8282
shutil.rmtree(transpile_path, ignore_errors=True)
8383
self.stdout.write("Transpiling...")
84-
os.makedirs(TRANSPILE_CACHE_PATH, exists_ok=True)
84+
os.makedirs(TRANSPILE_CACHE_PATH, exist_ok=True)
8585
# We reload the file as other values may have changed in the meantime
8686
set_last_run("transpile", start)
8787
# Create a static output dir
8888
out_dir = os.path.join(transpile_path, "js/")
89-
os.makedirs(out_dir, exists_ok=True)
89+
os.makedirs(out_dir, exist_ok=True)
9090
with open(os.path.join(transpile_path, "README.txt"), "w") as f:
9191
f.write(
9292
"These files have been automatically generated. "
@@ -124,7 +124,7 @@ def handle(self, *args, **options):
124124
# Apps.
125125

126126
cache_path = os.path.join(TRANSPILE_CACHE_PATH, "js/")
127-
os.makedirs(cache_path, exists_ok=True)
127+
os.makedirs(cache_path, exist_ok=True)
128128
# Note all cache files so that we can remove outdated files that no
129129
# longer are in the prject.
130130
cache_files = []
@@ -136,7 +136,7 @@ def handle(self, *args, **options):
136136
outfile = os.path.join(cache_path, relative_path)
137137
cache_files.append(outfile)
138138
dirname = os.path.dirname(outfile)
139-
os.makedirs(dirname, exists_ok=True)
139+
os.makedirs(dirname, exist_ok=True)
140140
shutil.copyfile(sourcefile, outfile)
141141
# Check for plugin connectors
142142
if relative_path[:8] == "plugins/":

0 commit comments

Comments
 (0)