@dcl/sdk-commands 7.8.16 → 7.8.18

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.
Files changed (49) hide show
  1. package/dist/commands/build/index.js +1 -1
  2. package/dist/commands/build/index.js.map +1 -1
  3. package/dist/commands/deploy/index.d.ts +1 -6
  4. package/dist/commands/deploy/index.js +8 -27
  5. package/dist/commands/deploy/index.js.map +1 -1
  6. package/dist/commands/export-static/index.js +4 -5
  7. package/dist/commands/export-static/index.js.map +1 -1
  8. package/dist/commands/init/index.js +4 -5
  9. package/dist/commands/init/index.js.map +1 -1
  10. package/dist/commands/quests/index.js +9 -13
  11. package/dist/commands/quests/index.js.map +1 -1
  12. package/dist/commands/start/server/file-watch-notifier.d.ts +1 -1
  13. package/dist/commands/start/server/file-watch-notifier.js +9 -3
  14. package/dist/commands/start/server/file-watch-notifier.js.map +1 -1
  15. package/dist/components/config.js +1 -2
  16. package/dist/components/config.js.map +1 -1
  17. package/dist/logic/account.js +1 -5
  18. package/dist/logic/account.js.map +1 -1
  19. package/dist/logic/args.js +1 -2
  20. package/dist/logic/args.js.map +1 -1
  21. package/dist/logic/bundle.js +7 -34
  22. package/dist/logic/bundle.js.map +1 -1
  23. package/dist/logic/commands.js +2 -6
  24. package/dist/logic/commands.js.map +1 -1
  25. package/dist/logic/error.d.ts +1 -6
  26. package/dist/logic/error.js +0 -6
  27. package/dist/logic/error.js.map +1 -1
  28. package/dist/logic/portable-experience-sw-validations.js +2 -6
  29. package/dist/logic/portable-experience-sw-validations.js.map +1 -1
  30. package/dist/logic/project-files.js +2 -3
  31. package/dist/logic/project-files.js.map +1 -1
  32. package/dist/logic/project-validations.js +2 -3
  33. package/dist/logic/project-validations.js.map +1 -1
  34. package/dist/logic/scene-validations.js +8 -13
  35. package/dist/logic/scene-validations.js.map +1 -1
  36. package/dist/logic/workspace-validations.js +2 -6
  37. package/dist/logic/workspace-validations.js.map +1 -1
  38. package/dist/run-command.js +5 -10
  39. package/dist/run-command.js.map +1 -1
  40. package/package.json +6 -8
  41. package/dist/locales/en.json +0 -75
  42. package/dist/locales/es.json +0 -75
  43. package/dist/locales/zh.json +0 -75
  44. package/dist/logic/debounce.d.ts +0 -1
  45. package/dist/logic/debounce.js +0 -12
  46. package/dist/logic/debounce.js.map +0 -1
  47. package/dist/logic/lang.d.ts +0 -7
  48. package/dist/logic/lang.js +0 -40
  49. package/dist/logic/lang.js.map +0 -1
