@dxtmisha/scripts 1.0.0 → 1.1.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 +32 -0
- package/bin/build-packages.ts +24 -3
- package/bin/design-prompt.ts +7 -2
- package/dist/{AiZAi-x3CInynJ.js → AiZAi-P-St-CZL.js} +1 -1
- package/dist/{PropertiesConfig-ChizwW5y.js → PropertiesConfig-BBsuNndv.js} +67 -52
- package/dist/config.d.ts +6 -0
- package/dist/config.js +5 -5
- package/dist/library-ai.js +1 -1
- package/dist/library-figma.js +1 -1
- package/dist/library-ui.js +648 -637
- package/dist/library.d.ts +262 -21
- package/dist/library.js +317 -185
- package/dist/{propertyTypes-DflziKuR.js → propertyTypes-CstobYcc.js} +2 -2
- package/package.json +18 -18
package/dist/library.d.ts
CHANGED
|
@@ -910,29 +910,25 @@ export declare class BrowserItem {
|
|
|
910
910
|
*/
|
|
911
911
|
export declare class BuildPackages {
|
|
912
912
|
protected readonly path: string;
|
|
913
|
+
protected readonly code?: string | undefined;
|
|
914
|
+
protected readonly logFile?: string | undefined;
|
|
913
915
|
/** Map of cached package build versions / Карта кэшированных версий сборки пакетов */
|
|
914
916
|
protected log: Record<string, string>;
|
|
915
917
|
/**
|
|
916
|
-
* Constructor initializes packages path and loads build log.
|
|
918
|
+
* Constructor initializes packages path, custom build code, custom log file, and loads build log.
|
|
917
919
|
*
|
|
918
|
-
* Конструктор инициализирует путь к
|
|
920
|
+
* Конструктор инициализирует путь к пакетам, пользовательский код сборки, пользовательский файл лога и загружает лог сборки.
|
|
919
921
|
* @param path packages directory path / путь к директории пакетов
|
|
922
|
+
* @param code custom build command or script name / пользовательская команда сборки или имя скрипта
|
|
923
|
+
* @param logFile custom log file name or path / пользовательское имя или путь к файлу лога
|
|
920
924
|
*/
|
|
921
|
-
constructor(path?: string);
|
|
925
|
+
constructor(path?: string, code?: string | undefined, logFile?: string | undefined);
|
|
922
926
|
/**
|
|
923
927
|
* Scans the packages directory and builds each package that contains a package.json.
|
|
924
928
|
*
|
|
925
929
|
* Сканирует директорию пакетов и собирает каждый пакет, содержащий package.json.
|
|
926
930
|
*/
|
|
927
931
|
make(): Promise<void>;
|
|
928
|
-
/**
|
|
929
|
-
* Executes the build script command for the package.
|
|
930
|
-
*
|
|
931
|
-
* Выполняет команду скрипта сборки для пакета.
|
|
932
|
-
* @param packageFile package file instance / экземпляр файла пакета
|
|
933
|
-
* @returns boolean indicating build success / флаг успешности сборки
|
|
934
|
-
*/
|
|
935
|
-
protected build(packageFile: PackageFile): Promise<boolean>;
|
|
936
932
|
/**
|
|
937
933
|
* Checks if the package needs to be updated.
|
|
938
934
|
*
|
|
@@ -942,14 +938,20 @@ export declare class BuildPackages {
|
|
|
942
938
|
*/
|
|
943
939
|
protected isUpdate(packageFile: PackageFile): boolean;
|
|
944
940
|
/**
|
|
945
|
-
*
|
|
946
|
-
* If a package does not have a priority, it defaults to 500.
|
|
941
|
+
* Returns the command name for build execution.
|
|
947
942
|
*
|
|
948
|
-
*
|
|
949
|
-
*
|
|
950
|
-
* @returns
|
|
943
|
+
* Возвращает имя команды для выполнения сборки.
|
|
944
|
+
* @param packageFile package file instance / экземпляр файла пакета
|
|
945
|
+
* @returns command string or undefined / строка команды или undefined
|
|
951
946
|
*/
|
|
952
|
-
|
|
947
|
+
protected getCode(packageFile: PackageFile): string | undefined;
|
|
948
|
+
/**
|
|
949
|
+
* Returns the path segments to the build log file.
|
|
950
|
+
*
|
|
951
|
+
* Возвращает сегменты пути к файлу лога сборки.
|
|
952
|
+
* @returns array of path segments / массив сегментов пути
|
|
953
|
+
*/
|
|
954
|
+
protected getLogPath(): string[];
|
|
953
955
|
/**
|
|
954
956
|
* Returns the cached version of the package from the build log.
|
|
955
957
|
*
|
|
@@ -965,12 +967,35 @@ export declare class BuildPackages {
|
|
|
965
967
|
* @param packageFile package file object / объект файла пакета
|
|
966
968
|
*/
|
|
967
969
|
protected updateLog(packageFile: PackageFile): void;
|
|
970
|
+
/**
|
|
971
|
+
* Executes the build script command for the package.
|
|
972
|
+
*
|
|
973
|
+
* Выполняет команду скрипта сборки для пакета.
|
|
974
|
+
* @param packageFile package file instance / экземпляр файла пакета
|
|
975
|
+
* @returns boolean indicating build success / флаг успешности сборки
|
|
976
|
+
*/
|
|
977
|
+
protected build(packageFile: PackageFile): Promise<boolean>;
|
|
978
|
+
/**
|
|
979
|
+
* Adds the build log file to .gitignore.
|
|
980
|
+
*
|
|
981
|
+
* Добавляет файл лога сборки в .gitignore.
|
|
982
|
+
*/
|
|
983
|
+
protected initGitIgnore(): void;
|
|
968
984
|
/**
|
|
969
985
|
* Saves the build log to a file.
|
|
970
986
|
*
|
|
971
987
|
* Сохраняет лог сборки в файл.
|
|
972
988
|
*/
|
|
973
989
|
protected saveLog(): void;
|
|
990
|
+
/**
|
|
991
|
+
* Scans the packages directory and returns a list of packages sorted by the ui-priority property in package.json.
|
|
992
|
+
* If a package does not have a priority, it defaults to 500.
|
|
993
|
+
*
|
|
994
|
+
* Сканирует директорию пакетов и возвращает список пакетов, отсортированный по свойству ui-priority в package.json.
|
|
995
|
+
* Если у пакета нет приоритета, по умолчанию устанавливается значение 500.
|
|
996
|
+
* @returns sorted list of package files / отсортированный список файлов пакетов
|
|
997
|
+
*/
|
|
998
|
+
private getList;
|
|
974
999
|
}
|
|
975
1000
|
|
|
976
1001
|
/**
|
|
@@ -1256,6 +1281,13 @@ export declare class DesignTypes {
|
|
|
1256
1281
|
* @returns current instance / текущий экземпляр
|
|
1257
1282
|
*/
|
|
1258
1283
|
makeSave(): Promise<this>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Adds all files generated by this engine to .gitignore.
|
|
1286
|
+
*
|
|
1287
|
+
* Добавляет все файлы, сгенерированные этим движком, в .gitignore.
|
|
1288
|
+
* @protected
|
|
1289
|
+
*/
|
|
1290
|
+
protected initGitIgnore(): void;
|
|
1259
1291
|
}
|
|
1260
1292
|
|
|
1261
1293
|
/**
|
|
@@ -1757,7 +1789,7 @@ export declare class DesignTypesMake extends DesignTypesMakeAbstract {
|
|
|
1757
1789
|
* @param code code to optimize / код для оптимизации
|
|
1758
1790
|
* @returns optimized content string / строка оптимизированного контента
|
|
1759
1791
|
*/
|
|
1760
|
-
protected toAiEdit(content: string, code: string): Promise<string>;
|
|
1792
|
+
protected toAiEdit(content: string, code: string): Promise<string | undefined>;
|
|
1761
1793
|
}
|
|
1762
1794
|
|
|
1763
1795
|
/**
|
|
@@ -2340,6 +2372,21 @@ export declare type DesignUiConfig = {
|
|
|
2340
2372
|
* Максимальная глубина сканирования директорий для сбора пакетов промпта ИИ; более глубокая вложенность пропускается
|
|
2341
2373
|
*/
|
|
2342
2374
|
promptScanDepth?: number;
|
|
2375
|
+
/**
|
|
2376
|
+
* List of library names to exclude from the ai-prompt.md file /
|
|
2377
|
+
* Список названий библиотек, исключаемых из файла ai-prompt.md
|
|
2378
|
+
*/
|
|
2379
|
+
promptExclude?: string | string[];
|
|
2380
|
+
/**
|
|
2381
|
+
* List of library names to include in the ai-prompt.md file; if specified, only these libraries will be included /
|
|
2382
|
+
* Список названий библиотек для включения в файл ai-prompt.md; если указано, включаются только эти библиотеки
|
|
2383
|
+
*/
|
|
2384
|
+
promptInclude?: string | string[];
|
|
2385
|
+
/**
|
|
2386
|
+
* Flag indicating whether to include only packages listed in package.json in the ai-prompt.md file /
|
|
2387
|
+
* Флаг, указывающий, следует ли включать в файл ai-prompt.md только пакеты, указанные в package.json
|
|
2388
|
+
*/
|
|
2389
|
+
promptPackageOnly?: boolean;
|
|
2343
2390
|
/** AI provider type for generating content / Тип ИИ-провайдера для генерации контента */
|
|
2344
2391
|
aiType?: AiType;
|
|
2345
2392
|
/** AI model name for generating content / Название модели ИИ для генерации контента */
|
|
@@ -2715,6 +2762,129 @@ export declare type GitFileItem = {
|
|
|
2715
2762
|
*/
|
|
2716
2763
|
export declare type GitFileList = GitFileItem[];
|
|
2717
2764
|
|
|
2765
|
+
/**
|
|
2766
|
+
* Class for managing entries in `.gitignore` file.
|
|
2767
|
+
*
|
|
2768
|
+
* Класс для управления записями в файле `.gitignore`.
|
|
2769
|
+
*/
|
|
2770
|
+
export declare class GitIgnore {
|
|
2771
|
+
/** Comment heading for the added section / Заголовок-комментарий для добавляемой секции */
|
|
2772
|
+
protected comment?: string;
|
|
2773
|
+
/** Cached content of the .gitignore file / Кэшированное содержимое файла .gitignore */
|
|
2774
|
+
protected content?: string;
|
|
2775
|
+
/** Path to .gitignore file / Путь к файлу .gitignore */
|
|
2776
|
+
protected gitignorePath: PropertiesFilePath;
|
|
2777
|
+
/** List of paths to ignore / Список путей для игнорирования */
|
|
2778
|
+
protected paths: string[];
|
|
2779
|
+
/**
|
|
2780
|
+
* Constructor for GitIgnore.
|
|
2781
|
+
*
|
|
2782
|
+
* Конструктор для GitIgnore.
|
|
2783
|
+
* @param paths optional path or list of paths to ignore / опциональный путь или список путей для добавления в игнорируемые
|
|
2784
|
+
* @param comment optional comment heading for the added paths / опциональный заголовок-комментарий для добавляемых путей
|
|
2785
|
+
* @param gitignorePath optional path to .gitignore file / опциональный путь к файлу .gitignore
|
|
2786
|
+
*/
|
|
2787
|
+
constructor(paths?: string | string[], comment?: string, gitignorePath?: PropertiesFilePath);
|
|
2788
|
+
/**
|
|
2789
|
+
* Returns current comment heading.
|
|
2790
|
+
*
|
|
2791
|
+
* Возвращает текущий заголовок-комментарий.
|
|
2792
|
+
* @returns comment string or undefined / строка комментария или undefined
|
|
2793
|
+
*/
|
|
2794
|
+
getComment(): string | undefined;
|
|
2795
|
+
/**
|
|
2796
|
+
* Sets comment heading for the added section.
|
|
2797
|
+
*
|
|
2798
|
+
* Устанавливает заголовок-комментарий для добавляемой секции.
|
|
2799
|
+
* @param comment optional comment string / опциональная строка комментария
|
|
2800
|
+
* @returns this instance / этот экземпляр
|
|
2801
|
+
*/
|
|
2802
|
+
setComment(comment?: string): this;
|
|
2803
|
+
/**
|
|
2804
|
+
* Reads and caches the content of the .gitignore file.
|
|
2805
|
+
*
|
|
2806
|
+
* Считывает и кэширует содержимое файла .gitignore.
|
|
2807
|
+
* @returns file content string / строка содержимого файла
|
|
2808
|
+
*/
|
|
2809
|
+
getContent(): string;
|
|
2810
|
+
/**
|
|
2811
|
+
* Returns path to .gitignore file.
|
|
2812
|
+
*
|
|
2813
|
+
* Возвращает путь к файлу .gitignore.
|
|
2814
|
+
* @returns path to .gitignore / путь к .gitignore
|
|
2815
|
+
*/
|
|
2816
|
+
getGitignorePath(): PropertiesFilePath;
|
|
2817
|
+
/**
|
|
2818
|
+
* Sets path to .gitignore file.
|
|
2819
|
+
*
|
|
2820
|
+
* Устанавливает путь к файлу .gitignore.
|
|
2821
|
+
* @param gitignorePath path to .gitignore file / путь к файлу .gitignore
|
|
2822
|
+
* @returns this instance / этот экземпляр
|
|
2823
|
+
*/
|
|
2824
|
+
setGitignorePath(gitignorePath: PropertiesFilePath): this;
|
|
2825
|
+
/**
|
|
2826
|
+
* Returns current list of paths to ignore.
|
|
2827
|
+
*
|
|
2828
|
+
* Возвращает текущий список путей для игнорирования.
|
|
2829
|
+
* @returns list of paths / список путей
|
|
2830
|
+
*/
|
|
2831
|
+
getPaths(): string[];
|
|
2832
|
+
/**
|
|
2833
|
+
* Replaces current list of paths with new paths.
|
|
2834
|
+
*
|
|
2835
|
+
* Заменяет текущий список путей новым набором путей.
|
|
2836
|
+
* @param paths new path or list of paths / новый путь или список путей
|
|
2837
|
+
* @returns this instance / этот экземпляр
|
|
2838
|
+
*/
|
|
2839
|
+
setPaths(paths: string | string[]): this;
|
|
2840
|
+
/**
|
|
2841
|
+
* Appends paths to the current list of paths.
|
|
2842
|
+
*
|
|
2843
|
+
* Добавляет пути к текущему списку путей.
|
|
2844
|
+
* @param paths path or list of paths to append / путь или список путей для добавления
|
|
2845
|
+
* @returns this instance / этот экземпляр
|
|
2846
|
+
*/
|
|
2847
|
+
addPaths(paths: string | string[]): this;
|
|
2848
|
+
/**
|
|
2849
|
+
* Resets cached content.
|
|
2850
|
+
*
|
|
2851
|
+
* Сбрасывает кэшированное содержимое.
|
|
2852
|
+
* @returns this instance / этот экземпляр
|
|
2853
|
+
*/
|
|
2854
|
+
resetContent(): this;
|
|
2855
|
+
/**
|
|
2856
|
+
* Adds paths to .gitignore if they are not already present.
|
|
2857
|
+
*
|
|
2858
|
+
* Добавляет пути в .gitignore, если они еще не присутствуют.
|
|
2859
|
+
* @returns true if .gitignore was updated, false otherwise / true, если .gitignore был обновлен, иначе false
|
|
2860
|
+
*/
|
|
2861
|
+
make(): boolean;
|
|
2862
|
+
/**
|
|
2863
|
+
* Returns comment lines array to insert into .gitignore, or empty array if not applicable.
|
|
2864
|
+
*
|
|
2865
|
+
* Возвращает массив строк комментария для вставки в .gitignore или пустой массив, если комментарий не требуется.
|
|
2866
|
+
* @returns array with comment string or empty array / массив со строкой комментария или пустой массив
|
|
2867
|
+
* @protected
|
|
2868
|
+
*/
|
|
2869
|
+
protected getCommentLines(): string[];
|
|
2870
|
+
/**
|
|
2871
|
+
* Splits file content into a list of trimmed lines.
|
|
2872
|
+
*
|
|
2873
|
+
* Разбивает содержимое файла на список строк без пробелов по краям.
|
|
2874
|
+
* @returns array of trimmed lines / массив очищенных строк
|
|
2875
|
+
* @protected
|
|
2876
|
+
*/
|
|
2877
|
+
protected toLines(): string[];
|
|
2878
|
+
/**
|
|
2879
|
+
* Normalizes, deduplicates and filters paths that already exist in .gitignore lines.
|
|
2880
|
+
*
|
|
2881
|
+
* Нормализует, дедуплицирует и отфильтровывает пути, которые уже присутствуют в строках .gitignore.
|
|
2882
|
+
* @returns array of missing paths / массив отсутствующих путей
|
|
2883
|
+
* @protected
|
|
2884
|
+
*/
|
|
2885
|
+
protected toPaths(): string[];
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2718
2888
|
/**
|
|
2719
2889
|
* Class for reading information from Git repository.
|
|
2720
2890
|
*
|
|
@@ -3063,8 +3233,11 @@ export declare class LibraryAiMcpItem {
|
|
|
3063
3233
|
*/
|
|
3064
3234
|
export declare class LibraryAiPrompt {
|
|
3065
3235
|
protected readonly isMcp: boolean;
|
|
3236
|
+
protected readonly isVue: boolean;
|
|
3066
3237
|
/** List of directories to scan. / Список директорий для сканирования. */
|
|
3067
3238
|
protected readonly dirs: string[];
|
|
3239
|
+
/** Set of package names from root package.json for filtering. / Набор имен пакетов из корневого package.json для фильтрации. */
|
|
3240
|
+
protected packageNames?: Set<string>;
|
|
3068
3241
|
/** Regular expression to identify files in directories. / Регулярное выражение для идентификации файлов в директориях. */
|
|
3069
3242
|
protected readonly exFileOnDirs: RegExp;
|
|
3070
3243
|
/** Regular expression to exclude hidden files/directories. / Регулярное выражение для исключения скрытых файлов/директорий. */
|
|
@@ -3075,14 +3248,24 @@ export declare class LibraryAiPrompt {
|
|
|
3075
3248
|
* Конструктор для LibraryAiPrompt.
|
|
3076
3249
|
* @param dirs Additional directories to scan / Дополнительные директории для сканирования
|
|
3077
3250
|
* @param isMcp Flag indicating whether to generate MCP configuration file / Флаг, указывающий, нужно ли генерировать конфигурационный файл MCP
|
|
3251
|
+
* @param isVue Flag indicating whether to include Vue component prompt rules / Флаг, указывающий, нужно ли включать правила для Vue-компонентов
|
|
3078
3252
|
*/
|
|
3079
|
-
constructor(dirs?: string[], isMcp?: boolean);
|
|
3253
|
+
constructor(dirs?: string[], isMcp?: boolean, isVue?: boolean);
|
|
3080
3254
|
/**
|
|
3081
3255
|
* Main method to generate the AI prompt file.
|
|
3082
3256
|
*
|
|
3083
3257
|
* Основной метод для генерации файла промпта ИИ.
|
|
3084
3258
|
*/
|
|
3085
3259
|
make(): void;
|
|
3260
|
+
/**
|
|
3261
|
+
* Checks whether the library should be excluded from the ai-prompt.md file based on configuration.
|
|
3262
|
+
*
|
|
3263
|
+
* Проверяет, должна ли библиотека быть исключена из файла ai-prompt.md на основе конфигурации.
|
|
3264
|
+
* @param item prompt item to check / элемент промпта для проверки
|
|
3265
|
+
* @returns true if item should be excluded / true, если элемент должен быть исключен
|
|
3266
|
+
* @protected
|
|
3267
|
+
*/
|
|
3268
|
+
protected isExclude(item: LibraryAiPromptItem): boolean;
|
|
3086
3269
|
/**
|
|
3087
3270
|
* Checks if there are any files in the provided list.
|
|
3088
3271
|
*
|
|
@@ -3092,6 +3275,15 @@ export declare class LibraryAiPrompt {
|
|
|
3092
3275
|
* @protected
|
|
3093
3276
|
*/
|
|
3094
3277
|
protected isFileOnDirs(dirs: string[]): boolean;
|
|
3278
|
+
/**
|
|
3279
|
+
* Checks whether the library is present in the root package.json dependencies.
|
|
3280
|
+
*
|
|
3281
|
+
* Проверяет, присутствует ли библиотека в зависимостях корневого package.json.
|
|
3282
|
+
* @param item prompt item to check / элемент промпта для проверки
|
|
3283
|
+
* @returns true if library is found in package.json / true, если библиотека найдена в package.json
|
|
3284
|
+
* @protected
|
|
3285
|
+
*/
|
|
3286
|
+
protected isInPackage(item: LibraryAiPromptItem): boolean;
|
|
3095
3287
|
/**
|
|
3096
3288
|
* Retrieves the final self-audit prompt for AI code verification.
|
|
3097
3289
|
*
|
|
@@ -3112,10 +3304,10 @@ export declare class LibraryAiPrompt {
|
|
|
3112
3304
|
* Retrieves the Vue component implementation prompt.
|
|
3113
3305
|
*
|
|
3114
3306
|
* Получает промпт по реализации Vue-компонентов.
|
|
3115
|
-
* @returns formatted Vue prompt or
|
|
3307
|
+
* @returns array with formatted Vue prompt or empty array / массив с отформатированным промптом Vue или пустой массив
|
|
3116
3308
|
* @protected
|
|
3117
3309
|
*/
|
|
3118
|
-
protected getVuePrompt(): string;
|
|
3310
|
+
protected getVuePrompt(): string[];
|
|
3119
3311
|
/**
|
|
3120
3312
|
* Retrieves the global code implementation prompt.
|
|
3121
3313
|
*
|
|
@@ -3135,6 +3327,14 @@ export declare class LibraryAiPrompt {
|
|
|
3135
3327
|
* @protected
|
|
3136
3328
|
*/
|
|
3137
3329
|
protected getList(dirs?: string[], path?: string[], limit?: number): LibraryAiPromptItem[];
|
|
3330
|
+
/**
|
|
3331
|
+
* Retrieves the set of package names defined in the root package.json.
|
|
3332
|
+
*
|
|
3333
|
+
* Получает набор имен пакетов, определенных в корневом package.json.
|
|
3334
|
+
* @returns set of package names / набор имен пакетов
|
|
3335
|
+
* @protected
|
|
3336
|
+
*/
|
|
3337
|
+
protected getPackageNames(): Set<string>;
|
|
3138
3338
|
/**
|
|
3139
3339
|
* Retrieves the prompt item for the current repository root if it contains prompt data.
|
|
3140
3340
|
*
|
|
@@ -3143,6 +3343,13 @@ export declare class LibraryAiPrompt {
|
|
|
3143
3343
|
* @protected
|
|
3144
3344
|
*/
|
|
3145
3345
|
protected getRootItem(): LibraryAiPromptItem | undefined;
|
|
3346
|
+
/**
|
|
3347
|
+
* Adds all files and directories generated by this script to .gitignore.
|
|
3348
|
+
*
|
|
3349
|
+
* Добавляет все файлы и директории, сгенерированные этим скриптом, в .gitignore.
|
|
3350
|
+
* @protected
|
|
3351
|
+
*/
|
|
3352
|
+
protected initGitIgnore(): void;
|
|
3146
3353
|
/**
|
|
3147
3354
|
* Writes the collected prompts to a file.
|
|
3148
3355
|
*
|
|
@@ -3320,12 +3527,38 @@ export declare class LibraryAiPromptItem {
|
|
|
3320
3527
|
protected getScreenshotList(): string[] | undefined;
|
|
3321
3528
|
/**
|
|
3322
3529
|
* Formats and returns the types section for the prompt.
|
|
3530
|
+
* Copies the types file to the root types directory and links to the copy.
|
|
3323
3531
|
*
|
|
3324
3532
|
* Форматирует и возвращает секцию типов для промпта.
|
|
3533
|
+
* Копирует файл типов в корневую директорию типов и создает ссылку на копию.
|
|
3325
3534
|
* @returns formatted types reference or undefined / отформатированная ссылка на типы или undefined
|
|
3326
3535
|
* @protected
|
|
3327
3536
|
*/
|
|
3328
3537
|
protected getTypes(): string | undefined;
|
|
3538
|
+
/**
|
|
3539
|
+
* Returns the copied types file name based on the project name.
|
|
3540
|
+
*
|
|
3541
|
+
* Возвращает имя скопированного файла типов на основе названия проекта.
|
|
3542
|
+
* @returns file name / имя файла
|
|
3543
|
+
* @protected
|
|
3544
|
+
*/
|
|
3545
|
+
protected getTypesFileName(): string;
|
|
3546
|
+
/**
|
|
3547
|
+
* Returns path segments for the copied types file in the root types directory.
|
|
3548
|
+
*
|
|
3549
|
+
* Возвращает сегменты пути для скопированного файла типов в корневой директории типов.
|
|
3550
|
+
* @returns target path segments / сегменты целевого пути
|
|
3551
|
+
* @protected
|
|
3552
|
+
*/
|
|
3553
|
+
protected getTypesPath(): string[];
|
|
3554
|
+
/**
|
|
3555
|
+
* Copies the types file to the target destination in the project root.
|
|
3556
|
+
*
|
|
3557
|
+
* Копирует файл типов в целевое назначение в корне проекта.
|
|
3558
|
+
* @param targetPath target path segments / сегменты целевого пути
|
|
3559
|
+
* @protected
|
|
3560
|
+
*/
|
|
3561
|
+
protected copyTypes(targetPath: string[]): void;
|
|
3329
3562
|
/**
|
|
3330
3563
|
* Reads content of a file by its name relative to the item's directory.
|
|
3331
3564
|
*
|
|
@@ -3749,6 +3982,14 @@ export declare class PropertiesFile {
|
|
|
3749
3982
|
* @param path path to the directory/ путь к директории
|
|
3750
3983
|
*/
|
|
3751
3984
|
static toSep(path: string): PropertiesFilePath;
|
|
3985
|
+
/**
|
|
3986
|
+
* Converts the path into an absolute file URL for dynamic ESM imports.
|
|
3987
|
+
*
|
|
3988
|
+
* Преобразует путь в абсолютный file URL для динамических импортов ESM.
|
|
3989
|
+
* @param path path to the file or directory / путь к файлу или директории
|
|
3990
|
+
* @returns file URL string / строка file URL
|
|
3991
|
+
*/
|
|
3992
|
+
static toUrl(path: PropertiesFilePath): string;
|
|
3752
3993
|
/**
|
|
3753
3994
|
* Reads the contents of the directory.
|
|
3754
3995
|
*
|