tnp 21.0.261 → 21.0.262

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 (117) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/fesm2022/tnp-browser.mjs +7 -2
  3. package/browser/fesm2022/tnp-browser.mjs.map +1 -1
  4. package/browser/package.json +1 -1
  5. package/browser/types/tnp-browser.d.ts +1 -1
  6. package/browser-prod/fesm2022/tnp-browser-prod.mjs +7 -2
  7. package/browser-prod/fesm2022/tnp-browser-prod.mjs.map +1 -1
  8. package/browser-prod/package.json +1 -1
  9. package/browser-prod/types/tnp-browser-prod.d.ts +1 -1
  10. package/cli.js +198 -75
  11. package/global-typings.d.ts +1 -1
  12. package/global-typings.js +0 -3
  13. package/global-typings.js.map +1 -1
  14. package/lib/app-utils.d.ts +3 -0
  15. package/lib/app-utils.js +14 -1
  16. package/lib/app-utils.js.map +1 -1
  17. package/lib/build-info._auto-generated_.d.ts +1 -1
  18. package/lib/build-info._auto-generated_.js +1 -1
  19. package/lib/constants.d.ts +1 -1
  20. package/lib/constants.js +1 -1
  21. package/lib/constants.js.map +1 -1
  22. package/lib/package.json +1 -1
  23. package/lib/project/abstract/artifacts/artifacts-manager.js +1 -0
  24. package/lib/project/abstract/artifacts/artifacts-manager.js.map +1 -1
  25. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js +24 -3
  26. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
  27. package/lib/project/abstract/ignore-hide.js +1 -1
  28. package/lib/project/abstract/ignore-hide.js.map +1 -1
  29. package/lib/project/abstract/project-resolve.js +6 -1
  30. package/lib/project/abstract/project-resolve.js.map +1 -1
  31. package/lib/project/abstract/quick-fixes.js +6 -37
  32. package/lib/project/abstract/quick-fixes.js.map +1 -1
  33. package/lib/project/abstract/refactor.js +3 -3
  34. package/lib/project/abstract/refactor.js.map +1 -1
  35. package/lib/project/abstract/taonJson.js +6 -0
  36. package/lib/project/abstract/taonJson.js.map +1 -1
  37. package/lib/project/cli/cli-REFACTOR.js +1 -0
  38. package/lib/project/cli/cli-REFACTOR.js.map +1 -1
  39. package/lib/project/cli/cli-_GLOBAL_.js +27 -18
  40. package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
  41. package/lib-esm/app.electron.js +0 -108
  42. package/lib-esm/app.electron.js.map +1 -1
  43. package/lib-esm/app.hosts.d.ts +0 -3
  44. package/lib-esm/app.hosts.js +0 -52
  45. package/lib-esm/app.hosts.js.map +1 -1
  46. package/lib-esm/app.js +0 -280
  47. package/lib-esm/app.js.map +1 -1
  48. package/lib-esm/app.vscode.d.ts +0 -7
  49. package/lib-esm/app.vscode.js +0 -33
  50. package/lib-esm/app.vscode.js.map +1 -1
  51. package/lib-esm/global-typings.d.ts +0 -47
  52. package/lib-esm/global-typings.js +0 -2
  53. package/lib-esm/global-typings.js.map +1 -1
  54. package/lib-esm/lib/app-utils.d.ts +3 -0
  55. package/lib-esm/lib/app-utils.js +13 -1
  56. package/lib-esm/lib/app-utils.js.map +1 -1
  57. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  58. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  59. package/lib-esm/lib/constants.d.ts +1 -1
  60. package/lib-esm/lib/constants.js +1 -1
  61. package/lib-esm/lib/constants.js.map +1 -1
  62. package/lib-esm/lib/project/abstract/artifacts/artifacts-manager.js +1 -0
  63. package/lib-esm/lib/project/abstract/artifacts/artifacts-manager.js.map +1 -1
  64. package/lib-esm/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js +27 -6
  65. package/lib-esm/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
  66. package/lib-esm/lib/project/abstract/ignore-hide.js +1 -1
  67. package/lib-esm/lib/project/abstract/ignore-hide.js.map +1 -1
  68. package/lib-esm/lib/project/abstract/project-resolve.js +7 -2
  69. package/lib-esm/lib/project/abstract/project-resolve.js.map +1 -1
  70. package/lib-esm/lib/project/abstract/quick-fixes.js +6 -37
  71. package/lib-esm/lib/project/abstract/quick-fixes.js.map +1 -1
  72. package/lib-esm/lib/project/abstract/refactor.js +5 -5
  73. package/lib-esm/lib/project/abstract/refactor.js.map +1 -1
  74. package/lib-esm/lib/project/abstract/taonJson.js +6 -0
  75. package/lib-esm/lib/project/abstract/taonJson.js.map +1 -1
  76. package/lib-esm/lib/project/cli/cli-REFACTOR.js +2 -1
  77. package/lib-esm/lib/project/cli/cli-REFACTOR.js.map +1 -1
  78. package/lib-esm/lib/project/cli/cli-_GLOBAL_.js +28 -19
  79. package/lib-esm/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
  80. package/lib-prod/app-utils.d.ts +3 -0
  81. package/lib-prod/app-utils.js +13 -1
  82. package/lib-prod/app-utils.js.map +1 -1
  83. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  84. package/lib-prod/build-info._auto-generated_.js +1 -1
  85. package/lib-prod/constants.d.ts +1 -1
  86. package/lib-prod/constants.js +1 -1
  87. package/lib-prod/constants.js.map +1 -1
  88. package/lib-prod/package.json +1 -1
  89. package/lib-prod/project/abstract/artifacts/__helpers__/production-build.js.map +1 -1
  90. package/lib-prod/project/abstract/artifacts/artifacts-manager.js +1 -0
  91. package/lib-prod/project/abstract/artifacts/artifacts-manager.js.map +1 -1
  92. package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js +28 -7
  93. package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
  94. package/lib-prod/project/abstract/framework.js.map +1 -1
  95. package/lib-prod/project/abstract/ignore-hide.js +1 -1
  96. package/lib-prod/project/abstract/ignore-hide.js.map +1 -1
  97. package/lib-prod/project/abstract/project-resolve.js +7 -2
  98. package/lib-prod/project/abstract/project-resolve.js.map +1 -1
  99. package/lib-prod/project/abstract/quick-fixes.js +6 -37
  100. package/lib-prod/project/abstract/quick-fixes.js.map +1 -1
  101. package/lib-prod/project/abstract/refactor.js +5 -5
  102. package/lib-prod/project/abstract/refactor.js.map +1 -1
  103. package/lib-prod/project/abstract/taonJson.js +6 -0
  104. package/lib-prod/project/abstract/taonJson.js.map +1 -1
  105. package/lib-prod/project/cli/cli-REFACTOR.js +2 -1
  106. package/lib-prod/project/cli/cli-REFACTOR.js.map +1 -1
  107. package/lib-prod/project/cli/cli-_GLOBAL_.js +27 -18
  108. package/lib-prod/project/cli/cli-_GLOBAL_.js.map +1 -1
  109. package/package.json +1 -1
  110. package/websql/fesm2022/tnp-websql.mjs +7 -2
  111. package/websql/fesm2022/tnp-websql.mjs.map +1 -1
  112. package/websql/package.json +1 -1
  113. package/websql/types/tnp-websql.d.ts +1 -1
  114. package/websql-prod/fesm2022/tnp-websql-prod.mjs +7 -2
  115. package/websql-prod/fesm2022/tnp-websql-prod.mjs.map +1 -1
  116. package/websql-prod/package.json +1 -1
  117. package/websql-prod/types/tnp-websql-prod.d.ts +1 -1
