@speedkit/cli 4.15.0 → 4.15.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.15.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.15.0...v4.15.1) (2026-07-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ignore page-examples.json for deployments ([209fec8](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/209fec89d17f7b6c34a5891fb761564cdcdad35c))
7
+
1
8
  # [4.15.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.14.0...v4.15.0) (2026-07-03)
2
9
 
3
10
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/4.15.0 linux-x64 node-v22.23.1
24
+ @speedkit/cli/4.15.1 linux-x64 node-v22.23.1
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -5,13 +5,14 @@ export default class FileReader {
5
5
  private readonly basePath;
6
6
  private readonly whiteList;
7
7
  private readonly blockedFolders;
8
+ private readonly blockedFiles;
8
9
  allowedExtensions: string[];
9
10
  constructor(fileSystem: {
10
11
  readFileSync: (path: string, options: "utf-8") => string;
11
12
  readdirSync: (path: string, options: {
12
13
  withFileTypes: boolean;
13
14
  }) => Dirent[];
14
- }, configName: string, basePath: string, whiteList?: string[], blockedFolders?: string[]);
15
+ }, configName: string, basePath: string, whiteList?: string[], blockedFolders?: string[], blockedFiles?: string[]);
15
16
  getFileList(basePath?: string): string[];
16
17
  getContent(path: string): Promise<string>;
17
18
  private isAllowedFolder;
@@ -9,13 +9,15 @@ export default class FileReader {
9
9
  basePath;
10
10
  whiteList;
11
11
  blockedFolders;
12
+ blockedFiles;
12
13
  allowedExtensions = ["js", "es6", "json", "css"];
13
- constructor(fileSystem, configName, basePath, whiteList = [], blockedFolders = []) {
14
+ constructor(fileSystem, configName, basePath, whiteList = [], blockedFolders = [], blockedFiles = []) {
14
15
  this.fileSystem = fileSystem;
15
16
  this.configName = configName;
16
17
  this.basePath = basePath;
17
18
  this.whiteList = whiteList;
18
19
  this.blockedFolders = blockedFolders;
20
+ this.blockedFiles = blockedFiles;
19
21
  }
20
22
  getFileList(basePath = this.basePath) {
21
23
  let files = [];
@@ -54,6 +56,8 @@ export default class FileReader {
54
56
  }
55
57
  isAllowedFile(fileName) {
56
58
  const extension = this.getFileExtension(fileName);
59
+ if (this.blockedFiles.some((file) => fileName.includes(file)))
60
+ return false;
57
61
  return (this.allowedExtensions.includes(extension) && this.isWhiteListed(fileName));
58
62
  }
59
63
  getFileExtension(fileName) {
@@ -38,7 +38,7 @@ export class IntegrationApiFactory {
38
38
  }
39
39
  getFileReader() {
40
40
  if (!this.fileReader) {
41
- this.fileReader = new FileReader(fs, this.context.configName, this.context.basePath, this.context.whitelist, this.context.blockedFolders);
41
+ this.fileReader = new FileReader(fs, this.context.configName, this.context.basePath, this.context.whitelist, this.context.blockedFolders, this.context.blockedFiles);
42
42
  }
43
43
  return this.fileReader;
44
44
  }
@@ -100,11 +100,13 @@ export interface VirtualFileConfig {
100
100
  overrideLocalFile?: boolean;
101
101
  }
102
102
  export declare const DEFAULT_BLOCKED_FOLDERS: string[];
103
+ export declare const DEFAULT_BLOCKED_FILES: string[];
103
104
  export declare class IntegrationApiContext {
104
105
  readonly basePath: string;
105
106
  readonly configName: string;
106
107
  readonly whitelist: string[];
107
108
  readonly blockedFolders: string[];
108
109
  readonly useTestConfig: boolean;
109
- constructor(basePath: string, configName: string, whitelist?: string[], blockedFolders?: string[], useTestConfig?: boolean);
110
+ readonly blockedFiles: string[];
111
+ constructor(basePath: string, configName: string, whitelist?: string[], blockedFolders?: string[], useTestConfig?: boolean, blockedFiles?: string[]);
110
112
  }
@@ -19,18 +19,27 @@ export var FILE_TYPE;
19
19
  FILE_TYPE["READONLY_FILE"] = "readonly";
20
20
  FILE_TYPE["CUSTOMER_FILE"] = "customer";
21
21
  })(FILE_TYPE || (FILE_TYPE = {}));
22
- export const DEFAULT_BLOCKED_FOLDERS = ["test", ".local", ".git", ".idea"];
22
+ export const DEFAULT_BLOCKED_FOLDERS = [
23
+ "test",
24
+ ".local",
25
+ ".git",
26
+ ".idea",
27
+ "page-examples",
28
+ ];
29
+ export const DEFAULT_BLOCKED_FILES = ["page-examples"];
23
30
  export class IntegrationApiContext {
24
31
  basePath;
25
32
  configName;
26
33
  whitelist;
27
34
  blockedFolders;
28
35
  useTestConfig;
29
- constructor(basePath, configName, whitelist = [], blockedFolders = DEFAULT_BLOCKED_FOLDERS, useTestConfig = false) {
36
+ blockedFiles;
37
+ constructor(basePath, configName, whitelist = [], blockedFolders = DEFAULT_BLOCKED_FOLDERS, useTestConfig = false, blockedFiles = DEFAULT_BLOCKED_FILES) {
30
38
  this.basePath = basePath;
31
39
  this.configName = configName;
32
40
  this.whitelist = whitelist;
33
41
  this.blockedFolders = blockedFolders;
34
42
  this.useTestConfig = useTestConfig;
43
+ this.blockedFiles = blockedFiles;
35
44
  }
36
45
  }
@@ -847,5 +847,5 @@
847
847
  ]
848
848
  }
849
849
  },
850
- "version": "4.15.0"
850
+ "version": "4.15.1"
851
851
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "4.15.0",
4
+ "version": "4.15.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"