fix: allow skills watcher ignore list
This commit is contained in:
@@ -26,11 +26,12 @@ const workspaceVersions = new Map<string, number>();
|
|||||||
const watchers = new Map<string, SkillsWatchState>();
|
const watchers = new Map<string, SkillsWatchState>();
|
||||||
let globalVersion = 0;
|
let globalVersion = 0;
|
||||||
|
|
||||||
export const DEFAULT_SKILLS_WATCH_IGNORED = [
|
export const DEFAULT_SKILLS_WATCH_IGNORED: RegExp[] = [
|
||||||
/(^|[\\/])\.git([\\/]|$)/,
|
/(^|[\\/])\.git([\\/]|$)/,
|
||||||
/(^|[\\/])node_modules([\\/]|$)/,
|
/(^|[\\/])node_modules([\\/]|$)/,
|
||||||
/(^|[\\/])dist([\\/]|$)/,
|
/(^|[\\/])dist([\\/]|$)/,
|
||||||
] as RegExp[];
|
];
|
||||||
|
];
|
||||||
|
|
||||||
function bumpVersion(current: number): number {
|
function bumpVersion(current: number): number {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
|
|||||||
Reference in New Issue
Block a user