@@ -1,75 +0,0 @@
1
- {
2
- "errors": {
3
- "command": {
4
- "invalid_folder": "Developer: All commands must be inside a folder",
5
- "invalid_index_file": "Developer: All commands must have an \"index.js\" file inside",
6
- "not_found": "Command \"{{command}}\" is invalid. {{help}}",
7
- "not_valid": "Command does not follow implementation rules:\n* Requires a \"help\" function\n* Requires a \"main\" function"
8
- },
9
- "config": {
10
- "not_provided": "Configuration {{key}} was not provided"
11
- },
12
- "account": {
13
- "invalid_private_key": "Addresses should be 64 characters length."
14
- },
15
- "args": {
16
- "arg_error": "Argument error: {{message}}"
17
- },
18
- "portable_experience_sw_validations": {
19
- "invalid_scene_json": "Invalid scene.json file:\n{{errors}}"
20
- },
21
- "project_files": {
22
- "duplicate_file": "The file {{file}} exists with a different casing. Please manually remove one occurrence",
23
- "invalid_package_json": "Error reading the package.json file: {{error}}",
24
- "package_json_required": "The project root doesn't have a package.json file",
25
- "invalid_project_kind": "The kind of project of the folder {{workingDirectory}} cannot be identified"
26
- },
27
- "scene_validations": {
28
- "invalid_scene_json": "Invalid scene.json file:\n{{errors}}",
29
- "duplicate_parcels": "The scene contains duplicated parcel coordinates, they must all be unique. Check Scene Layout settings, or the scene.json file.",
30
- "base_parcel_required": "You must include the coordinates for a base parcel {{base}} on the parcels attribute in the scene.json file.",
31
- "coordinates_outside_limits": "The coordinates {{x}},{{y}} are re outside of the allowed limits, you cannot publish to those coordinates: \n\n{{constraints}}",
32
- "parcels_not_connected": "Some of the parcels listed in the layout are not adjacent to each other, they must all be connected. Check Scene Layout settings, or the scene.json file.",
33
- "invalid_main_format": "This scene's scene.main has an unsupported format {{main}}",
34
- "max_file_size_exceeded": "Maximum file size exceeded: '{{path}}' is larger than {{maxSizeInMb}}MB"
35
- },
36
- "workspace_validations": {
37
- "invalid_workspace_json": "Invalid {{workspace_file}} file:\n{{errors}}",
38
- "invalid_workspace_json_error": "Error reading the {{workspace_file}} file: {{error}}"
39
- },
40
- "deploy": {
41
- "workspace_not_supported": "This scene is not valid for publishing. Make sure the scene dependencies are all up to date.",
42
- "invalid_project_type": "The project you're trying to publish is not being recognized as a Decentraland scene. Make sure it's valid, and that the scene dependencies are all up to date.",
43
- "invalid_arguments": "You can't set values for both the 'target' and 'target-content' arguments in the same command.",
44
- "failed_to_upload": "Could not upload content: {{error}}"
45
- },
46
- "export_static": {
47
- "base_url_required": "--baseUrl is mandatory when --realmName is provided",
48
- "invalid_realm_name": "--realmName has invalid characters",
49
- "invalid_output_directory": "The destination path {{outputDirectory}} is not a directory"
50
- },
51
- "init": {
52
- "dir_not_empty": "The target directory specified is not empty. Run this command with --yes to override.",
53
- "invalid_arguments": "Specifying --template and --project at the same time is not allowed. Please specify only one of them.",
54
- "invalid_project": "The requested scene doesn't exist empty. Valid options are: {{options}}",
55
- "invalid_template_zip_url": "The zip downloaded has many folder on the root, make sure it has only one folder on the root."
56
- },
57
- "quests": {
58
- "invalid_target": "The provided target is not a valid URL",
59
- "invalid_json": "{{path}} doesn't contain a valid JSON",
60
- "invalid_quest_json": "You provided an invalid Quest JSON. Please check the documentation",
61
- "file_does_not_exist": "File doesn't exist",
62
- "creation_cancelled": "Quest creation was cancelled",
63
- "invalid_address": "You should provide a valid EVM address",
64
- "invalid_uuid": "You should provide a valid uuid"
65
- },
66
- "bundle": {
67
- "scene_main_required": "This scene does not have the required file scene.main",
68
- "scene_runtime_version_required": "The field `\"runtimeVersion\": \"7\"` must be present in the scene's scene.json file. Make sure the scene's code is written in SDK 7.x.",
69
- "tsconfig_required": "This scene does not have the required file {{tsconfig}}",
70
- "no_input_files": "There are no input files to build: {{entrypointSource}}",
71
- "rebuild_failed": "Could not rebuild bundle: {{error}}",
72
- "type_checker_failed": "Typechecker exited with code {{code}}."
73
- }
74
- }
75
- }
@@ -1,75 +0,0 @@
1
- {
2
- "errors": {
3
- "command": {
4
- "invalid_folder": "Desarrollador: Todos los comandos deben estar dentro de una carpeta",
5
- "invalid_index_file": "Desarrollador: Todos los comandos deben tener un archivo \"index.js\" dentro",
6
- "not_found": "El comando \"{{command}}\" no es válido. {{help}}",
7
- "not_valid": "El comando no sigue las reglas de implementación:\n* Requiere una función \"help\"\n* Requiere una función \"main\""
8
- },
9
- "config": {
10
- "not_provided": "La configuración {{key}} no fue proporcionada"
11
- },
12
- "account": {
13
- "invalid_private_key": "Las direcciones deben tener 64 caracteres de longitud."
14
- },
15
- "args": {
16
- "arg_error": "Error de argumento: {{message}}"
17
- },
18
- "portable_experience_sw_validations": {
19
- "invalid_scene_json": "Archivo scene.json inválido:\n{{errors}}"
20
- },
21
- "project_files": {
22
- "duplicate_file": "El archivo {{file}} existe con un formato de mayúsculas diferente. Por favor elimina manualmente una de las ocurrencias",
23
- "invalid_package_json": "Error al leer el archivo package.json: {{error}}",
24
- "package_json_required": "La raíz del proyecto no tiene un archivo package.json",
25
- "invalid_project_kind": "No se puede identificar el tipo de proyecto de la carpeta {{workingDirectory}}"
26
- },
27
- "scene_validations": {
28
- "invalid_scene_json": "Archivo scene.json inválido:\n{{errors}}",
29
- "duplicate_parcels": "La escena contiene coordenadas de parcelas duplicadas, todas deben ser únicas. Revisa la configuración de Diseño de Escena, o el archivo scene.json.",
30
- "base_parcel_required": "Debes incluir las coordenadas para una parcela base {{base}} en el atributo parcels del archivo scene.json.",
31
- "coordinates_outside_limits": "Las coordenadas {{x}},{{y}} están fuera de los límites permitidos, no puedes publicar en esas coordenadas: \n\n{{constraints}}",
32
- "parcels_not_connected": "Algunas de las parcelas listadas en el diseño no son adyacentes entre sí, todas deben estar conectadas. Revisa la configuración de Diseño de Escena, o el archivo scene.json.",
33
- "invalid_main_format": "El scene.main de esta escena tiene un formato no soportado {{main}}",
34
- "max_file_size_exceeded": "Tamaño máximo de archivo excedido: '{{path}}' es más grande que {{maxSizeInMb}}MB"
35
- },
36
- "workspace_validations": {
37
- "invalid_workspace_json": "Archivo {{workspace_file}} inválido:\n{{errors}}",
38
- "invalid_workspace_json_error": "Error al leer el archivo {{workspace_file}}: {{error}}"
39
- },
40
- "deploy": {
41
- "workspace_not_supported": "Esta escena no es válida para publicar. Asegúrate de que todas las dependencias de la escena estén actualizadas.",
42
- "invalid_project_type": "El proyecto que intentas publicar no está siendo reconocido como una escena de Decentraland. Asegúrate de que sea válido y que todas las dependencias de la escena estén actualizadas.",
43
- "invalid_arguments": "No puedes establecer valores para ambos argumentos 'target' y 'target-content' en el mismo comando.",
44
- "failed_to_upload": "No se pudo subir el contenido: {{error}}"
45
- },
46
- "export_static": {
47
- "base_url_required": "--baseUrl es obligatorio cuando se proporciona --realmName",
48
- "invalid_realm_name": "--realmName tiene caracteres inválidos",
49
- "invalid_output_directory": "La ruta de destino {{outputDirectory}} no es un directorio"
50
- },
51
- "init": {
52
- "dir_not_empty": "El directorio de destino especificado no está vacío. Ejecuta este comando con --yes para sobrescribir.",
53
- "invalid_arguments": "No se permite especificar --template y --project al mismo tiempo. Por favor especifica solo uno de ellos.",
54
- "invalid_project": "La escena solicitada no existe. Opciones válidas son: {{options}}",
55
- "invalid_template_zip_url": "El zip descargado tiene muchas carpetas en la raíz, asegúrate de que tenga solo una carpeta en la raíz."
56
- },
57
- "quests": {
58
- "invalid_target": "El objetivo proporcionado no es una URL válida",
59
- "invalid_json": "{{path}} no contiene un JSON válido",
60
- "invalid_quest_json": "Proporcionaste un JSON de Quest inválido. Por favor revisa la documentación",
61
- "file_does_not_exist": "El archivo no existe",
62
- "creation_cancelled": "La creación de la quest fue cancelada",
63
- "invalid_address": "Debes proporcionar una dirección EVM válida",
64
- "invalid_uuid": "Debes proporcionar un uuid válido"
65
- },
66
- "bundle": {
67
- "scene_main_required": "Esta escena no tiene el archivo requerido scene.main",
68
- "scene_runtime_version_required": "El campo `\"runtimeVersion\": \"7\"` debe estar presente en el archivo scene.json de la escena. Asegúrate de que el código de la escena esté escrito en SDK 7.x.",
69
- "tsconfig_required": "Esta escena no tiene el archivo requerido {{tsconfig}}",
70
- "no_input_files": "No hay archivos de entrada para construir: {{entrypointSource}}",
71
- "rebuild_failed": "No se pudo reconstruir el bundle: {{error}}",
72
- "type_checker_failed": "El typechecker salió con código {{code}}."
73
- }
74
- }
75
- }
@@ -1,75 +0,0 @@
1
- {
2
- "errors": {
3
- "command": {
4
- "invalid_folder": "开发者:所有命令必须在文件夹内",
5
- "invalid_index_file": "开发者:所有命令必须包含一个 \"index.js\" 文件",
6
- "not_found": "命令 \"{{command}}\" 无效。{{help}}",
7
- "not_valid": "命令不符合实现规则:\n* 需要 \"help\" 函数\n* 需要 \"main\" 函数"
8
- },
9
- "config": {
10
- "not_provided": "未提供配置 {{key}}"
11
- },
12
- "account": {
13
- "invalid_private_key": "地址长度应为64个字符。"
14
- },
15
- "args": {
16
- "arg_error": "参数错误:{{message}}"
17
- },
18
- "portable_experience_sw_validations": {
19
- "invalid_scene_json": "无效的 scene.json 文件:\n{{errors}}"
20
- },
21
- "project_files": {
22
- "duplicate_file": "文件 {{file}} 存在大小写不同的版本。请手动删除其中一个",
23
- "invalid_package_json": "读取 package.json 文件时出错:{{error}}",
24
- "package_json_required": "项目根目录没有 package.json 文件",
25
- "invalid_project_kind": "无法识别文件夹 {{workingDirectory}} 的项目类型"
26
- },
27
- "scene_validations": {
28
- "invalid_scene_json": "无效的 scene.json 文件:\n{{errors}}",
29
- "duplicate_parcels": "场景包含重复的地块坐标,它们必须都是唯一的。请检查场景布局设置或 scene.json 文件。",
30
- "base_parcel_required": "您必须在 scene.json 文件的 parcels 属性中包含基础地块 {{base}} 的坐标。",
31
- "coordinates_outside_limits": "坐标 {{x}},{{y}} 超出允许的限制,您无法发布到这些坐标:\n\n{{constraints}}",
32
- "parcels_not_connected": "布局中列出的一些地块彼此不相邻,它们必须都连接在一起。请检查场景布局设置或 scene.json 文件。",
33
- "invalid_main_format": "此场景的 scene.main 具有不支持的格式 {{main}}",
34
- "max_file_size_exceeded": "超出最大文件大小:'{{path}}' 大于 {{maxSizeInMb}}MB"
35
- },
36
- "workspace_validations": {
37
- "invalid_workspace_json": "无效的 {{workspace_file}} 文件:\n{{errors}}",
38
- "invalid_workspace_json_error": "读取 {{workspace_file}} 文件时出错:{{error}}"
39
- },
40
- "deploy": {
41
- "workspace_not_supported": "此场景不适合发布。请确保场景依赖项都是最新的。",
42
- "invalid_project_type": "您尝试发布的项目未被识别为 Decentraland 场景。请确保它有效,并且场景依赖项都是最新的。",
43
- "invalid_arguments": "您不能在同一命令中同时为 'target' 和 'target-content' 参数设置值。",
44
- "failed_to_upload": "无法上传内容:{{error}}"
45
- },
46
- "export_static": {
47
- "base_url_required": "提供 --realmName 时,--baseUrl 是必需的",
48
- "invalid_realm_name": "--realmName 包含无效字符",
49
- "invalid_output_directory": "目标路径 {{outputDirectory}} 不是一个目录"
50
- },
51
- "init": {
52
- "dir_not_empty": "指定的目标目录不为空。使用 --yes 运行此命令以覆盖。",
53
- "invalid_arguments": "不允许同时指定 --template 和 --project。请只指定其中一个。",
54
- "invalid_project": "请求的场景不存在。有效选项:{{options}}",
55
- "invalid_template_zip_url": "下载的压缩包在根目录有多个文件夹,请确保根目录只有一个文件夹。"
56
- },
57
- "quests": {
58
- "invalid_target": "提供的目标不是有效的 URL",
59
- "invalid_json": "{{path}} 不包含有效的 JSON",
60
- "invalid_quest_json": "您提供了无效的任务 JSON。请查看文档",
61
- "file_does_not_exist": "文件不存在",
62
- "creation_cancelled": "任务创建已取消",
63
- "invalid_address": "您应该提供一个有效的 EVM 地址",
64
- "invalid_uuid": "您应该提供一个有效的 uuid"
65
- },
66
- "bundle": {
67
- "scene_main_required": "此场景没有必需的文件 scene.main",
68
- "scene_runtime_version_required": "场景的 scene.json 文件中必须存在字段 `\"runtimeVersion\": \"7\"`。请确保场景代码使用 SDK 7.x 编写。",
69
- "tsconfig_required": "此场景没有必需的文件 {{tsconfig}}",
70
- "no_input_files": "没有要构建的输入文件:{{entrypointSource}}",
71
- "rebuild_failed": "无法重新构建包:{{error}}",
72
- "type_checker_failed": "类型检查器退出,代码为 {{code}}。"
73
- }
74
- }
75
- }
@@ -1 +0,0 @@
1
- export declare function debounce<T extends (...args: any[]) => void>(callback: T, delay: number): (...args: Parameters<T>) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.debounce = void 0;
4
- function debounce(callback, delay) {
5
- let debounceTimer;
6
- return (...args) => {
7
- clearTimeout(debounceTimer);
8
- debounceTimer = setTimeout(() => callback(...args), delay);
9
- };
10
- }
11
- exports.debounce = debounce;
12
- //# sourceMappingURL=debounce.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/logic/debounce.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAqC,QAAW,EAAE,KAAa;IACrF,IAAI,aAA6B,CAAA;IACjC,OAAO,CAAC,GAAG,IAAmB,EAAE,EAAE;QAChC,YAAY,CAAC,aAAa,CAAC,CAAA;QAC3B,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;IAC5D,CAAC,CAAA;AACH,CAAC;AAND,4BAMC"}
@@ -1,7 +0,0 @@
1
- export declare enum Language {
2
- EN = "en",
3
- ES = "es",
4
- ZH = "zh"
5
- }
6
- export declare function getLanguage(args: string[]): Language;
7
- export declare function initLanguage(language: Language): Promise<import("i18next").TFunction<"translation", undefined>>;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.initLanguage = exports.getLanguage = exports.Language = void 0;
7
- const path_1 = require("path");
8
- const arg_1 = __importDefault(require("arg"));
9
- const i18next_1 = __importDefault(require("i18next"));
10
- const i18next_fs_backend_1 = __importDefault(require("i18next-fs-backend"));
11
- var Language;
12
- (function (Language) {
13
- Language["EN"] = "en";
14
- Language["ES"] = "es";
15
- Language["ZH"] = "zh";
16
- })(Language = exports.Language || (exports.Language = {}));
17
- function getLanguage(args) {
18
- try {
19
- const language = (0, arg_1.default)({ '--language': String }, { permissive: true, argv: args })['--language'];
20
- return Language[language?.toUpperCase()] || Language.EN;
21
- }
22
- catch (e) {
23
- return Language.EN;
24
- }
25
- }
26
- exports.getLanguage = getLanguage;
27
- function initLanguage(language) {
28
- return i18next_1.default.use(i18next_fs_backend_1.default).init({
29
- lng: language,
30
- fallbackLng: 'en',
31
- interpolation: {
32
- escapeValue: false
33
- },
34
- backend: {
35
- loadPath: (0, path_1.join)(__dirname, '../locales/{{lng}}.json')
36
- }
37
- });
38
- }
39
- exports.initLanguage = initLanguage;
40
- //# sourceMappingURL=lang.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lang.js","sourceRoot":"","sources":["../../src/logic/lang.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA2B;AAC3B,8CAAqB;AACrB,sDAA6B;AAC7B,4EAAwC;AAExC,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;AACX,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAED,SAAgB,WAAW,CAAC,IAAc;IACxC,IAAI;QACF,MAAM,QAAQ,GAAG,IAAA,aAAG,EAAC,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,CAAA;QAC9F,OAAO,QAAQ,CAAC,QAAQ,EAAE,WAAW,EAA2B,CAAC,IAAI,QAAQ,CAAC,EAAE,CAAA;KACjF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,QAAQ,CAAC,EAAE,CAAA;KACnB;AACH,CAAC;AAPD,kCAOC;AAED,SAAgB,YAAY,CAAC,QAAkB;IAC7C,OAAO,iBAAO,CAAC,GAAG,CAAC,4BAAO,CAAC,CAAC,IAAI,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE;YACb,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,yBAAyB,CAAC;SACrD;KACF,CAAC,CAAA;AACJ,CAAC;AAXD,oCAWC"}