package/cli.js CHANGED
@@ -144019,6 +144019,9 @@ var require_core_imports = __commonJS({
144019
144019
  Object.defineProperty(exports2, "__esModule", { value: true });
144020
144020
  exports2.micromatch = exports2.ps = exports2.rimraf = exports2.ncp = exports2.mkdirp = exports2.chokidar = exports2.fg = exports2.spawn = exports2.psList = exports2.isElevated = exports2.https = exports2.http = exports2.child_process = exports2.os = exports2.fse = exports2.glob = exports2.$ = exports2.json5 = exports2.chalk = exports2.path = exports2.win32Path = exports2.crossPlatformPath = exports2.dateformat = exports2.axios = exports2._ = void 0;
144021
144021
  exports2.requireDefault = requireDefault;
144022
+ exports2.signal = signal;
144023
+ exports2.inject = inject;
144024
+ exports2.Injectable = Injectable;
144022
144025
  var REQUIRE_MAP = {
144023
144026
  //#region @backend
144024
144027
  // jscodeshift: () => require('jscodeshift'), // superheave, does not work in esm
@@ -144185,6 +144188,27 @@ var require_core_imports = __commonJS({
144185
144188
  return pathStringOrPathParts;
144186
144189
  };
144187
144190
  exports2.crossPlatformPath = crossPlatformPath;
144191
+ function signal(initialValue) {
144192
+ let value = initialValue;
144193
+ const fn = (() => value);
144194
+ fn.set = (newValue) => {
144195
+ value = newValue;
144196
+ };
144197
+ return fn;
144198
+ }
144199
+ var instances = /* @__PURE__ */ new Map();
144200
+ function inject(token) {
144201
+ let instance = instances.get(token);
144202
+ if (!instance) {
144203
+ instance = new token();
144204
+ instances.set(token, instance);
144205
+ }
144206
+ return instance;
144207
+ }
144208
+ function Injectable(_options) {
144209
+ return () => {
144210
+ };
144211
+ }
144188
144212
  }
144189
144213
  });
144190
144214
 
@@ -144573,7 +144597,7 @@ var require_constants14 = __commonJS({
144573
144597
  "tnp/node_modules/tnp-core/lib/constants.js"(exports2) {
144574
144598
  "use strict";
144575
144599
  Object.defineProperty(exports2, "__esModule", { value: true });
144576
- exports2.taonActionFromParent = exports2.encoding = exports2.notAllowedProjectNames = exports2.notAllowedNames = exports2.baseTaonDevProjectsNames = exports2.FilesNames = exports2.PREFIXES = exports2.BaselineSiteJoinprefix = exports2.taonSkipCut = exports2.taonCutNextLineCut = exports2.TAGS = exports2.appRelatedFiles = exports2.frontEndOnly = exports2.notNeededForExportFiles = exports2.frontendFiles = exports2.backendWebsqlNodejsFiles = exports2.backendNodejsOnlyFiles = exports2.REGEX_REGION = exports2.extAllowedToReplace = exports2.extForStyles = exports2.extForSassLikeFiles = exports2.extTemplatesFiles = exports2.extAllowedToExportAndReplaceTSJSCodeFiles = exports2.areTrustedForPatchUpdate = exports2.folderName = exports2.tempFoldersName = exports2.fileName = exports2.filesNotAllowedToClean = exports2.LibTypeArr = exports2.GlobalLibTypeName = exports2.LibTypeEnum = exports2.urlRepoTaonContainers = exports2.urlRepoTaon = exports2.dotTnpFolder = exports2.dotTaonFolder = exports2.taonPackageName = exports2.tnpPackageName = exports2.dockerTemplates = exports2.taonProjects = exports2.taonContainers = exports2.isCloudflareWorker = void 0;
144600
+ exports2.taonActionFromParent = exports2.encoding = exports2.notAllowedProjectNames = exports2.notAllowedNames = exports2.baseTaonDevProjectsNames = exports2.FilesNames = exports2.PREFIXES = exports2.BaselineSiteJoinprefix = exports2.taonSkipCut = exports2.taonCutNextLineCut = exports2.TAGS = exports2.appRelatedFiles = exports2.frontEndOnly = exports2.notNeededForExportFiles = exports2.frontendFiles = exports2.stateServiceSuffix = exports2.backendWebsqlNodejsFiles = exports2.backendNodejsOnlyFiles = exports2.REGEX_REGION = exports2.extAllowedToReplace = exports2.extForStyles = exports2.extForSassLikeFiles = exports2.extTemplatesFiles = exports2.extAllowedToExportAndReplaceTSJSCodeFiles = exports2.areTrustedForPatchUpdate = exports2.folderName = exports2.tempFoldersName = exports2.fileName = exports2.filesNotAllowedToClean = exports2.LibTypeArr = exports2.GlobalLibTypeName = exports2.LibTypeEnum = exports2.urlRepoTaonContainers = exports2.urlRepoTaon = exports2.dotTnpFolder = exports2.dotTaonFolder = exports2.taonPackageName = exports2.tnpPackageName = exports2.dockerTemplates = exports2.taonProjects = exports2.taonContainers = exports2.isCloudflareWorker = void 0;
144577
144601
  exports2.isCloudflareWorker = typeof WebSocketPair !== "undefined";
144578
144602
  exports2.taonContainers = "taon-containers";
144579
144603
  exports2.taonProjects = "taon-projects";
@@ -144834,6 +144858,7 @@ var require_constants14 = __commonJS({
144834
144858
  // '.repository.ts', // deprecated in typeorm
144835
144859
  ].map((ext) => `.${ext}`);
144836
144860
  exports2.backendWebsqlNodejsFiles = ["subscriber.ts", "test.ts"].map((ext) => `.${ext}`);
144861
+ exports2.stateServiceSuffix = ".state.service.ts";
144837
144862
  exports2.frontendFiles = [
144838
144863
  "browser.ts",
144839
144864
  "component.ts",
@@ -198824,6 +198849,7 @@ var require_utils_json = __commonJS({
198824
198849
  exports2.UtilsJson = void 0;
198825
198850
  var core_imports_1 = require_core_imports();
198826
198851
  var helpers_1 = require_helpers3();
198852
+ var lodash_namespace_1 = require_lodash_namespace();
198827
198853
  var UtilsJson;
198828
198854
  (function(UtilsJson2) {
198829
198855
  UtilsJson2.getAtrributiesFromJsonWithComments = (jsonDeepPath, fileContent2) => {
@@ -198917,6 +198943,50 @@ var require_utils_json = __commonJS({
198917
198943
  UtilsJson2.readJsonWithComments = (absoluteFilePath, defaultValue = {}) => {
198918
198944
  return helpers_1.Helpers.readJson(absoluteFilePath, defaultValue, true);
198919
198945
  };
198946
+ UtilsJson2.validateLodashPath = (lodashGetPath) => {
198947
+ if (lodash_namespace_1._.isArray(lodashGetPath)) {
198948
+ lodashGetPath = lodashGetPath.join(".");
198949
+ }
198950
+ if (!lodash_namespace_1._.isString(lodashGetPath)) {
198951
+ throw new Error(`Invalid lodash path: path cannot be empty.`);
198952
+ }
198953
+ const path = lodashGetPath.trim();
198954
+ const validPathRegex = /^[a-zA-Z_$][a-zA-Z0-9_$]*(?:\[\d+\])*(?:\.[a-zA-Z_$][a-zA-Z0-9_$]*(?:\[\d+\])*)*$/;
198955
+ if (!validPathRegex.test(path)) {
198956
+ throw new Error(`Invalid lodash path: "${path}"`);
198957
+ }
198958
+ const forbiddenKeys = ["__proto__", "prototype", "constructor"];
198959
+ const parts = path.replace(/\[(\d+)\]/g, ".$1").split(".");
198960
+ const forbiddenKey = parts.find((part) => forbiddenKeys.includes(part));
198961
+ if (forbiddenKey) {
198962
+ throw new Error(`Invalid lodash path: forbidden key "${forbiddenKey}" in "${path}"`);
198963
+ }
198964
+ return path;
198965
+ };
198966
+ UtilsJson2.getValue = (filepath, lodashGetPath, options2) => {
198967
+ options2 = options2 || {};
198968
+ options2.isJsonWithComments = lodash_namespace_1._.isBoolean(options2.isJsonWithComments) ? options2.isJsonWithComments : true;
198969
+ filepath = (0, core_imports_1.crossPlatformPath)(filepath);
198970
+ lodashGetPath = UtilsJson2.validateLodashPath(lodashGetPath);
198971
+ if (!core_imports_1.fse.existsSync(filepath)) {
198972
+ return options2.defaultValue;
198973
+ }
198974
+ const json = options2.isJsonWithComments ? UtilsJson2.readJsonWithComments(filepath) : UtilsJson2.readJson(filepath);
198975
+ return lodash_namespace_1._.get(json, lodashGetPath, options2.defaultValue);
198976
+ };
198977
+ UtilsJson2.setValue = (filepath, lodashGetPath, value, options2) => {
198978
+ options2 = options2 || {};
198979
+ options2.isJsonWithComments = lodash_namespace_1._.isBoolean(options2.isJsonWithComments) ? options2.isJsonWithComments : true;
198980
+ filepath = (0, core_imports_1.crossPlatformPath)(filepath);
198981
+ lodashGetPath = UtilsJson2.validateLodashPath(lodashGetPath);
198982
+ if (!core_imports_1.fse.existsSync(filepath)) {
198983
+ helpers_1.Helpers.warn(`Recreating nonexistent json file: ${filepath}`);
198984
+ helpers_1.Helpers.writeJson(filepath, {});
198985
+ }
198986
+ const json = options2.isJsonWithComments ? UtilsJson2.readJsonWithComments(filepath) : UtilsJson2.readJson(filepath);
198987
+ lodash_namespace_1._.set(json, lodashGetPath, value);
198988
+ helpers_1.Helpers.writeJsonC(filepath, json);
198989
+ };
198920
198990
  })(UtilsJson || (exports2.UtilsJson = UtilsJson = {}));
198921
198991
  }
198922
198992
  });
@@ -338889,6 +338959,7 @@ var require_endpoint_context = __commonJS({
338889
338959
  //#endregion
338890
338960
  //#region fields / flags
338891
338961
  disabledRealtime = false;
338962
+ abstract;
338892
338963
  /**
338893
338964
  * check whether context is inited
338894
338965
  * (with init() function )
@@ -339112,6 +339183,7 @@ var require_endpoint_context = __commonJS({
339112
339183
  this.onlyMigrationRun = initOptions.onlyMigrationRun;
339113
339184
  this.onlyMigrationRevertToTimestamp = initOptions.onlyMigrationRevertToTimestamp;
339114
339185
  this.config = this.configFn({});
339186
+ this.abstract = !!this.config.abstract;
339115
339187
  if (lib_14._.isObject(this.config.database)) {
339116
339188
  this.config.database = models_1.Models.DatabaseConfig.from(this.config.database).databaseConfigTypeORM;
339117
339189
  }
@@ -339120,9 +339192,11 @@ var require_endpoint_context = __commonJS({
339120
339192
  }
339121
339193
  this.config.host = this.host === null ? void 0 : this.host;
339122
339194
  if (this.cloneOptions.overrideHost && !this.cloneOptions.useAsRemoteContext) {
339195
+ this.abstract = false;
339123
339196
  this.config.host = this.cloneOptions.overrideHost;
339124
339197
  }
339125
339198
  if (this.cloneOptions.overrideRemoteHost && this.cloneOptions.useAsRemoteContext) {
339199
+ this.abstract = false;
339126
339200
  this.config.host = this.cloneOptions.overrideRemoteHost;
339127
339201
  }
339128
339202
  if (this.config.host && !this.config.host.startsWith("http://") && !this.config.host.startsWith("https://")) {
@@ -339149,7 +339223,7 @@ var require_endpoint_context = __commonJS({
339149
339223
  }
339150
339224
  }
339151
339225
  }
339152
- if (!this.mode && !this.config.abstract) {
339226
+ if (!this.mode && !this.abstract) {
339153
339227
  const errMsg = `You need to provide host property or useIpcWhenElectron or mark it as abstract`;
339154
339228
  lib_14.Helpers.error(`[taon][Context=${this.contextName}]: ${errMsg}`, false, true);
339155
339229
  process.exit(1);
@@ -339284,7 +339358,7 @@ var require_endpoint_context = __commonJS({
339284
339358
  await this.createInstances(this.config[models_1.Models.ClassTypeKey[classTypeName]], classTypeName);
339285
339359
  }
339286
339360
  if (!this.isRunOrRevertOnlyMigrationAppStart) {
339287
- if (this.mode === "backend-frontend(tcp+udp)" && !this.config.abstract) {
339361
+ if (this.mode === "backend-frontend(tcp+udp)" && !this.abstract) {
339288
339362
  if (lib_122.UtilsOs.isRunningInCloudflareWorker()) {
339289
339363
  this.logFramework && lib_14.Helpers.info(`Using cloudflare fake express server`);
339290
339364
  } else {
@@ -339313,7 +339387,7 @@ var require_endpoint_context = __commonJS({
339313
339387
  }
339314
339388
  await this.initCustomClientMiddlewares();
339315
339389
  }
339316
- if (!this.config.abstract) {
339390
+ if (!this.abstract) {
339317
339391
  this.disabledRealtime = !!(lib_122.UtilsOs.isRunningInCloudflareWorker() || this.config.disabledRealtime);
339318
339392
  if (!this.host) {
339319
339393
  throw `
@@ -339327,7 +339401,7 @@ var require_endpoint_context = __commonJS({
339327
339401
  this.realtime = new realtime_core_1.RealtimeCore(this);
339328
339402
  }
339329
339403
  }
339330
- if (this.config.abstract) {
339404
+ if (this.abstract) {
339331
339405
  this.logFramework && lib_14.Helpers.info(`[taon] Create abstract context: ${this.config.contextName}`);
339332
339406
  } else {
339333
339407
  if (this.isRemoteHost) {
@@ -339961,7 +340035,7 @@ var require_endpoint_context = __commonJS({
339961
340035
  * Check context type
339962
340036
  */
339963
340037
  get contextType() {
339964
- if (this.config.abstract) {
340038
+ if (this.abstract) {
339965
340039
  return "abstract";
339966
340040
  }
339967
340041
  if (this.host) {
@@ -340944,6 +341018,9 @@ var require_create_context = __commonJS({
340944
341018
  get appId() {
340945
341019
  return config.appId;
340946
341020
  },
341021
+ /**
341022
+ * Clone context as remove and make it nob-abstract
341023
+ */
340947
341024
  cloneAsRemote: (cloneOpt) => {
340948
341025
  cloneOpt = cloneOpt || {};
340949
341026
  const opt = {
@@ -340953,6 +341030,9 @@ var require_create_context = __commonJS({
340953
341030
  };
340954
341031
  return createContextFn(configFn, opt);
340955
341032
  },
341033
+ /**
341034
+ * Clone context as normal and make it nob-abstract
341035
+ */
340956
341036
  cloneAsNormal: (cloneOpt) => {
340957
341037
  cloneOpt = cloneOpt || {};
340958
341038
  const opt = {
@@ -341007,7 +341087,7 @@ var require_create_context = __commonJS({
341007
341087
  }
341008
341088
  }
341009
341089
  await endpointContextRef.init(overrideOptions);
341010
- if (config.abstract) {
341090
+ if (endpointContextRef.abstract) {
341011
341091
  throw new Error(`Abstract context can not be initialized`);
341012
341092
  }
341013
341093
  await endpointContextRef.initEntities();
@@ -353479,7 +353559,7 @@ var require_build_info_auto_generated = __commonJS({
353479
353559
  exports2.BUILD_BASE_HREF = "";
353480
353560
  exports2.PROJECT_NPM_NAME = "tnp";
353481
353561
  exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
353482
- exports2.CURRENT_PACKAGE_VERSION = "21.0.261";
353562
+ exports2.CURRENT_PACKAGE_VERSION = "21.0.262";
353483
353563
  }
353484
353564
  });
353485
353565
 
@@ -353747,7 +353827,7 @@ var require_constants19 = __commonJS({
353747
353827
  TaonGeneratedFiles2["index_generated_ts"] = "index._auto-generated_.ts";
353748
353828
  TaonGeneratedFiles2["BUILD_INFO_AUTO_GENERATED_JS"] = "build-info._auto-generated_.js";
353749
353829
  TaonGeneratedFiles2["MIGRATIONS_INFO_MD"] = "migrations-info.md";
353750
- TaonGeneratedFiles2["MOCHA_TESTS_INFO_MD"] = "mocha-tests-info.md";
353830
+ TaonGeneratedFiles2["TESTS_FOLDER_INFO_MD"] = "tests-folder-info.md";
353751
353831
  TaonGeneratedFiles2["SHARED_FOLDER_INFO_TXT"] = "shared_folder_info.txt";
353752
353832
  TaonGeneratedFiles2["APP_HOSTS_TS"] = "app.hosts.ts";
353753
353833
  TaonGeneratedFiles2["LAUNCH_JSON"] = "launch.json";
@@ -360379,7 +360459,7 @@ var require_build_info_auto_generated2 = __commonJS({
360379
360459
  exports2.BUILD_BASE_HREF = "";
360380
360460
  exports2.PROJECT_NPM_NAME = "tnp-helpers";
360381
360461
  exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
360382
- exports2.CURRENT_PACKAGE_VERSION = "21.0.112";
360462
+ exports2.CURRENT_PACKAGE_VERSION = "21.0.113";
360383
360463
  }
360384
360464
  });
360385
360465
 
@@ -362627,7 +362707,7 @@ var require_base_project_resolver = __commonJS({
362627
362707
  }
362628
362708
  let type = this.typeFrom(location2);
362629
362709
  if (type) {
362630
- let resultProject = new this.classFn();
362710
+ let resultProject = new this.classFn(location2);
362631
362711
  const pj = lib_42.Helpers.readJson((0, lib_32.crossPlatformPath)([location2, lib_13.config.file.package_json]));
362632
362712
  resultProject.location = location2;
362633
362713
  resultProject.type = type;
@@ -389184,7 +389264,7 @@ ${lastCommitMessage}
389184
389264
  this._exit();
389185
389265
  }
389186
389266
  //#endregion
389187
- //#region commands / lint
389267
+ //#region commands / lint staged
389188
389268
  /**
389189
389269
  * TODO move somewhere
389190
389270
  */
@@ -389731,12 +389811,14 @@ ${lastCommitMessage}
389731
389811
  this._exit();
389732
389812
  }
389733
389813
  //#endregion
389814
+ //#region commands / is symlink file existed or unexisted
389734
389815
  isSymlinkFileExitedOrUnexisted() {
389735
389816
  const firstArg = (0, lib_42.crossPlatformPath)(this.firstArg);
389736
389817
  const pathToFileOrFolder = lib_32.path.isAbsolute(firstArg) ? firstArg : (0, lib_42.crossPlatformPath)([this.cwd, firstArg]);
389737
389818
  console.log(`is Symlink File Exited Or Unexisted ${lib_22.Helpers.isSymlinkFileExitedOrUnexisted(pathToFileOrFolder)}`);
389738
389819
  this._exit();
389739
389820
  }
389821
+ //#endregion
389740
389822
  //#region commands / remove symlinks
389741
389823
  removeSymlinksDryRun() {
389742
389824
  lib_22.Helpers.removeSymlinks(this.project.nodeModules.path, {
@@ -390399,6 +390481,32 @@ ${lastCommitMessage}
390399
390481
  this._exit(0);
390400
390482
  }
390401
390483
  //#endregion
390484
+ //#region commands / unstaged
390485
+ async unstaged() {
390486
+ const showInfo = (proj) => {
390487
+ if (!proj.git.isGitRoot) {
390488
+ return;
390489
+ }
390490
+ const uncommitedFiles = lib_32.Utils.uniqArray([
390491
+ ...proj.git.uncommitedFiles,
390492
+ ...proj.git.stagedFiles
390493
+ ]);
390494
+ if (uncommitedFiles.length > 0) {
390495
+ console.log(lib_32.chalk.bold(`${proj.name}${proj.name !== proj.nameForNpmPackage ? `(${proj.nameForNpmPackage})` : ""} (${uncommitedFiles.length})`));
390496
+ for (const fileRelative of uncommitedFiles) {
390497
+ console.log(lib_32.chalk.gray.underline(`${proj.basename}/${fileRelative}`));
390498
+ }
390499
+ } else {
390500
+ console.log(lib_32.chalk.blue(`${proj.name}${proj.name !== proj.nameForNpmPackage ? `(${proj.nameForNpmPackage})` : ""} < nothing >`));
390501
+ }
390502
+ for (const child of proj.children) {
390503
+ showInfo(child);
390504
+ }
390505
+ };
390506
+ showInfo(this.project);
390507
+ this._exit();
390508
+ }
390509
+ //#endregion
390402
390510
  //#region split ts into js
390403
390511
  async stripTsTypesIntoJs() {
390404
390512
  lib_22.Helpers.info("Transforming Ts into JS");
@@ -392047,7 +392155,7 @@ var require_app_utils = __commonJS({
392047
392155
  "tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/app-utils.js"(exports2) {
392048
392156
  "use strict";
392049
392157
  Object.defineProperty(exports2, "__esModule", { value: true });
392050
- exports2.replaceImportToAssetsIMport = exports2.replaceAssetsLinksForApp = exports2.errorMainWorkerCommunication = exports2.getCleanImport = exports2.templateFolderForArtifact = exports2.getProxyNgProj = exports2.angularProjProxyPath = exports2.extractFirstLevelRegions = exports2.isTestFile = exports2.ALLOWED_TO_RELEASE = void 0;
392158
+ exports2.replaceImportToAssetsIMport = exports2.replaceAssetsLinksForApp = exports2.errorMainWorkerCommunication = exports2.getCleanImport = exports2.templateFolderForArtifact = exports2.getProxyNgProj = exports2.angularProjProxyPath = exports2.extractFirstLevelRegions = exports2.isTestFile = exports2.isBrowserFilePath = exports2.ALLOWED_TO_RELEASE = void 0;
392051
392159
  exports2.removeCommentsFromScssFile = removeCommentsFromScssFile;
392052
392160
  exports2.createShortName = createShortName;
392053
392161
  exports2.parseAiMdContent = parseAiMdContent;
@@ -392080,6 +392188,16 @@ var require_app_utils = __commonJS({
392080
392188
  options_1.ReleaseArtifactTaon.ANGULAR_NODE_APP
392081
392189
  ]
392082
392190
  };
392191
+ var isBrowserFilePath = (pathToFile, options2) => {
392192
+ if (!pathToFile) {
392193
+ lib_13.Helpers.warn(`[app-utils][isBrowserFilePath] Wrong path "${pathToFile}"`);
392194
+ return false;
392195
+ }
392196
+ options2 = options2 || {};
392197
+ const isFrontendFile = !lib_13._.isUndefined(lib_13.frontEndOnly.find((f) => pathToFile.endsWith(f) && (options2.skipStateService ? !pathToFile.endsWith(lib_13.stateServiceSuffix) : true)));
392198
+ return isFrontendFile;
392199
+ };
392200
+ exports2.isBrowserFilePath = isBrowserFilePath;
392083
392201
  var isTestFile = (filePath2) => {
392084
392202
  if (!filePath2) {
392085
392203
  lib_13.Helpers.warn(`[isTestFile] Checking empty path`, true);
@@ -431768,6 +431886,7 @@ var require_browser_code_cut = __commonJS({
431768
431886
  var lib_52 = require_lib46();
431769
431887
  var app_utils_1 = require_app_utils();
431770
431888
  var constants_12 = require_constants19();
431889
+ var options_1 = require_options2();
431771
431890
  var constants_code_cut_1 = require_constants_code_cut();
431772
431891
  var file_split_process_1 = require_file_split_process();
431773
431892
  var utils_code_cut_1 = require_utils_code_cut();
@@ -431800,10 +431919,12 @@ var require_browser_code_cut = __commonJS({
431800
431919
  * slighted modifed app release dist
431801
431920
  */
431802
431921
  absFileSourcePathBrowserOrWebsqlAPPONLY;
431922
+ //#region fields & getters / raw content
431803
431923
  rawContentForBrowser;
431804
431924
  rawContentForAPPONLYBrowser;
431805
431925
  rawContentBackend;
431806
431926
  rawContentEsmBackend;
431927
+ //#endregion
431807
431928
  //#region recreate app ts presentation files
431808
431929
  static recreateAppTsPresentationFiles;
431809
431930
  get recreateAppTsPresentationFiles() {
@@ -432106,7 +432227,7 @@ var require_browser_code_cut = __commonJS({
432106
432227
  if (lib_52.Helpers.exists(tailWindFileNgProjAbsPath)) {
432107
432228
  const currentContentTailwindCss = lib_32.UtilsFilesFoldersSync.readFile(tailWindFileNgProjAbsPath);
432108
432229
  const newContentTailwindCss = this.project.quickFixes.updateTailwindCssContent(tailWindFileNgProjAbsPath, this.buildOptions);
432109
- if (currentContentTailwindCss !== newContentTailwindCss) {
432230
+ if (!currentContentTailwindCss || currentContentTailwindCss !== newContentTailwindCss) {
432110
432231
  lib_52.Helpers.logInfo(`Updating tailwind.css`);
432111
432232
  lib_32.UtilsFilesFoldersSync.writeFile(tailWindFileNgProjAbsPath, newContentTailwindCss);
432112
432233
  }
@@ -432264,6 +432385,13 @@ ${constants_12.timestampPrefixComment} ${(0, lib_32.dateformat)(/* @__PURE__ */
432264
432385
  this.saveNormalBrowserFile();
432265
432386
  return;
432266
432387
  }
432388
+ if (!this.buildOptions.build.watch && this.buildOptions.release.releaseType && this.buildOptions.release.targetArtifact === options_1.ReleaseArtifactTaon.NPM_LIB_PKG_AND_CLI_TOOL && !this.relativePath.startsWith(`${constants_12.libFromSrc}/`) && ![constants_12.cliTsFromSrc, constants_12.indexTsFromSrc].includes(this.relativePath) && (this.relativePath.endsWith(".ts") || this.relativePath.endsWith(".tsx"))) {
432389
+ lib_32.UtilsFilesFoldersSync.writeFile(this.absoluteBackendEsmDestFilePath, "");
432390
+ lib_32.UtilsFilesFoldersSync.writeFile(this.absoluteBackendDestFilePath, "");
432391
+ lib_32.UtilsFilesFoldersSync.writeFile(this.absFileSourcePathBrowserOrWebsql, "");
432392
+ lib_32.UtilsFilesFoldersSync.writeFile(this.absFileSourcePathBrowserOrWebsqlAPPONLY, "");
432393
+ return;
432394
+ }
432267
432395
  const backendFileSaveMode = !this.isWebsqlMode;
432268
432396
  if (this.isEmptyBrowserFile) {
432269
432397
  this.saveEmptyFile();
@@ -432276,7 +432404,9 @@ ${constants_12.timestampPrefixComment} ${(0, lib_32.dateformat)(/* @__PURE__ */
432276
432404
  if (!lib_42.fse.existsSync(lib_42.path.dirname(this.absoluteBackendDestFilePath))) {
432277
432405
  lib_42.fse.mkdirpSync(lib_42.path.dirname(this.absoluteBackendDestFilePath));
432278
432406
  }
432279
- const isFrontendFile = !lib_42._.isUndefined(lib_32.frontEndOnly.find((f) => this.absoluteBackendDestFilePath.endsWith(f)));
432407
+ const isFrontendFile = (0, app_utils_1.isBrowserFilePath)(this.absoluteBackendDestFilePath, {
432408
+ skipStateService: true
432409
+ });
432280
432410
  if (isFrontendFile) {
432281
432411
  return;
432282
432412
  }
@@ -432297,7 +432427,9 @@ ${constants_12.timestampPrefixComment} ${(0, lib_32.dateformat)(/* @__PURE__ */
432297
432427
  if (!lib_42.fse.existsSync(lib_42.path.dirname(this.absoluteBackendEsmDestFilePath))) {
432298
432428
  lib_42.fse.mkdirpSync(lib_42.path.dirname(this.absoluteBackendEsmDestFilePath));
432299
432429
  }
432300
- const isFrontendFile = !lib_42._.isUndefined(lib_32.frontEndOnly.find((f) => this.absoluteBackendEsmDestFilePath.endsWith(f)));
432430
+ const isFrontendFile = (0, app_utils_1.isBrowserFilePath)(this.absoluteBackendEsmDestFilePath, {
432431
+ skipStateService: true
432432
+ });
432301
432433
  if (isFrontendFile) {
432302
432434
  return;
432303
432435
  }
@@ -442739,6 +442871,7 @@ ${missingDependencies.map((d) => `- ${lib_32.chalk.bold(d)}`).join("\n")}`, fals
442739
442871
  this.project.removeFile(`${constants_12.srcMainProject}/${constants_12.appCloudflareTsFromSrc}`);
442740
442872
  this.project.removeFile(`${constants_12.dotVscodeMainProject}/${constants_12.TaonGeneratedFiles.LAUNCH_BACKUP_JSON}`);
442741
442873
  this.project.removeFile("run-org.js");
442874
+ this.project.removeFile("src/tests/mocha-tests-info.md");
442742
442875
  if (this.project.typeIs(lib_22.LibTypeEnum.CONTAINER)) {
442743
442876
  this.project.removeFile(`${constants_12.srcMainProject}/${constants_12.TaonGeneratedFiles.VARS_SCSS}`);
442744
442877
  }
@@ -448038,7 +448171,12 @@ var require_project_resolve = __commonJS({
448038
448171
  this.devBuildRepository.setEnvOptions(envOptions);
448039
448172
  const alreadyINPool = await this.devBuildRepository.checkIfProjectAlreadyInBuildPool();
448040
448173
  if (alreadyINPool) {
448041
- lib_72.Helpers.error(`Build already in progress for ${this.devBuildRepository.dataToRequest().uniqueKey}`, false, true);
448174
+ lib_72.Helpers.error(`Build already in progress for ${this.devBuildRepository.dataToRequest().uniqueKey} try:
448175
+
448176
+ ${lib_13.chalk.bold(`${lib_13.config.frameworkName} build:lib`)} # to kill other build
448177
+ ${lib_13.chalk.bold(`${lib_13.config.frameworkName} bl`)} # to kill other build
448178
+
448179
+ `, false, true);
448042
448180
  }
448043
448181
  await project.taonBuildObserver.updateAction({
448044
448182
  info: {
@@ -448160,6 +448298,7 @@ var require_refactor = __commonJS({
448160
448298
  var lib_32 = require_lib31();
448161
448299
  var lib_42 = require_lib46();
448162
448300
  var lib_52 = require_lib46();
448301
+ var app_utils_1 = require_app_utils();
448163
448302
  var constants_12 = require_constants19();
448164
448303
  function formatRegions(code) {
448165
448304
  const lines = code.split(/\r?\n/);
@@ -448283,11 +448422,11 @@ var require_refactor = __commonJS({
448283
448422
  }
448284
448423
  return lines.join("\n").trim();
448285
448424
  };
448286
- lib_42.Helpers.getFilesFrom(this.project.pathFor(constants_12.srcMainProject), {
448425
+ lib_22.UtilsFilesFoldersSync.getFilesFrom(this.project.pathFor(constants_12.srcMainProject), {
448287
448426
  recursive: true
448288
448427
  // followSymlinks: false TODO ? maybe ?
448289
448428
  }).filter((f) => {
448290
- return f.endsWith(".ts") && !lib_32._.isUndefined(lib_22.frontendFiles.find((ff) => lib_32.path.basename(f).endsWith(ff)));
448429
+ return (f.endsWith(".ts") || f.endsWith(".tsx")) && (0, app_utils_1.isBrowserFilePath)(f);
448291
448430
  }).forEach((f) => {
448292
448431
  let content2 = lib_42.Helpers.readFile(f);
448293
448432
  if (content2) {
@@ -448736,12 +448875,16 @@ var require_taonJson = __commonJS({
448736
448875
  return this.data?.baseImagesUrl;
448737
448876
  }
448738
448877
  //#endregion
448878
+ //#region get ts docs include
448739
448879
  get genTsDocsInclude() {
448740
448880
  return this.data?.genTsDocsInclude || [];
448741
448881
  }
448882
+ //#endregion
448883
+ //#region git ignore gen docs
448742
448884
  get gitignoreGenDocsFiles() {
448743
448885
  return !!this.data?.gitignoreGenDocsFiles;
448744
448886
  }
448887
+ //#endregion
448745
448888
  //#region store generated assets in repo
448746
448889
  get storeGeneratedAssetsInRepository() {
448747
448890
  return !!this.data?.storeGeneratedAssetsInRepository;
@@ -448770,11 +448913,13 @@ var require_taonJson = __commonJS({
448770
448913
  return res || [];
448771
448914
  }
448772
448915
  //#endregion
448916
+ //#region set dependencies names for npm
448773
448917
  setDependenciesNamesForNpmLib(dependencies) {
448774
448918
  const data = this.data;
448775
448919
  data.dependenciesNamesForNpmLib = dependencies;
448776
448920
  this.saveToDisk("updating dependencies for npm lib");
448777
448921
  }
448922
+ //#endregion
448778
448923
  //#region isomorphic dependencies names for npm lib
448779
448924
  /**
448780
448925
  * External isomorphic dependencies for npm lib
@@ -450219,7 +450364,7 @@ var require_ignore_hide = __commonJS({
450219
450364
  `/${constants_12.srcMainProject}/${constants_12.libFromSrc}/${constants_12.TaonGeneratedFiles.LIB_INFO_MD}`,
450220
450365
  `/${constants_12.srcMainProject}/${constants_12.libFromSrc}/${constants_12.TaonGeneratedFolders.ENV_FOLDER}/**/*.*`,
450221
450366
  `/${constants_12.srcMainProject}/${constants_12.libFromSrc}/${constants_12.migrationsFromLib}/${constants_12.TaonGeneratedFiles.MIGRATIONS_INFO_MD}`,
450222
- `/${constants_12.srcMainProject}/${constants_12.testsFromSrc}/${constants_12.TaonGeneratedFiles.MOCHA_TESTS_INFO_MD}`,
450367
+ `/${constants_12.srcMainProject}/${constants_12.testsFromSrc}/${constants_12.TaonGeneratedFiles.TESTS_FOLDER_INFO_MD}`,
450223
450368
  `/${constants_12.srcMainProject}/${constants_12.assetsFromSrc}/${constants_12.sharedFromAssets}/${constants_12.TaonGeneratedFiles.SHARED_FOLDER_INFO_TXT}`,
450224
450369
  `/${constants_12.srcMainProject}/${constants_12.appAutoGenDocsMd}`,
450225
450370
  `/${constants_12.srcMainProject}/${constants_12.appAutoGenJs}`,
@@ -452026,52 +452171,21 @@ ${constants_12.THIS_IS_GENERATED_STRING}
452026
452171
  const shared_folder_info = this.project.pathFor([
452027
452172
  constants_12.srcMainProject,
452028
452173
  constants_12.testsFromSrc,
452029
- constants_12.TaonGeneratedFiles.MOCHA_TESTS_INFO_MD
452174
+ constants_12.TaonGeneratedFiles.TESTS_FOLDER_INFO_MD
452030
452175
  ]);
452031
452176
  lib_62.Helpers.writeFile(shared_folder_info, `
452032
452177
  ${constants_12.THIS_IS_GENERATED_STRING}
452033
452178
 
452034
452179
  # Purpose of this folder
452035
- Put your backend **mocha** tests (with *.test.ts extension) in this folder or any other *tests*
452036
- folder inside project.
452037
-
452038
- \`\`\`
452039
- /src/lib/my-feature/features.test.ts # -> NOT ok, test omitted
452040
- /src/lib/my-feature/tests/features.test.ts # -> OK
452041
- /src/lib/my-feature/nested-feature/tests/features.test.ts # -> OK
452042
- \`\`\`
452180
+ Put your backend **vite** tests (with *.test.ts extension) in this folder..
452043
452181
 
452044
452182
  # How to test your isomorphic backend ?
452045
452183
 
452046
- 1. By using console select menu:
452047
- \`\`\`
452048
- taon test # single run
452049
- taon test:watch # watch mode
452050
- taon test:debug # and start "attach" VSCode debugger
452051
- taon test:watch:debug # and start "attach" VSCode debugger
452052
- \`\`\`
452053
-
452054
- 2. Directly:
452055
- \`\`\`
452056
- taon mocha # single run
452057
- taon mocha:watch # watch mode
452058
- taon mocha:debug # and start "attach" VSCode debugger
452059
- taon mocha:watch:debug # and start "attach" VSCode debugger
452060
- \`\`\`
452061
-
452062
- # Example
452063
- example.test.ts
452064
- \`\`\`ts
452065
- import { describe, before, it } from 'mocha'
452066
- import { expect } from 'chai';
452067
-
452068
- describe('Set name for function or class', () => {
452184
+ - open file in vscode
452185
+ - Select "Debug And Run" icon
452186
+ - Select "Run Vitest (editor active test file)"
452069
452187
 
452070
- it('should keep normal function name ', () => {
452071
- expect(1).to.be.eq(Number(1));
452072
- })
452073
- });
452074
- \`\`\`
452188
+ ps. you can create .test.ts files anywhere, but this folder is just for tests.
452075
452189
 
452076
452190
  ${constants_12.THIS_IS_GENERATED_STRING}
452077
452191
 
@@ -472539,10 +472653,12 @@ var require_cli_GLOBAL = __commonJS({
472539
472653
  this._exit();
472540
472654
  }
472541
472655
  //#endregion
472656
+ //#region fix dts type for
472542
472657
  fixDtsTypes() {
472543
472658
  this.project.quickFixes.fixDtsTypesForContainer();
472544
472659
  this._exit();
472545
472660
  }
472661
+ //#endregion
472546
472662
  //#region proper watcher test
472547
472663
  async PROPERWATCHERTEST(engine) {
472548
472664
  const cwd = this.cwd;
@@ -473062,6 +473178,7 @@ ${this.project.children.filter((f) => f.git.lastCommitMessage().startsWith(lib_1
473062
473178
  this._exit();
473063
473179
  }
473064
473180
  //#endregion
473181
+ //#region cjs compile for esm only
473065
473182
  async cjscompile() {
473066
473183
  await this.project.framework.fixMissingCjsVersions();
473067
473184
  this._exit();
@@ -473072,6 +473189,7 @@ ${this.project.children.filter((f) => f.git.lastCommitMessage().startsWith(lib_1
473072
473189
  }));
473073
473190
  this._exit();
473074
473191
  }
473192
+ //#endregion
473075
473193
  //#region not for npm / get trusted
473076
473194
  /* */
473077
473195
  /* */
@@ -473482,6 +473600,7 @@ ${this.project.children.filter((f) => f.git.lastCommitMessage().startsWith(lib_1
473482
473600
  copyimage() {
473483
473601
  }
473484
473602
  //#endregion
473603
+ //#region set default autoconfig task name
473485
473604
  setDefaultAutoConfigTaskName() {
473486
473605
  lib_112.Helpers.taskStarted(`Setting default autoReleaseConfig task names...`);
473487
473606
  this.project.children.forEach((child) => {
@@ -473496,6 +473615,8 @@ ${this.project.children.filter((f) => f.git.lastCommitMessage().startsWith(lib_1
473496
473615
  });
473497
473616
  this._exit();
473498
473617
  }
473618
+ //#endregion
473619
+ //#region set ts not chec for app.ts
473499
473620
  setTsNoCheckForAppTs() {
473500
473621
  lib_112.Helpers.taskStarted(`Setting default autoReleaseConfig task names...`);
473501
473622
  this.project.children.forEach((child) => {
@@ -473514,6 +473635,8 @@ ${fileContent2}`;
473514
473635
  });
473515
473636
  this._exit();
473516
473637
  }
473638
+ //#endregion
473639
+ //#region get files/folders from
473517
473640
  getFilesFrom() {
473518
473641
  const pathForFiles = (0, lib_52.crossPlatformPath)([this.cwd, this.firstArg]);
473519
473642
  lib_112.Helpers.taskStarted(`Getting files from path...
@@ -473544,30 +473667,17 @@ ${fileContent2}`;
473544
473667
  lib_112.Helpers.taskDone(`Folders found: ${folders.length}`);
473545
473668
  this._exit();
473546
473669
  }
473670
+ //#endregion
473671
+ //#region dev mode worker
473672
+ // TODO REMOVE THIS
473547
473673
  async devModeWorker() {
473548
473674
  await this.ins.notifyMainWorkerThatDevMode(this.project, options_1.EnvOptions.from({}), `global devModeWorker`);
473549
473675
  lib_112.Helpers.info("waiting");
473550
473676
  await lib_72.UtilsTerminal.pressAnyKeyToContinueAsync();
473551
473677
  this._exit();
473552
473678
  }
473553
- // async aaaaa() {
473554
- // GlobalTaskManager.start('aaa');
473555
- // GlobalTaskManager.addProgress('aaa');
473556
- // GlobalTaskManager.addProgress('aaa');
473557
- // console.info('GLOBAL COMMAND WORKS!');
473558
- // GlobalTaskManager.stop('aaa', () => {
473559
- // this._exit();
473560
- // });
473561
- // }
473562
- // async bbbbb() {
473563
- // Helpers.error(
473564
- // `
473565
- // Not able to publish to npm registry project in ${this.project.location}
473566
- // `,
473567
- // true,
473568
- // true,
473569
- // );
473570
- // }
473679
+ //#endregion
473680
+ //#region question terminal
473571
473681
  async quesitonTerminal() {
473572
473682
  const anwser = await lib_72.UtilsTerminal.basicYesNo(`Approved ? `, true);
473573
473683
  console.log(`awnser: ${anwser}`);
@@ -473577,6 +473687,8 @@ ${fileContent2}`;
473577
473687
  console.log(`awnser1: ${anwser1}`);
473578
473688
  this._exit();
473579
473689
  }
473690
+ //#endregion
473691
+ //#region notyfication test
473580
473692
  async notyficationTest() {
473581
473693
  await lib_32.UtilsOs.sendNotification({
473582
473694
  title: "hello " + (/* @__PURE__ */ new Date()).toString(),
@@ -473586,6 +473698,8 @@ ${fileContent2}`;
473586
473698
  });
473587
473699
  this._exit();
473588
473700
  }
473701
+ //#endregion
473702
+ //#region spinner
473589
473703
  async spinner() {
473590
473704
  console.info("starting spinner");
473591
473705
  constants_12.globalSpinner.instance.start();
@@ -473596,6 +473710,8 @@ ${fileContent2}`;
473596
473710
  constants_12.globalSpinner.instance.stop();
473597
473711
  this._exit();
473598
473712
  }
473713
+ //#endregion
473714
+ //#region not verfied build
473599
473715
  notVerifiedBuilds() {
473600
473716
  lib_112.Helpers.info(`Not verified isomorphic builds:`);
473601
473717
  const pkgs = this.project.framework.notVerifiedIsomorphicPackagesBuildsInNodeModules;
@@ -473603,6 +473719,8 @@ ${fileContent2}`;
473603
473719
  console.log(pkgs);
473604
473720
  this._exit();
473605
473721
  }
473722
+ //#endregion
473723
+ //#region deps tree
473606
473724
  depsTree() {
473607
473725
  lib_112.Helpers.info(`Deps tree`);
473608
473726
  const allNotVerified = this.project.framework.notVerifiedIsomorphicPackagesBuildsInNodeModules;
@@ -473617,16 +473735,21 @@ ${fileContent2}`;
473617
473735
  lib_112.Helpers.warn(`NOT VERIFIED Deps of ${this.project.nameForNpmPackage}: ${notVerfiedDeps.map((c) => c.nameForNpmPackage).join(",")} `);
473618
473736
  this._exit();
473619
473737
  }
473738
+ //#endregion
473739
+ //#region count watchers linux
473620
473740
  async countWatchersLinux() {
473621
473741
  console.log(await lib_32.UtilsOs.getInotifyWatchCount());
473622
473742
  this._exit();
473623
473743
  }
473744
+ //#endregion
473745
+ //#region assets from md
473624
473746
  async assetsFromMd() {
473625
473747
  const mdFileAbsPath = lib_52.path.isAbsolute(this.firstArg) ? (0, lib_52.crossPlatformPath)(this.firstArg) : (0, lib_52.crossPlatformPath)([this.cwd, this.firstArg]);
473626
473748
  const assetsFromMd = lib_22.UtilsMdDocs.getAssetsFromFile(mdFileAbsPath);
473627
473749
  console.log({ assetsFromMd });
473628
473750
  this._exit();
473629
473751
  }
473752
+ //#endregion
473630
473753
  //#region remove background from file
473631
473754
  async rmbg() {
473632
473755
  await this.removeBackground();