@cyberskill/shared 1.47.0 → 1.48.0
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/dist/_tsup-dts-rollup.d.cts +410 -30
- package/dist/_tsup-dts-rollup.d.ts +410 -30
- package/dist/cli.cjs +2136 -1
- package/dist/cli.d.cts +2 -1
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +2056 -1
- package/dist/configs/commitlint/base.cjs +64 -1
- package/dist/configs/commitlint/base.js +7 -1
- package/dist/configs/eslint/base.cjs +121 -1
- package/dist/configs/eslint/base.js +52 -1
- package/dist/configs/eslint/nestjs.cjs +155 -1
- package/dist/configs/eslint/nestjs.js +85 -1
- package/dist/configs/eslint/nextjs.cjs +155 -1
- package/dist/configs/eslint/nextjs.js +85 -1
- package/dist/configs/eslint/nodejs.cjs +156 -1
- package/dist/configs/eslint/nodejs.js +86 -1
- package/dist/configs/eslint/vite-react.cjs +159 -1
- package/dist/configs/eslint/vite-react.js +89 -1
- package/dist/configs/graphql/graphql-codegen.cjs +125 -1
- package/dist/configs/graphql/graphql-codegen.js +64 -1
- package/dist/configs/graphql/index.cjs +126 -1
- package/dist/configs/graphql/index.js +64 -1
- package/dist/configs/i18n/react/i18next.cjs +80 -1
- package/dist/configs/i18n/react/i18next.js +7 -1
- package/dist/configs/i18n/react/index.cjs +81 -1
- package/dist/configs/i18n/react/index.js +7 -1
- package/dist/configs/index.cjs +232 -1
- package/dist/configs/index.js +166 -1
- package/dist/configs/lint-staged/base.cjs +64 -1
- package/dist/configs/lint-staged/base.js +7 -1
- package/dist/configs/vitest/react/e2e.cjs +128 -1
- package/dist/configs/vitest/react/e2e.js +59 -1
- package/dist/configs/vitest/react/unit.cjs +305 -1
- package/dist/configs/vitest/react/unit.js +228 -1
- package/dist/configs/vitest/react/unit.setup.cjs +60 -1
- package/dist/configs/vitest/react/unit.setup.js +8 -1
- package/dist/constants/index.cjs +678 -1
- package/dist/constants/index.d.cts +31 -1
- package/dist/constants/index.d.ts +31 -1
- package/dist/constants/index.js +469 -1
- package/dist/constants/path.cjs +423 -1
- package/dist/constants/path.d.cts +31 -1
- package/dist/constants/path.d.ts +31 -1
- package/dist/constants/path.js +218 -1
- package/dist/constants/response-status.cjs +313 -1
- package/dist/constants/response-status.js +252 -1
- package/dist/index.cjs +4546 -1
- package/dist/index.d.cts +51 -7
- package/dist/index.d.ts +51 -7
- package/dist/index.js +4133 -1
- package/dist/nodejs/index.cjs +2138 -1
- package/dist/nodejs/index.js +2054 -1
- package/dist/nodejs/mongo.cjs +2137 -1
- package/dist/nodejs/mongo.js +2054 -1
- package/dist/react/apollo-client.cjs +177 -1
- package/dist/react/apollo-client.js +116 -1
- package/dist/react/index.cjs +990 -1
- package/dist/react/index.js +876 -1
- package/dist/react/loading.cjs +301 -1
- package/dist/react/loading.js +216 -1
- package/dist/react/next-intl.cjs +744 -1
- package/dist/react/next-intl.js +655 -1
- package/dist/react/storage.cjs +631 -1
- package/dist/react/storage.js +558 -1
- package/dist/typescript/api-response.cjs +48 -1
- package/dist/typescript/apollo.cjs +48 -1
- package/dist/typescript/command.cjs +68 -1
- package/dist/typescript/command.d.cts +4 -0
- package/dist/typescript/command.d.ts +4 -0
- package/dist/typescript/command.js +7 -1
- package/dist/typescript/config.cjs +48 -1
- package/dist/typescript/fs.cjs +48 -0
- package/dist/typescript/fs.d.cts +1 -0
- package/dist/typescript/fs.d.ts +1 -0
- package/dist/typescript/fs.js +0 -0
- package/dist/typescript/graphql-codegen.cjs +48 -1
- package/dist/typescript/index.cjs +175 -1
- package/dist/typescript/index.d.cts +5 -0
- package/dist/typescript/index.d.ts +5 -0
- package/dist/typescript/index.js +151 -1
- package/dist/typescript/loading.cjs +48 -1
- package/dist/typescript/log.cjs +48 -1
- package/dist/typescript/mongo.cjs +164 -1
- package/dist/typescript/mongo.js +145 -1
- package/dist/typescript/next-intl.cjs +48 -1
- package/dist/typescript/react.cjs +48 -1
- package/dist/typescript/serializer.cjs +48 -1
- package/dist/typescript/string.cjs +48 -1
- package/dist/utils/command.cjs +1387 -1
- package/dist/utils/command.d.cts +2 -0
- package/dist/utils/command.d.ts +2 -0
- package/dist/utils/command.js +1287 -1
- package/dist/utils/common.cjs +300 -1
- package/dist/utils/common.js +219 -1
- package/dist/utils/config.cjs +146 -1
- package/dist/utils/config.js +89 -1
- package/dist/utils/fs.cjs +118 -1
- package/dist/utils/fs.d.cts +4 -1
- package/dist/utils/fs.d.ts +4 -1
- package/dist/utils/fs.js +37 -1
- package/dist/utils/index-nodejs.cjs +1738 -1
- package/dist/utils/index-nodejs.d.cts +15 -6
- package/dist/utils/index-nodejs.d.ts +15 -6
- package/dist/utils/index-nodejs.js +1571 -1
- package/dist/utils/index.cjs +727 -1
- package/dist/utils/index.js +625 -1
- package/dist/utils/log.cjs +330 -1
- package/dist/utils/log.js +269 -1
- package/dist/utils/package.cjs +941 -0
- package/dist/utils/package.d.cts +3 -0
- package/dist/utils/package.d.ts +3 -0
- package/dist/utils/package.js +857 -0
- package/dist/utils/path.cjs +291 -0
- package/dist/utils/path.d.cts +6 -0
- package/dist/utils/path.d.ts +6 -0
- package/dist/utils/path.js +191 -0
- package/dist/utils/serializer.cjs +91 -1
- package/dist/utils/serializer.js +30 -1
- package/dist/utils/storage-client.cjs +349 -1
- package/dist/utils/storage-client.js +276 -1
- package/dist/utils/storage-server.cjs +636 -1
- package/dist/utils/storage-server.d.cts +1 -1
- package/dist/utils/storage-server.d.ts +1 -1
- package/dist/utils/storage-server.js +550 -1
- package/dist/utils/string.cjs +152 -1
- package/dist/utils/string.js +75 -1
- package/dist/utils/validate.cjs +90 -1
- package/dist/utils/validate.js +33 -1
- package/package.json +11 -11
- package/dist/utils/npm-package.cjs +0 -1
- package/dist/utils/npm-package.d.cts +0 -5
- package/dist/utils/npm-package.d.ts +0 -5
- package/dist/utils/npm-package.js +0 -1
|
@@ -74,6 +74,18 @@ export { ApolloProvider }
|
|
|
74
74
|
export { ApolloProvider as ApolloProvider_alias_1 }
|
|
75
75
|
export { ApolloProvider as ApolloProvider_alias_2 }
|
|
76
76
|
|
|
77
|
+
declare function appendFileSync(filePath: string, data: string | object, options?: {
|
|
78
|
+
isJson?: boolean;
|
|
79
|
+
}): void;
|
|
80
|
+
export { appendFileSync }
|
|
81
|
+
export { appendFileSync as appendFileSync_alias_1 }
|
|
82
|
+
export { appendFileSync as appendFileSync_alias_2 }
|
|
83
|
+
|
|
84
|
+
declare const BUILD_DIRECTORY = "dist";
|
|
85
|
+
export { BUILD_DIRECTORY }
|
|
86
|
+
export { BUILD_DIRECTORY as BUILD_DIRECTORY_alias_1 }
|
|
87
|
+
export { BUILD_DIRECTORY as BUILD_DIRECTORY_alias_2 }
|
|
88
|
+
|
|
77
89
|
declare class C_Collection<T extends Partial<C_Document>> extends Collection<T> {
|
|
78
90
|
}
|
|
79
91
|
export { C_Collection }
|
|
@@ -102,11 +114,115 @@ export { C_Model }
|
|
|
102
114
|
export { C_Model as C_Model_alias_1 }
|
|
103
115
|
export { C_Model as C_Model_alias_2 }
|
|
104
116
|
|
|
117
|
+
declare function checkPackage(packageName: string): Promise<{
|
|
118
|
+
isInstalled: boolean;
|
|
119
|
+
isCurrentProject: boolean;
|
|
120
|
+
installedPath: string;
|
|
121
|
+
installedVersion: string;
|
|
122
|
+
latestVersion: string;
|
|
123
|
+
file: I_JSON_2;
|
|
124
|
+
}>;
|
|
125
|
+
export { checkPackage }
|
|
126
|
+
export { checkPackage as checkPackage_alias_1 }
|
|
127
|
+
export { checkPackage as checkPackage_alias_2 }
|
|
128
|
+
|
|
105
129
|
declare function clearAllErrorLists(): Promise<void>;
|
|
106
130
|
export { clearAllErrorLists }
|
|
107
131
|
export { clearAllErrorLists as clearAllErrorLists_alias_1 }
|
|
108
132
|
export { clearAllErrorLists as clearAllErrorLists_alias_2 }
|
|
109
133
|
|
|
134
|
+
declare const COMMAND: {
|
|
135
|
+
SIMPLE_GIT_HOOKS: {
|
|
136
|
+
readonly raw: true;
|
|
137
|
+
readonly cmd: string;
|
|
138
|
+
};
|
|
139
|
+
ESLINT_INSPECT: {
|
|
140
|
+
readonly raw: true;
|
|
141
|
+
readonly cmd: string;
|
|
142
|
+
};
|
|
143
|
+
NODE_MODULES_INSPECT: {
|
|
144
|
+
readonly raw: true;
|
|
145
|
+
readonly cmd: string;
|
|
146
|
+
};
|
|
147
|
+
RESET: {
|
|
148
|
+
readonly raw: true;
|
|
149
|
+
readonly cmd: string;
|
|
150
|
+
};
|
|
151
|
+
ESLINT_CHECK: {
|
|
152
|
+
readonly raw: true;
|
|
153
|
+
readonly cmd: string;
|
|
154
|
+
};
|
|
155
|
+
ESLINT_FIX: {
|
|
156
|
+
readonly raw: true;
|
|
157
|
+
readonly cmd: string;
|
|
158
|
+
};
|
|
159
|
+
TYPESCRIPT_CHECK: {
|
|
160
|
+
readonly raw: true;
|
|
161
|
+
readonly cmd: string;
|
|
162
|
+
};
|
|
163
|
+
CYBERSKILL: {
|
|
164
|
+
TEST_UNIT: {
|
|
165
|
+
readonly raw: true;
|
|
166
|
+
readonly cmd: string;
|
|
167
|
+
};
|
|
168
|
+
TEST_E2E: {
|
|
169
|
+
readonly raw: true;
|
|
170
|
+
readonly cmd: string;
|
|
171
|
+
};
|
|
172
|
+
COMMIT_LINT: {
|
|
173
|
+
readonly raw: true;
|
|
174
|
+
readonly cmd: string;
|
|
175
|
+
};
|
|
176
|
+
LINT_STAGED: {
|
|
177
|
+
readonly raw: true;
|
|
178
|
+
readonly cmd: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
CONFIGURE_GIT_HOOK: {
|
|
182
|
+
readonly raw: true;
|
|
183
|
+
readonly cmd: string;
|
|
184
|
+
};
|
|
185
|
+
BUILD: {
|
|
186
|
+
readonly raw: true;
|
|
187
|
+
readonly cmd: string;
|
|
188
|
+
};
|
|
189
|
+
STAGE_BUILD_DIRECTORY: {
|
|
190
|
+
readonly raw: true;
|
|
191
|
+
readonly cmd: string;
|
|
192
|
+
};
|
|
193
|
+
PNPM_INSTALL_STANDARD: {
|
|
194
|
+
readonly raw: true;
|
|
195
|
+
readonly cmd: string;
|
|
196
|
+
};
|
|
197
|
+
PNPM_INSTALL_LEGACY: {
|
|
198
|
+
readonly raw: true;
|
|
199
|
+
readonly cmd: string;
|
|
200
|
+
};
|
|
201
|
+
PNPM_INSTALL_FORCE: {
|
|
202
|
+
readonly raw: true;
|
|
203
|
+
readonly cmd: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
export { COMMAND }
|
|
207
|
+
export { COMMAND as COMMAND_alias_1 }
|
|
208
|
+
export { COMMAND as COMMAND_alias_2 }
|
|
209
|
+
|
|
210
|
+
declare const commandFormatter: {
|
|
211
|
+
raw: (cmd: string) => {
|
|
212
|
+
readonly raw: true;
|
|
213
|
+
readonly cmd: string;
|
|
214
|
+
};
|
|
215
|
+
isRaw(cmd: any): cmd is {
|
|
216
|
+
raw: true;
|
|
217
|
+
cmd: string;
|
|
218
|
+
};
|
|
219
|
+
format(command: T_Command_2, context?: I_CommandContext_2): string;
|
|
220
|
+
formatCLI(command: string, context?: I_CommandContext_2): string;
|
|
221
|
+
};
|
|
222
|
+
export { commandFormatter }
|
|
223
|
+
export { commandFormatter as commandFormatter_alias_1 }
|
|
224
|
+
export { commandFormatter as commandFormatter_alias_2 }
|
|
225
|
+
|
|
110
226
|
declare const commandLog: {
|
|
111
227
|
success: (message: string) => void;
|
|
112
228
|
error: (message: string) => void;
|
|
@@ -118,10 +234,35 @@ export { commandLog }
|
|
|
118
234
|
export { commandLog as commandLog_alias_1 }
|
|
119
235
|
export { commandLog as commandLog_alias_2 }
|
|
120
236
|
|
|
237
|
+
declare const COMMIT_LINT_CLI = "commitlint";
|
|
238
|
+
export { COMMIT_LINT_CLI }
|
|
239
|
+
export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_1 }
|
|
240
|
+
export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_2 }
|
|
241
|
+
|
|
121
242
|
declare function createGraphqlCodegenConfig({ uri, from, to, withComponent, withHOC, withHooks, withMutationFn, withRefetchFn, }: I_GraphqlCodegenConfig_2): CodegenConfig;
|
|
122
243
|
export { createGraphqlCodegenConfig }
|
|
123
244
|
export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_1 }
|
|
124
245
|
|
|
246
|
+
declare const CYBERSKILL_CLI = "cyberskill";
|
|
247
|
+
export { CYBERSKILL_CLI }
|
|
248
|
+
export { CYBERSKILL_CLI as CYBERSKILL_CLI_alias_1 }
|
|
249
|
+
export { CYBERSKILL_CLI as CYBERSKILL_CLI_alias_2 }
|
|
250
|
+
|
|
251
|
+
declare const CYBERSKILL_DIRECTORY: string;
|
|
252
|
+
export { CYBERSKILL_DIRECTORY }
|
|
253
|
+
export { CYBERSKILL_DIRECTORY as CYBERSKILL_DIRECTORY_alias_1 }
|
|
254
|
+
export { CYBERSKILL_DIRECTORY as CYBERSKILL_DIRECTORY_alias_2 }
|
|
255
|
+
|
|
256
|
+
declare const CYBERSKILL_PACKAGE_NAME = "@cyberskill/shared";
|
|
257
|
+
export { CYBERSKILL_PACKAGE_NAME }
|
|
258
|
+
export { CYBERSKILL_PACKAGE_NAME as CYBERSKILL_PACKAGE_NAME_alias_1 }
|
|
259
|
+
export { CYBERSKILL_PACKAGE_NAME as CYBERSKILL_PACKAGE_NAME_alias_2 }
|
|
260
|
+
|
|
261
|
+
declare const CYBERSKILL_STORAGE = ".cyberskill-storage";
|
|
262
|
+
export { CYBERSKILL_STORAGE }
|
|
263
|
+
export { CYBERSKILL_STORAGE as CYBERSKILL_STORAGE_alias_1 }
|
|
264
|
+
export { CYBERSKILL_STORAGE as CYBERSKILL_STORAGE_alias_2 }
|
|
265
|
+
|
|
125
266
|
declare function deepMerge(...configs: (I_Config_2 | I_Config_2[])[]): I_Config_2;
|
|
126
267
|
export { deepMerge }
|
|
127
268
|
export { deepMerge as deepMerge_alias_1 }
|
|
@@ -5917,6 +6058,11 @@ export declare const default_alias_8: (options: UserConfig) => UserConfig;
|
|
|
5917
6058
|
|
|
5918
6059
|
export declare const default_alias_9: (options: UserConfig) => UserConfig;
|
|
5919
6060
|
|
|
6061
|
+
declare function dirname(url: string): string;
|
|
6062
|
+
export { dirname }
|
|
6063
|
+
export { dirname as dirname_alias_1 }
|
|
6064
|
+
export { dirname as dirname_alias_2 }
|
|
6065
|
+
|
|
5920
6066
|
declare enum E_ErrorType {
|
|
5921
6067
|
Error = "error",
|
|
5922
6068
|
Warning = "warning"
|
|
@@ -5930,15 +6076,25 @@ declare enum E_ErrorType_2 {
|
|
|
5930
6076
|
Warning = 'warning',
|
|
5931
6077
|
}
|
|
5932
6078
|
|
|
6079
|
+
declare const ESLINT_CLI = "eslint";
|
|
6080
|
+
export { ESLINT_CLI }
|
|
6081
|
+
export { ESLINT_CLI as ESLINT_CLI_alias_1 }
|
|
6082
|
+
export { ESLINT_CLI as ESLINT_CLI_alias_2 }
|
|
6083
|
+
|
|
6084
|
+
declare const ESLINT_INSPECT_CLI = "@eslint/config-inspector";
|
|
6085
|
+
export { ESLINT_INSPECT_CLI }
|
|
6086
|
+
export { ESLINT_INSPECT_CLI as ESLINT_INSPECT_CLI_alias_1 }
|
|
6087
|
+
export { ESLINT_INSPECT_CLI as ESLINT_INSPECT_CLI_alias_2 }
|
|
6088
|
+
|
|
5933
6089
|
declare function executeCommand(command: string, parser?: typeof parseCommandOutput): Promise<void>;
|
|
5934
6090
|
export { executeCommand }
|
|
5935
6091
|
export { executeCommand as executeCommand_alias_1 }
|
|
5936
6092
|
export { executeCommand as executeCommand_alias_2 }
|
|
5937
6093
|
|
|
5938
|
-
declare const
|
|
5939
|
-
export {
|
|
5940
|
-
export {
|
|
5941
|
-
export {
|
|
6094
|
+
declare const existsSync: (filePath: string) => boolean;
|
|
6095
|
+
export { existsSync }
|
|
6096
|
+
export { existsSync as existsSync_alias_1 }
|
|
6097
|
+
export { existsSync as existsSync_alias_2 }
|
|
5942
6098
|
|
|
5943
6099
|
declare function generateShortId(uuid: string, length?: number): string;
|
|
5944
6100
|
export { generateShortId }
|
|
@@ -5955,11 +6111,57 @@ export { getLatestPackageVersion }
|
|
|
5955
6111
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_1 }
|
|
5956
6112
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_2 }
|
|
5957
6113
|
|
|
6114
|
+
declare function getPackageJson(packageName: string): {
|
|
6115
|
+
path: string;
|
|
6116
|
+
file: I_JSON_2;
|
|
6117
|
+
} | false;
|
|
6118
|
+
export { getPackageJson }
|
|
6119
|
+
export { getPackageJson as getPackageJson_alias_1 }
|
|
6120
|
+
export { getPackageJson as getPackageJson_alias_2 }
|
|
6121
|
+
|
|
6122
|
+
declare function getStorageDir(): string;
|
|
6123
|
+
export { getStorageDir }
|
|
6124
|
+
export { getStorageDir as getStorageDir_alias_1 }
|
|
6125
|
+
export { getStorageDir as getStorageDir_alias_2 }
|
|
6126
|
+
|
|
5958
6127
|
declare function getStoredErrorLists(): Promise<I_ErrorEntry_2[]>;
|
|
5959
6128
|
export { getStoredErrorLists }
|
|
5960
6129
|
export { getStoredErrorLists as getStoredErrorLists_alias_1 }
|
|
5961
6130
|
export { getStoredErrorLists as getStoredErrorLists_alias_2 }
|
|
5962
6131
|
|
|
6132
|
+
declare const GIT_CLI = "git";
|
|
6133
|
+
export { GIT_CLI }
|
|
6134
|
+
export { GIT_CLI as GIT_CLI_alias_1 }
|
|
6135
|
+
export { GIT_CLI as GIT_CLI_alias_2 }
|
|
6136
|
+
|
|
6137
|
+
declare const GIT_COMMIT_EDITMSG = ".git/COMMIT_EDITMSG";
|
|
6138
|
+
export { GIT_COMMIT_EDITMSG }
|
|
6139
|
+
export { GIT_COMMIT_EDITMSG as GIT_COMMIT_EDITMSG_alias_1 }
|
|
6140
|
+
export { GIT_COMMIT_EDITMSG as GIT_COMMIT_EDITMSG_alias_2 }
|
|
6141
|
+
|
|
6142
|
+
declare const GIT_HOOK = ".git/hooks";
|
|
6143
|
+
export { GIT_HOOK }
|
|
6144
|
+
export { GIT_HOOK as GIT_HOOK_alias_1 }
|
|
6145
|
+
export { GIT_HOOK as GIT_HOOK_alias_2 }
|
|
6146
|
+
|
|
6147
|
+
declare const GIT_IGNORE = ".gitignore";
|
|
6148
|
+
export { GIT_IGNORE }
|
|
6149
|
+
export { GIT_IGNORE as GIT_IGNORE_alias_1 }
|
|
6150
|
+
export { GIT_IGNORE as GIT_IGNORE_alias_2 }
|
|
6151
|
+
|
|
6152
|
+
declare function HOOK({ isCurrentProject }: Partial<I_CommandContext_2>): {
|
|
6153
|
+
'pre-push'?: {
|
|
6154
|
+
readonly raw: true;
|
|
6155
|
+
readonly cmd: string;
|
|
6156
|
+
} | undefined;
|
|
6157
|
+
postinstall: string;
|
|
6158
|
+
'pre-commit': string;
|
|
6159
|
+
'commit-msg': string;
|
|
6160
|
+
};
|
|
6161
|
+
export { HOOK }
|
|
6162
|
+
export { HOOK as HOOK_alias_1 }
|
|
6163
|
+
export { HOOK as HOOK_alias_2 }
|
|
6164
|
+
|
|
5963
6165
|
declare interface I_ApolloOptions extends Omit<ApolloClientOptions<unknown>, 'cache'> {
|
|
5964
6166
|
uri?: string;
|
|
5965
6167
|
wsUrl?: string;
|
|
@@ -6017,6 +6219,19 @@ declare interface I_BoxedLogOptions_2 {
|
|
|
6017
6219
|
titleColor?: string;
|
|
6018
6220
|
}
|
|
6019
6221
|
|
|
6222
|
+
declare interface I_CommandContext {
|
|
6223
|
+
isRemote: boolean;
|
|
6224
|
+
isCurrentProject: boolean;
|
|
6225
|
+
}
|
|
6226
|
+
export { I_CommandContext }
|
|
6227
|
+
export { I_CommandContext as I_CommandContext_alias_1 }
|
|
6228
|
+
export { I_CommandContext as I_CommandContext_alias_2 }
|
|
6229
|
+
|
|
6230
|
+
declare interface I_CommandContext_2 {
|
|
6231
|
+
isRemote: boolean;
|
|
6232
|
+
isCurrentProject: boolean;
|
|
6233
|
+
}
|
|
6234
|
+
|
|
6020
6235
|
declare interface I_Config {
|
|
6021
6236
|
[key: string]: string | number | boolean | I_Config | I_Config[];
|
|
6022
6237
|
}
|
|
@@ -6240,6 +6455,17 @@ export { I_Input_UpdateOne }
|
|
|
6240
6455
|
export { I_Input_UpdateOne as I_Input_UpdateOne_alias_1 }
|
|
6241
6456
|
export { I_Input_UpdateOne as I_Input_UpdateOne_alias_2 }
|
|
6242
6457
|
|
|
6458
|
+
declare interface I_JSON {
|
|
6459
|
+
[key: string]: any;
|
|
6460
|
+
}
|
|
6461
|
+
export { I_JSON }
|
|
6462
|
+
export { I_JSON as I_JSON_alias_1 }
|
|
6463
|
+
export { I_JSON as I_JSON_alias_2 }
|
|
6464
|
+
|
|
6465
|
+
declare interface I_JSON_2 {
|
|
6466
|
+
[key: string]: any;
|
|
6467
|
+
}
|
|
6468
|
+
|
|
6243
6469
|
declare interface I_LoadingContext {
|
|
6244
6470
|
isLoading: boolean;
|
|
6245
6471
|
isGlobalLoading: boolean;
|
|
@@ -6473,25 +6699,22 @@ export { initNodePersist }
|
|
|
6473
6699
|
export { initNodePersist as initNodePersist_alias_1 }
|
|
6474
6700
|
export { initNodePersist as initNodePersist_alias_2 }
|
|
6475
6701
|
|
|
6476
|
-
declare function installDependencies(): Promise<void>;
|
|
6477
|
-
export { installDependencies }
|
|
6478
|
-
export { installDependencies as installDependencies_alias_1 }
|
|
6479
|
-
export { installDependencies as installDependencies_alias_2 }
|
|
6480
|
-
|
|
6481
|
-
declare function isCurrentProject(WORKING_DIRECTORY: string, PACKAGE_NAME: string): boolean;
|
|
6482
|
-
export { isCurrentProject }
|
|
6483
|
-
export { isCurrentProject as isCurrentProject_alias_1 }
|
|
6484
|
-
export { isCurrentProject as isCurrentProject_alias_2 }
|
|
6702
|
+
export declare function installDependencies(): Promise<void>;
|
|
6485
6703
|
|
|
6486
6704
|
declare function isJson(str: string): boolean;
|
|
6487
6705
|
export { isJson }
|
|
6488
6706
|
export { isJson as isJson_alias_1 }
|
|
6489
6707
|
export { isJson as isJson_alias_2 }
|
|
6490
6708
|
|
|
6491
|
-
declare function
|
|
6492
|
-
export {
|
|
6493
|
-
export {
|
|
6494
|
-
export {
|
|
6709
|
+
declare function join(...urls: string[]): string;
|
|
6710
|
+
export { join }
|
|
6711
|
+
export { join as join_alias_1 }
|
|
6712
|
+
export { join as join_alias_2 }
|
|
6713
|
+
|
|
6714
|
+
declare const LINT_STAGED_CLI = "lint-staged";
|
|
6715
|
+
export { LINT_STAGED_CLI }
|
|
6716
|
+
export { LINT_STAGED_CLI as LINT_STAGED_CLI_alias_1 }
|
|
6717
|
+
export { LINT_STAGED_CLI as LINT_STAGED_CLI_alias_2 }
|
|
6495
6718
|
|
|
6496
6719
|
declare function Loading({ full, block, className, message, ...rest }: I_LoadingProps_2): JSX_2.Element;
|
|
6497
6720
|
export { Loading }
|
|
@@ -6639,14 +6862,83 @@ export { NextIntlProvider }
|
|
|
6639
6862
|
export { NextIntlProvider as NextIntlProvider_alias_1 }
|
|
6640
6863
|
export { NextIntlProvider as NextIntlProvider_alias_2 }
|
|
6641
6864
|
|
|
6865
|
+
declare const NODE_MODULES = "node_modules";
|
|
6866
|
+
export { NODE_MODULES }
|
|
6867
|
+
export { NODE_MODULES as NODE_MODULES_alias_1 }
|
|
6868
|
+
export { NODE_MODULES as NODE_MODULES_alias_2 }
|
|
6869
|
+
|
|
6870
|
+
declare const NODE_MODULES_INSPECT_CLI = "node_modules-inspect";
|
|
6871
|
+
export { NODE_MODULES_INSPECT_CLI }
|
|
6872
|
+
export { NODE_MODULES_INSPECT_CLI as NODE_MODULES_INSPECT_CLI_alias_1 }
|
|
6873
|
+
export { NODE_MODULES_INSPECT_CLI as NODE_MODULES_INSPECT_CLI_alias_2 }
|
|
6874
|
+
|
|
6875
|
+
declare const PACKAGE_JSON = "package.json";
|
|
6876
|
+
export { PACKAGE_JSON }
|
|
6877
|
+
export { PACKAGE_JSON as PACKAGE_JSON_alias_1 }
|
|
6878
|
+
export { PACKAGE_JSON as PACKAGE_JSON_alias_2 }
|
|
6879
|
+
|
|
6880
|
+
declare const PACKAGE_LOCK_JSON = "package-lock.json";
|
|
6881
|
+
export { PACKAGE_LOCK_JSON }
|
|
6882
|
+
export { PACKAGE_LOCK_JSON as PACKAGE_LOCK_JSON_alias_1 }
|
|
6883
|
+
export { PACKAGE_LOCK_JSON as PACKAGE_LOCK_JSON_alias_2 }
|
|
6884
|
+
|
|
6642
6885
|
declare function parseCommandOutput(output: string): void;
|
|
6643
6886
|
|
|
6887
|
+
declare const PATH: {
|
|
6888
|
+
CYBERSKILL_DIRECTORY: string;
|
|
6889
|
+
WORKING_DIRECTORY: string;
|
|
6890
|
+
TS_CONFIG: string;
|
|
6891
|
+
GIT_IGNORE: string;
|
|
6892
|
+
GIT_HOOK: string;
|
|
6893
|
+
GIT_COMMIT_MSG: string;
|
|
6894
|
+
SIMPLE_GIT_HOOKS: string;
|
|
6895
|
+
PACKAGE_JSON: string;
|
|
6896
|
+
PACKAGE_LOCK_JSON: string;
|
|
6897
|
+
PNPM_LOCK_YAML: string;
|
|
6898
|
+
NODE_MODULES: string;
|
|
6899
|
+
CYBERSKILL: {
|
|
6900
|
+
LINT_STAGED_CONFIG: string;
|
|
6901
|
+
COMMITLINT_CONFIG: string;
|
|
6902
|
+
UNIT_TEST_CONFIG: string;
|
|
6903
|
+
E2E_TEST_CONFIG: string;
|
|
6904
|
+
};
|
|
6905
|
+
};
|
|
6906
|
+
export { PATH }
|
|
6907
|
+
export { PATH as PATH_alias_1 }
|
|
6908
|
+
export { PATH as PATH_alias_2 }
|
|
6909
|
+
|
|
6910
|
+
declare const PNPM_CLI = "pnpm";
|
|
6911
|
+
export { PNPM_CLI }
|
|
6912
|
+
export { PNPM_CLI as PNPM_CLI_alias_1 }
|
|
6913
|
+
export { PNPM_CLI as PNPM_CLI_alias_2 }
|
|
6914
|
+
|
|
6915
|
+
declare const PNPM_DLX_CLI = "pnpm dlx";
|
|
6916
|
+
export { PNPM_DLX_CLI }
|
|
6917
|
+
export { PNPM_DLX_CLI as PNPM_DLX_CLI_alias_1 }
|
|
6918
|
+
export { PNPM_DLX_CLI as PNPM_DLX_CLI_alias_2 }
|
|
6919
|
+
|
|
6920
|
+
declare const PNPM_EXEC_CLI = "pnpm exec";
|
|
6921
|
+
export { PNPM_EXEC_CLI }
|
|
6922
|
+
export { PNPM_EXEC_CLI as PNPM_EXEC_CLI_alias_1 }
|
|
6923
|
+
export { PNPM_EXEC_CLI as PNPM_EXEC_CLI_alias_2 }
|
|
6924
|
+
|
|
6925
|
+
declare const PNPM_LOCK_YAML = "pnpm-lock.yaml";
|
|
6926
|
+
export { PNPM_LOCK_YAML }
|
|
6927
|
+
export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_1 }
|
|
6928
|
+
export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_2 }
|
|
6929
|
+
|
|
6644
6930
|
declare function printBoxedLog<T extends string | I_ErrorEntry_2[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions_2): void;
|
|
6645
6931
|
|
|
6646
|
-
declare
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6932
|
+
declare function readFileSync(filePath: string, options: {
|
|
6933
|
+
asJson: true;
|
|
6934
|
+
}): I_JSON_2;
|
|
6935
|
+
|
|
6936
|
+
declare function readFileSync(filePath: string, options?: {
|
|
6937
|
+
asJson?: false;
|
|
6938
|
+
}): string;
|
|
6939
|
+
export { readFileSync }
|
|
6940
|
+
export { readFileSync as readFileSync_alias_1 }
|
|
6941
|
+
export { readFileSync as readFileSync_alias_2 }
|
|
6650
6942
|
|
|
6651
6943
|
declare function regexSearchMapper(str: string): string;
|
|
6652
6944
|
export { regexSearchMapper }
|
|
@@ -6658,6 +6950,33 @@ export { removeAccent }
|
|
|
6658
6950
|
export { removeAccent as removeAccent_alias_1 }
|
|
6659
6951
|
export { removeAccent as removeAccent_alias_2 }
|
|
6660
6952
|
|
|
6953
|
+
declare function require_2(): NodeJS.Require;
|
|
6954
|
+
export { require_2 as require }
|
|
6955
|
+
export { require_2 as require_alias_1 }
|
|
6956
|
+
export { require_2 as require_alias_2 }
|
|
6957
|
+
|
|
6958
|
+
declare function resolve(...urls: string[]): string;
|
|
6959
|
+
export { resolve }
|
|
6960
|
+
export { resolve as resolve_alias_1 }
|
|
6961
|
+
export { resolve as resolve_alias_2 }
|
|
6962
|
+
|
|
6963
|
+
declare function resolveCommands(input: T_CommandMapInput_2, context?: Partial<I_CommandContext_2>): Promise<{
|
|
6964
|
+
[k: string]: string;
|
|
6965
|
+
}>;
|
|
6966
|
+
export { resolveCommands }
|
|
6967
|
+
export { resolveCommands as resolveCommands_alias_1 }
|
|
6968
|
+
export { resolveCommands as resolveCommands_alias_2 }
|
|
6969
|
+
|
|
6970
|
+
declare function resolveCyberSkillPath(...urls: string[]): string;
|
|
6971
|
+
export { resolveCyberSkillPath }
|
|
6972
|
+
export { resolveCyberSkillPath as resolveCyberSkillPath_alias_1 }
|
|
6973
|
+
export { resolveCyberSkillPath as resolveCyberSkillPath_alias_2 }
|
|
6974
|
+
|
|
6975
|
+
declare function resolveWorkingPath(...urls: string[]): string;
|
|
6976
|
+
export { resolveWorkingPath }
|
|
6977
|
+
export { resolveWorkingPath as resolveWorkingPath_alias_1 }
|
|
6978
|
+
export { resolveWorkingPath as resolveWorkingPath_alias_2 }
|
|
6979
|
+
|
|
6661
6980
|
declare const RESPONSE_STATUS: {
|
|
6662
6981
|
GRAPHQL_PARSE_FAILED: {
|
|
6663
6982
|
CODE: string;
|
|
@@ -6912,6 +7231,11 @@ export { RESPONSE_STATUS }
|
|
|
6912
7231
|
export { RESPONSE_STATUS as RESPONSE_STATUS_alias_1 }
|
|
6913
7232
|
export { RESPONSE_STATUS as RESPONSE_STATUS_alias_2 }
|
|
6914
7233
|
|
|
7234
|
+
declare const RIMRAF_CLI = "rimraf";
|
|
7235
|
+
export { RIMRAF_CLI }
|
|
7236
|
+
export { RIMRAF_CLI as RIMRAF_CLI_alias_1 }
|
|
7237
|
+
export { RIMRAF_CLI as RIMRAF_CLI_alias_2 }
|
|
7238
|
+
|
|
6915
7239
|
declare function saveErrorListToStorage(errorList: I_ErrorEntry_2[]): Promise<void>;
|
|
6916
7240
|
export { saveErrorListToStorage }
|
|
6917
7241
|
export { saveErrorListToStorage as saveErrorListToStorage_alias_1 }
|
|
@@ -6922,6 +7246,16 @@ export { serializer }
|
|
|
6922
7246
|
export { serializer as serializer_alias_1 }
|
|
6923
7247
|
export { serializer as serializer_alias_2 }
|
|
6924
7248
|
|
|
7249
|
+
declare const SIMPLE_GIT_HOOK_CLI = "simple-git-hooks";
|
|
7250
|
+
export { SIMPLE_GIT_HOOK_CLI }
|
|
7251
|
+
export { SIMPLE_GIT_HOOK_CLI as SIMPLE_GIT_HOOK_CLI_alias_1 }
|
|
7252
|
+
export { SIMPLE_GIT_HOOK_CLI as SIMPLE_GIT_HOOK_CLI_alias_2 }
|
|
7253
|
+
|
|
7254
|
+
declare const SIMPLE_GIT_HOOK_JSON = ".simple-git-hooks.json";
|
|
7255
|
+
export { SIMPLE_GIT_HOOK_JSON }
|
|
7256
|
+
export { SIMPLE_GIT_HOOK_JSON as SIMPLE_GIT_HOOK_JSON_alias_1 }
|
|
7257
|
+
export { SIMPLE_GIT_HOOK_JSON as SIMPLE_GIT_HOOK_JSON_alias_2 }
|
|
7258
|
+
|
|
6925
7259
|
declare const storageClient: {
|
|
6926
7260
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
6927
7261
|
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
@@ -6932,11 +7266,6 @@ export { storageClient }
|
|
|
6932
7266
|
export { storageClient as storageClient_alias_1 }
|
|
6933
7267
|
export { storageClient as storageClient_alias_2 }
|
|
6934
7268
|
|
|
6935
|
-
declare const storageDir: string;
|
|
6936
|
-
export { storageDir }
|
|
6937
|
-
export { storageDir as storageDir_alias_1 }
|
|
6938
|
-
export { storageDir as storageDir_alias_2 }
|
|
6939
|
-
|
|
6940
7269
|
declare const storageServer: {
|
|
6941
7270
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
6942
7271
|
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
@@ -6962,6 +7291,33 @@ export { T_Children as T_Children_alias_2 }
|
|
|
6962
7291
|
|
|
6963
7292
|
declare type T_Children_2 = ReactNode | ReactNode[] | ReactElement | JSX.Element | null;
|
|
6964
7293
|
|
|
7294
|
+
declare type T_Command = string | ((context?: I_CommandContext) => string) | {
|
|
7295
|
+
raw: true;
|
|
7296
|
+
cmd: string;
|
|
7297
|
+
};
|
|
7298
|
+
export { T_Command }
|
|
7299
|
+
export { T_Command as T_Command_alias_1 }
|
|
7300
|
+
export { T_Command as T_Command_alias_2 }
|
|
7301
|
+
|
|
7302
|
+
declare type T_Command_2 =
|
|
7303
|
+
| string
|
|
7304
|
+
| ((context?: I_CommandContext_2) => string)
|
|
7305
|
+
| { raw: true; cmd: string };
|
|
7306
|
+
|
|
7307
|
+
declare type T_CommandMap = Record<string, T_Command>;
|
|
7308
|
+
export { T_CommandMap }
|
|
7309
|
+
export { T_CommandMap as T_CommandMap_alias_1 }
|
|
7310
|
+
export { T_CommandMap as T_CommandMap_alias_2 }
|
|
7311
|
+
|
|
7312
|
+
declare type T_CommandMap_2 = Record<string, T_Command_2>;
|
|
7313
|
+
|
|
7314
|
+
declare type T_CommandMapInput = T_CommandMap | ((ctx: I_CommandContext) => T_CommandMap);
|
|
7315
|
+
export { T_CommandMapInput }
|
|
7316
|
+
export { T_CommandMapInput as T_CommandMapInput_alias_1 }
|
|
7317
|
+
export { T_CommandMapInput as T_CommandMapInput_alias_2 }
|
|
7318
|
+
|
|
7319
|
+
declare type T_CommandMapInput_2 = T_CommandMap_2 | ((ctx: I_CommandContext_2) => T_CommandMap_2);
|
|
7320
|
+
|
|
6965
7321
|
declare type T_CreateSlugQueryResponse<T> = T_FilterQuery<T> & {
|
|
6966
7322
|
$or: Array<{
|
|
6967
7323
|
slug: string;
|
|
@@ -7237,10 +7593,22 @@ export { throwResponse }
|
|
|
7237
7593
|
export { throwResponse as throwResponse_alias_1 }
|
|
7238
7594
|
export { throwResponse as throwResponse_alias_2 }
|
|
7239
7595
|
|
|
7240
|
-
declare
|
|
7241
|
-
export {
|
|
7242
|
-
export {
|
|
7243
|
-
export {
|
|
7596
|
+
declare const TSC_CLI = "tsc";
|
|
7597
|
+
export { TSC_CLI }
|
|
7598
|
+
export { TSC_CLI as TSC_CLI_alias_1 }
|
|
7599
|
+
export { TSC_CLI as TSC_CLI_alias_2 }
|
|
7600
|
+
|
|
7601
|
+
declare const TSCONFIG_JSON = "tsconfig.json";
|
|
7602
|
+
export { TSCONFIG_JSON }
|
|
7603
|
+
export { TSCONFIG_JSON as TSCONFIG_JSON_alias_1 }
|
|
7604
|
+
export { TSCONFIG_JSON as TSCONFIG_JSON_alias_2 }
|
|
7605
|
+
|
|
7606
|
+
declare const TSX_CLI = "tsx";
|
|
7607
|
+
export { TSX_CLI }
|
|
7608
|
+
export { TSX_CLI as TSX_CLI_alias_1 }
|
|
7609
|
+
export { TSX_CLI as TSX_CLI_alias_2 }
|
|
7610
|
+
|
|
7611
|
+
export declare function updatePackage(packageName: string): Promise<void>;
|
|
7244
7612
|
|
|
7245
7613
|
declare function useLoading(): I_LoadingContext_2;
|
|
7246
7614
|
export { useLoading }
|
|
@@ -7273,6 +7641,11 @@ export { validate }
|
|
|
7273
7641
|
export { validate as validate_alias_1 }
|
|
7274
7642
|
export { validate as validate_alias_2 }
|
|
7275
7643
|
|
|
7644
|
+
declare const VITEST_CLI = "vitest";
|
|
7645
|
+
export { VITEST_CLI }
|
|
7646
|
+
export { VITEST_CLI as VITEST_CLI_alias_1 }
|
|
7647
|
+
export { VITEST_CLI as VITEST_CLI_alias_2 }
|
|
7648
|
+
|
|
7276
7649
|
declare function withNextIntl<T extends {
|
|
7277
7650
|
children: T_Children_2;
|
|
7278
7651
|
}>(Component: ComponentType<T>): {
|
|
@@ -7291,4 +7664,11 @@ export { WORKING_DIRECTORY }
|
|
|
7291
7664
|
export { WORKING_DIRECTORY as WORKING_DIRECTORY_alias_1 }
|
|
7292
7665
|
export { WORKING_DIRECTORY as WORKING_DIRECTORY_alias_2 }
|
|
7293
7666
|
|
|
7667
|
+
declare function writeFileSync(filePath: string, data: string | object, options?: {
|
|
7668
|
+
isJson?: boolean;
|
|
7669
|
+
}): void;
|
|
7670
|
+
export { writeFileSync }
|
|
7671
|
+
export { writeFileSync as writeFileSync_alias_1 }
|
|
7672
|
+
export { writeFileSync as writeFileSync_alias_2 }
|
|
7673
|
+
|
|
7294
7674
|
export { }
|