appwrite-utils-cli 0.10.64 → 0.10.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -147,6 +147,7 @@ This updated CLI ensures that developers have robust tools at their fingertips t
147
147
 
148
148
  ## Changelog
149
149
 
150
+ - 0.10.65: Fixed the stupid local functions not caring about the ignore string, and added `__pycache__` and `.venv` to default ignores
150
151
  - 0.10.64: Fixed `Deploy Function(s)` not ignoring things properly
151
152
  - 0.10.63: My `collectLocalFunctions` function was failing to add the `scopes` and a few others to the function, accidentally, fixed now
152
153
  - 0.10.62: Made `Deploy Function(s)` also update the functions, as not all things (timeout, specification, etc.) are updated via deploy
@@ -27,7 +27,14 @@ const findFunctionDirectory = (basePath, functionName) => {
27
27
  }
28
28
  return undefined;
29
29
  };
30
- export const deployFunction = async (client, functionId, codePath, activate = true, entrypoint = "index.js", commands = "npm install", ignored = ["node_modules", ".git", ".vscode", ".DS_Store"]) => {
30
+ export const deployFunction = async (client, functionId, codePath, activate = true, entrypoint = "index.js", commands = "npm install", ignored = [
31
+ "node_modules",
32
+ ".git",
33
+ ".vscode",
34
+ ".DS_Store",
35
+ "__pycache__",
36
+ ".venv",
37
+ ]) => {
31
38
  const functions = new Functions(client);
32
39
  console.log(chalk.blue("Preparing function deployment..."));
33
40
  // Convert ignored patterns to lowercase for case-insensitive comparison
@@ -514,6 +514,7 @@ export class InteractiveCLI {
514
514
  events: f.events || [],
515
515
  schedule: f.schedule || "",
516
516
  timeout: f.timeout || 15,
517
+ ignore: f.ignore || [],
517
518
  enabled: f.enabled !== false,
518
519
  logging: f.logging !== false,
519
520
  entrypoint: f.entrypoint || "src/index.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.10.64",
4
+ "version": "0.10.65",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -47,7 +47,14 @@ export const deployFunction = async (
47
47
  activate: boolean = true,
48
48
  entrypoint: string = "index.js",
49
49
  commands: string = "npm install",
50
- ignored: string[] = ["node_modules", ".git", ".vscode", ".DS_Store"]
50
+ ignored: string[] = [
51
+ "node_modules",
52
+ ".git",
53
+ ".vscode",
54
+ ".DS_Store",
55
+ "__pycache__",
56
+ ".venv",
57
+ ]
51
58
  ) => {
52
59
  const functions = new Functions(client);
53
60
  console.log(chalk.blue("Preparing function deployment..."));
@@ -712,6 +712,7 @@ export class InteractiveCLI {
712
712
  events: f.events || [],
713
713
  schedule: f.schedule || "",
714
714
  timeout: f.timeout || 15,
715
+ ignore: f.ignore || [],
715
716
  enabled: f.enabled !== false,
716
717
  logging: f.logging !== false,
717
718
  entrypoint: f.entrypoint || "src/index.ts",