@webiny/project 6.4.5 → 6.6.0-alpha.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.
Files changed (141) hide show
  1. package/ProjectSdk.d.ts +6 -5
  2. package/ProjectSdk.js +10 -6
  3. package/ProjectSdk.js.map +1 -1
  4. package/abstractions/features/DeployApp.d.ts +2 -2
  5. package/abstractions/features/DeployApp.js.map +1 -1
  6. package/abstractions/features/DestroyApp.d.ts +4 -4
  7. package/abstractions/features/DestroyApp.js.map +1 -1
  8. package/abstractions/features/GetAppOutput.d.ts +2 -2
  9. package/abstractions/features/GetAppOutput.js.map +1 -1
  10. package/abstractions/features/RefreshApp.d.ts +2 -2
  11. package/abstractions/features/RefreshApp.js.map +1 -1
  12. package/abstractions/features/RunPulumiCommand.d.ts +2 -2
  13. package/abstractions/features/RunPulumiCommand.js.map +1 -1
  14. package/abstractions/features/Serve.d.ts +27 -0
  15. package/abstractions/features/Serve.js +5 -0
  16. package/abstractions/features/Serve.js.map +1 -0
  17. package/abstractions/features/Watch.d.ts +8 -0
  18. package/abstractions/features/Watch.js.map +1 -1
  19. package/abstractions/features/index.d.ts +1 -0
  20. package/abstractions/features/index.js +1 -0
  21. package/abstractions/services/index.d.ts +0 -1
  22. package/abstractions/services/index.js +0 -1
  23. package/createProjectSdkContainer.d.ts +1 -1
  24. package/createProjectSdkContainer.js +6 -33
  25. package/createProjectSdkContainer.js.map +1 -1
  26. package/decorators/index.d.ts +0 -1
  27. package/decorators/index.js +0 -1
  28. package/extensions/AdminApiUrl.d.ts +10 -0
  29. package/extensions/AdminApiUrl.js +21 -0
  30. package/extensions/AdminApiUrl.js.map +1 -0
  31. package/extensions/AdminWebsocketsUrl.d.ts +12 -0
  32. package/extensions/AdminWebsocketsUrl.js +21 -0
  33. package/extensions/AdminWebsocketsUrl.js.map +1 -0
  34. package/extensions/ApiBuildParam.js +2 -2
  35. package/extensions/ApiBuildParam.js.map +1 -1
  36. package/extensions/ApiExtension.js +2 -2
  37. package/extensions/ApiExtension.js.map +1 -1
  38. package/extensions/Project.js +1 -17
  39. package/extensions/Project.js.map +1 -1
  40. package/extensions/index.d.ts +30 -9
  41. package/extensions/index.js +10 -2
  42. package/extensions/index.js.map +1 -1
  43. package/extensions/infra/Encryption.d.ts +10 -0
  44. package/extensions/infra/Encryption.js +36 -0
  45. package/extensions/infra/Encryption.js.map +1 -0
  46. package/extensions/infra/Hashing.d.ts +5 -0
  47. package/extensions/infra/Hashing.js +27 -0
  48. package/extensions/infra/Hashing.js.map +1 -0
  49. package/features/DestroyApp/DestroyApp.d.ts +1 -1
  50. package/features/GetAppOutput/GetAppOutput.d.ts +1 -1
  51. package/features/RefreshApp/RefreshApp.d.ts +1 -1
  52. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +1 -1
  53. package/features/Serve/Serve.d.ts +10 -0
  54. package/features/Serve/Serve.js +15 -0
  55. package/features/Serve/Serve.js.map +1 -0
  56. package/features/Serve/index.d.ts +1 -0
  57. package/features/Serve/index.js +1 -0
  58. package/features/Watch/Watch.d.ts +3 -16
  59. package/features/Watch/Watch.js +4 -86
  60. package/features/Watch/Watch.js.map +1 -1
  61. package/features/Watch/watchers/ServersWatcher.d.ts +36 -0
  62. package/features/Watch/watchers/ServersWatcher.js +38 -0
  63. package/features/Watch/watchers/ServersWatcher.js.map +1 -0
  64. package/features/index.d.ts +1 -0
  65. package/features/index.js +1 -0
  66. package/index.d.ts +1 -0
  67. package/index.js +1 -0
  68. package/index.js.map +1 -1
  69. package/package.json +16 -19
  70. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.d.ts +2 -3
  71. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +11 -44
  72. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -1
  73. package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js +4 -6
  74. package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js.map +1 -1
  75. package/services/GetProjectConfigService/renderConfigWorker.js +2 -8
  76. package/services/GetProjectConfigService/renderConfigWorker.js.map +1 -1
  77. package/services/InitProjectSdkService/InitProjectSdkService.js +1 -7
  78. package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
  79. package/services/ProjectInfoService/GetPulumiVersionService.js +3 -3
  80. package/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -1
  81. package/services/PulumiExportService/PulumiExportService.js.map +1 -1
  82. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +11 -3
  83. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +64 -7
  84. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -1
  85. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -1
  86. package/services/index.d.ts +0 -2
  87. package/services/index.js +0 -2
  88. package/utils/apiRuntimeEnv.d.ts +20 -0
  89. package/utils/apiRuntimeEnv.js +51 -0
  90. package/utils/apiRuntimeEnv.js.map +1 -0
  91. package/utils/index.d.ts +1 -1
  92. package/utils/index.js +1 -1
  93. package/abstractions/services/StackOutputCacheService.d.ts +0 -10
  94. package/abstractions/services/StackOutputCacheService.js +0 -5
  95. package/abstractions/services/StackOutputCacheService.js.map +0 -1
  96. package/decorators/DestroyAppClearStackOutputCache.d.ts +0 -25
  97. package/decorators/DestroyAppClearStackOutputCache.js +0 -29
  98. package/decorators/DestroyAppClearStackOutputCache.js.map +0 -1
  99. package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.d.ts +0 -11
  100. package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js +0 -30
  101. package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js.map +0 -1
  102. package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.d.ts +0 -11
  103. package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js +0 -30
  104. package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js.map +0 -1
  105. package/extensions/Project/EnsureApiDeployedBeforeWatch.d.ts +0 -11
  106. package/extensions/Project/EnsureApiDeployedBeforeWatch.js +0 -30
  107. package/extensions/Project/EnsureApiDeployedBeforeWatch.js.map +0 -1
  108. package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.d.ts +0 -11
  109. package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js +0 -31
  110. package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js.map +0 -1
  111. package/extensions/Project/EnsureTelemetryEnabledForOss.d.ts +0 -13
  112. package/extensions/Project/EnsureTelemetryEnabledForOss.js +0 -34
  113. package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +0 -1
  114. package/extensions/Project/TelemetryNoLongerNewUser.d.ts +0 -8
  115. package/extensions/Project/TelemetryNoLongerNewUser.js +0 -14
  116. package/extensions/Project/TelemetryNoLongerNewUser.js.map +0 -1
  117. package/extensions/Project/ValidateEncryptionBeforeDeploy.d.ts +0 -12
  118. package/extensions/Project/ValidateEncryptionBeforeDeploy.js +0 -31
  119. package/extensions/Project/ValidateEncryptionBeforeDeploy.js.map +0 -1
  120. package/extensions/Project/ValidateProductionPulumiState.d.ts +0 -12
  121. package/extensions/Project/ValidateProductionPulumiState.js +0 -33
  122. package/extensions/Project/ValidateProductionPulumiState.js.map +0 -1
  123. package/features/Watch/getIotEndpoint.d.ts +0 -2
  124. package/features/Watch/getIotEndpoint.js +0 -18
  125. package/features/Watch/getIotEndpoint.js.map +0 -1
  126. package/features/Watch/replaceLambdaFunctions.d.ts +0 -19
  127. package/features/Watch/replaceLambdaFunctions.js +0 -72
  128. package/features/Watch/replaceLambdaFunctions.js.map +0 -1
  129. package/services/GetPulumiService/GetPulumiService.d.ts +0 -9
  130. package/services/GetPulumiService/GetPulumiService.js +0 -44
  131. package/services/GetPulumiService/GetPulumiService.js.map +0 -1
  132. package/services/GetPulumiService/index.d.ts +0 -1
  133. package/services/GetPulumiService/index.js +0 -1
  134. package/services/StackOutputCacheService/StackOutputCacheService.d.ts +0 -18
  135. package/services/StackOutputCacheService/StackOutputCacheService.js +0 -89
  136. package/services/StackOutputCacheService/StackOutputCacheService.js.map +0 -1
  137. package/services/StackOutputCacheService/index.d.ts +0 -1
  138. package/services/StackOutputCacheService/index.js +0 -1
  139. package/utils/getTemplatesFolderPath.d.ts +0 -1
  140. package/utils/getTemplatesFolderPath.js +0 -11
  141. package/utils/getTemplatesFolderPath.js.map +0 -1
