MISC: Support css file type (#2378)

This commit is contained in:
Shy
2025-11-05 23:05:31 +01:00
committed by GitHub
parent 9cd3ffd308
commit 4ad9a96788
18 changed files with 38 additions and 27 deletions
+2 -2
View File
@@ -788,7 +788,7 @@ export const ns: InternalAPI<NSFull> = {
continue;
}
if (!path.endsWith(".lit")) {
throw helpers.errorMessage(ctx, "Only works for scripts, .lit and .txt files.");
throw helpers.errorMessage(ctx, "Only works for script, text, and .lit files");
}
lits.push(path);
}
@@ -1611,7 +1611,7 @@ export const ns: InternalAPI<NSFull> = {
) {
throw helpers.errorMessage(
ctx,
`'mv' can only be used on scripts (.js, .jsx, .ts, .tsx) and text files (.txt, .json)`,
`'mv' can only be used on scripts (.js, .jsx, .ts, .tsx) and text files (.txt, .json, .css)`,
);
}
if (sourcePath === destinationPath) {