@@ -1 +0,0 @@
1
- export * from "./GetPulumiService.js";
@@ -1 +0,0 @@
1
- export * from "./GetPulumiService.js";
@@ -1,18 +0,0 @@
1
- import { GetProjectService, LoggerService, ProjectSdkParamsService, StackOutputCacheService } from "../../abstractions/index.js";
2
- import { type AppModel } from "../../models/index.js";
3
- export declare class DefaultStackOutputCacheService implements StackOutputCacheService.Interface {
4
- private getProjectService;
5
- private projectSdkParamsService;
6
- private loggerService;
7
- private static readonly DEFAULT_ENV;
8
- private static readonly DEFAULT_REGION;
9
- private static readonly DEFAULT_VARIANT;
10
- constructor(getProjectService: GetProjectService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface, loggerService: LoggerService.Interface);
11
- read(app: AppModel): Promise<Record<string, any> | null>;
12
- write(app: AppModel, data: Record<string, any>): Promise<void>;
13
- delete(app: AppModel): Promise<void>;
14
- private getCacheKey;
15
- private getCacheDir;
16
- private getCachePath;
17
- }
18
- export declare const stackOutputCacheService: import("@webiny/di").Implementation<typeof DefaultStackOutputCacheService>;
@@ -1,89 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { GetProjectService, LoggerService, ProjectSdkParamsService, StackOutputCacheService } from "../../abstractions/index.js";
3
- import promises from "fs/promises";
4
- class DefaultStackOutputCacheService {
5
- static{
6
- this.DEFAULT_ENV = "dev";
7
- }
8
- static{
9
- this.DEFAULT_REGION = "default";
10
- }
11
- static{
12
- this.DEFAULT_VARIANT = "default";
13
- }
14
- constructor(getProjectService, projectSdkParamsService, loggerService){
15
- this.getProjectService = getProjectService;
16
- this.projectSdkParamsService = projectSdkParamsService;
17
- this.loggerService = loggerService;
18
- }
19
- async read(app) {
20
- const cachePath = this.getCachePath(app);
21
- try {
22
- const content = await promises.readFile(cachePath, "utf-8");
23
- const data = JSON.parse(content);
24
- this.loggerService.debug({
25
- app: app.name,
26
- cacheKey: this.getCacheKey(app)
27
- }, "Stack output read from cache");
28
- return data;
29
- } catch {
30
- return null;
31
- }
32
- }
33
- async write(app, data) {
34
- const cachePath = this.getCachePath(app);
35
- const cacheDir = this.getCacheDir().toString();
36
- try {
37
- await promises.mkdir(cacheDir, {
38
- recursive: true
39
- });
40
- await promises.writeFile(cachePath, JSON.stringify(data, null, 2), "utf-8");
41
- this.loggerService.debug("Stack output stored to cache", {
42
- app: app.name,
43
- cacheKey: this.getCacheKey(app)
44
- });
45
- } catch (error) {
46
- this.loggerService.error("Could not write to cache file.", cachePath, error);
47
- }
48
- }
49
- async delete(app) {
50
- const cachePath = this.getCachePath(app);
51
- try {
52
- await promises.rm(cachePath, {
53
- force: true
54
- });
55
- this.loggerService.debug("Stack output cache deleted.", {
56
- app: app.name,
57
- cacheKey: this.getCacheKey(app)
58
- });
59
- } catch (error) {
60
- this.loggerService.error("Could not delete stack output cache file.", cachePath, error);
61
- }
62
- }
63
- getCacheKey(app) {
64
- const sdkParams = this.projectSdkParamsService.get();
65
- const env = sdkParams.env || DefaultStackOutputCacheService.DEFAULT_ENV;
66
- const region = sdkParams.region || DefaultStackOutputCacheService.DEFAULT_REGION;
67
- const variant = sdkParams.variant || DefaultStackOutputCacheService.DEFAULT_VARIANT;
68
- return `${app.name}-${env}-${region}-${variant}.json`;
69
- }
70
- getCacheDir() {
71
- const project = this.getProjectService.execute();
72
- return project.paths.dotWebinyFolder.join("caches", "stack-output");
73
- }
74
- getCachePath(app) {
75
- return this.getCacheDir().join(this.getCacheKey(app)).toString();
76
- }
77
- }
78
- const stackOutputCacheService = createImplementation({
79
- abstraction: StackOutputCacheService,
80
- implementation: DefaultStackOutputCacheService,
81
- dependencies: [
82
- GetProjectService,
83
- ProjectSdkParamsService,
84
- LoggerService
85
- ]
86
- });
87
- export { DefaultStackOutputCacheService, stackOutputCacheService };
88
-
89
- //# sourceMappingURL=StackOutputCacheService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services/StackOutputCacheService/StackOutputCacheService.js","sources":["../../../src/services/StackOutputCacheService/StackOutputCacheService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n GetProjectService,\n LoggerService,\n ProjectSdkParamsService,\n StackOutputCacheService\n} from \"~/abstractions/index.js\";\nimport { type AppModel } from \"~/models/index.js\";\nimport fs from \"fs/promises\";\n\nexport class DefaultStackOutputCacheService implements StackOutputCacheService.Interface {\n private static readonly DEFAULT_ENV = \"dev\";\n private static readonly DEFAULT_REGION = \"default\";\n private static readonly DEFAULT_VARIANT = \"default\";\n\n constructor(\n private getProjectService: GetProjectService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface,\n private loggerService: LoggerService.Interface\n ) {}\n\n async read(app: AppModel): Promise<Record<string, any> | null> {\n const cachePath = this.getCachePath(app);\n\n try {\n const content = await fs.readFile(cachePath, \"utf-8\");\n const data = JSON.parse(content);\n this.loggerService.debug(\n { app: app.name, cacheKey: this.getCacheKey(app) },\n \"Stack output read from cache\"\n );\n return data;\n } catch {\n // File doesn't exist or couldn't be read/parsed - this is expected on first run.\n return null;\n }\n }\n\n async write(app: AppModel, data: Record<string, any>): Promise<void> {\n const cachePath = this.getCachePath(app);\n const cacheDir = this.getCacheDir().toString();\n\n try {\n // Create cache directory if it doesn't exist.\n await fs.mkdir(cacheDir, { recursive: true });\n await fs.writeFile(cachePath, JSON.stringify(data, null, 2), \"utf-8\");\n this.loggerService.debug(\"Stack output stored to cache\", {\n app: app.name,\n cacheKey: this.getCacheKey(app)\n });\n } catch (error) {\n this.loggerService.error(\"Could not write to cache file.\", cachePath, error);\n }\n }\n\n async delete(app: AppModel): Promise<void> {\n const cachePath = this.getCachePath(app);\n\n try {\n // `force: true` makes this a no-op if the cache file doesn't exist.\n await fs.rm(cachePath, { force: true });\n this.loggerService.debug(\"Stack output cache deleted.\", {\n app: app.name,\n cacheKey: this.getCacheKey(app)\n });\n } catch (error) {\n this.loggerService.error(\"Could not delete stack output cache file.\", cachePath, error);\n }\n }\n\n private getCacheKey(app: AppModel): string {\n const sdkParams = this.projectSdkParamsService.get();\n const env = sdkParams.env || DefaultStackOutputCacheService.DEFAULT_ENV;\n const region = sdkParams.region || DefaultStackOutputCacheService.DEFAULT_REGION;\n const variant = sdkParams.variant || DefaultStackOutputCacheService.DEFAULT_VARIANT;\n return `${app.name}-${env}-${region}-${variant}.json`;\n }\n\n private getCacheDir() {\n const project = this.getProjectService.execute();\n return project.paths.dotWebinyFolder.join(\"caches\", \"stack-output\");\n }\n\n private getCachePath(app: AppModel): string {\n return this.getCacheDir().join(this.getCacheKey(app)).toString();\n }\n}\n\nexport const stackOutputCacheService = createImplementation({\n abstraction: StackOutputCacheService,\n implementation: DefaultStackOutputCacheService,\n dependencies: [GetProjectService, ProjectSdkParamsService, LoggerService]\n});\n"],"names":["DefaultStackOutputCacheService","getProjectService","projectSdkParamsService","loggerService","app","cachePath","content","fs","data","JSON","cacheDir","error","sdkParams","env","region","variant","project","stackOutputCacheService","createImplementation","StackOutputCacheService","GetProjectService","ProjectSdkParamsService","LoggerService"],"mappings":";;;AAUO,MAAMA;;aACe,WAAW,GAAG;;;aACd,cAAc,GAAG;;;aACjB,eAAe,GAAG;;IAE1C,YACYC,iBAA8C,EAC9CC,uBAA0D,EAC1DC,aAAsC,CAChD;aAHUF,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;aACAC,aAAa,GAAbA;IACT;IAEH,MAAM,KAAKC,GAAa,EAAuC;QAC3D,MAAMC,YAAY,IAAI,CAAC,YAAY,CAACD;QAEpC,IAAI;YACA,MAAME,UAAU,MAAMC,SAAAA,QAAW,CAACF,WAAW;YAC7C,MAAMG,OAAOC,KAAK,KAAK,CAACH;YACxB,IAAI,CAAC,aAAa,CAAC,KAAK,CACpB;gBAAE,KAAKF,IAAI,IAAI;gBAAE,UAAU,IAAI,CAAC,WAAW,CAACA;YAAK,GACjD;YAEJ,OAAOI;QACX,EAAE,OAAM;YAEJ,OAAO;QACX;IACJ;IAEA,MAAM,MAAMJ,GAAa,EAAEI,IAAyB,EAAiB;QACjE,MAAMH,YAAY,IAAI,CAAC,YAAY,CAACD;QACpC,MAAMM,WAAW,IAAI,CAAC,WAAW,GAAG,QAAQ;QAE5C,IAAI;YAEA,MAAMH,SAAAA,KAAQ,CAACG,UAAU;gBAAE,WAAW;YAAK;YAC3C,MAAMH,SAAAA,SAAY,CAACF,WAAWI,KAAK,SAAS,CAACD,MAAM,MAAM,IAAI;YAC7D,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gCAAgC;gBACrD,KAAKJ,IAAI,IAAI;gBACb,UAAU,IAAI,CAAC,WAAW,CAACA;YAC/B;QACJ,EAAE,OAAOO,OAAO;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,kCAAkCN,WAAWM;QAC1E;IACJ;IAEA,MAAM,OAAOP,GAAa,EAAiB;QACvC,MAAMC,YAAY,IAAI,CAAC,YAAY,CAACD;QAEpC,IAAI;YAEA,MAAMG,SAAAA,EAAK,CAACF,WAAW;gBAAE,OAAO;YAAK;YACrC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,+BAA+B;gBACpD,KAAKD,IAAI,IAAI;gBACb,UAAU,IAAI,CAAC,WAAW,CAACA;YAC/B;QACJ,EAAE,OAAOO,OAAO;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,6CAA6CN,WAAWM;QACrF;IACJ;IAEQ,YAAYP,GAAa,EAAU;QACvC,MAAMQ,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,MAAMD,UAAU,GAAG,IAAIZ,+BAA+B,WAAW;QACvE,MAAMc,SAASF,UAAU,MAAM,IAAIZ,+BAA+B,cAAc;QAChF,MAAMe,UAAUH,UAAU,OAAO,IAAIZ,+BAA+B,eAAe;QACnF,OAAO,GAAGI,IAAI,IAAI,CAAC,CAAC,EAAES,IAAI,CAAC,EAAEC,OAAO,CAAC,EAAEC,QAAQ,KAAK,CAAC;IACzD;IAEQ,cAAc;QAClB,MAAMC,UAAU,IAAI,CAAC,iBAAiB,CAAC,OAAO;QAC9C,OAAOA,QAAQ,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU;IACxD;IAEQ,aAAaZ,GAAa,EAAU;QACxC,OAAO,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAACA,MAAM,QAAQ;IAClE;AACJ;AAEO,MAAMa,0BAA0BC,qBAAqB;IACxD,aAAaC;IACb,gBAAgBnB;IAChB,cAAc;QAACoB;QAAmBC;QAAyBC;KAAc;AAC7E"}
@@ -1 +0,0 @@
1
- export * from "./StackOutputCacheService.js";
@@ -1 +0,0 @@
1
- export * from "./StackOutputCacheService.js";
@@ -1 +0,0 @@
1
- export declare const getTemplatesFolderPath: () => string;
@@ -1,11 +0,0 @@
1
- import { dirname, join } from "path";
2
- import { fileURLToPath } from "url";
3
- const getTemplatesFolderPath = ()=>{
4
- const templatePackage = import.meta.resolve("@webiny/project-aws-template/package.json");
5
- if (!templatePackage) throw new Error("Could not find the `appTemplates` folder. Something went terribly wrong.");
6
- const cleanPath = fileURLToPath(templatePackage);
7
- return join(dirname(cleanPath), "template");
8
- };
9
- export { getTemplatesFolderPath };
10
-
11
- //# sourceMappingURL=getTemplatesFolderPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils/getTemplatesFolderPath.js","sources":["../../src/utils/getTemplatesFolderPath.ts"],"sourcesContent":["import { dirname, join } from \"path\";\nimport { fileURLToPath } from \"url\";\n\nexport const getTemplatesFolderPath = () => {\n const templatePackage = import.meta.resolve(\"@webiny/project-aws-template/package.json\");\n\n if (!templatePackage) {\n // This should never happen because we're controlling the templates.\n throw new Error(\"Could not find the `appTemplates` folder. Something went terribly wrong.\");\n }\n\n const cleanPath = fileURLToPath(templatePackage);\n\n return join(dirname(cleanPath), \"template\");\n};\n"],"names":["getTemplatesFolderPath","templatePackage","Error","cleanPath","fileURLToPath","join","dirname"],"mappings":";;AAGO,MAAMA,yBAAyB;IAClC,MAAMC,kBAAkB,YAAY,OAAO,CAAC;IAE5C,IAAI,CAACA,iBAED,MAAM,IAAIC,MAAM;IAGpB,MAAMC,YAAYC,cAAcH;IAEhC,OAAOI,KAAKC,QAAQH,YAAY;AACpC"}