@better-t-stack/template-generator 3.17.0 → 3.18.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.
@@ -1,3 +1,4 @@
1
+ import * as better_result0 from "better-result";
1
2
  import { ProjectConfig } from "@better-t-stack/types";
2
3
 
3
4
  //#region src/types.d.ts
@@ -27,11 +28,15 @@ interface GeneratorOptions {
27
28
  templateBasePath?: string;
28
29
  templates?: Map<string, string>;
29
30
  }
30
- interface GeneratorResult {
31
- success: boolean;
32
- tree?: VirtualFileTree;
33
- error?: string;
34
- }
31
+ declare const GeneratorError_base: better_result0.TaggedErrorClass<"GeneratorError", {
32
+ message: string;
33
+ phase?: string;
34
+ cause?: unknown;
35
+ }>;
36
+ /**
37
+ * Error class for template generation failures
38
+ */
39
+ declare class GeneratorError extends GeneratorError_base {}
35
40
  //#endregion
36
- export { VirtualFileTree as a, VirtualFile as i, GeneratorResult as n, VirtualNode as o, VirtualDirectory as r, GeneratorOptions as t };
37
- //# sourceMappingURL=types-CSDwmt8U.d.mts.map
41
+ export { VirtualFileTree as a, VirtualFile as i, GeneratorOptions as n, VirtualNode as o, VirtualDirectory as r, GeneratorError as t };
42
+ //# sourceMappingURL=types-DUzPfsFZ.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DUzPfsFZ.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;UAIiB,WAAA;;;EAAA,IAAA,EAAA,MAAA;EASA,OAAA,EAAA,MAAA;EAOL,SAAA,EAAA,MAAW;EAEN,UAAA,CAAA,EAAA,MAAe;AAOhC;AAIC,UApBgB,gBAAA,CAoBhB;EAKY,IAAA,EAAA,WAAe;;;YArBhB;;KAGA,WAAA,GAAc,cAAc;UAEvB,eAAA;QACT;;;UAGE;;UAGO,gBAAA;UACP;;cAEI;;cACb,qBAAA,cAAA,CAAA;;;;;;;;cAKY,cAAA,SAAuB,mBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-t-stack/template-generator",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "Virtual file system generator for Better-T-Stack templates - works in browsers and Node.js",
5
5
  "keywords": [
6
6
  "better-t-stack",
@@ -48,7 +48,8 @@
48
48
  "typecheck": "tsc --noEmit"
49
49
  },
50
50
  "dependencies": {
51
- "@better-t-stack/types": "^3.17.0",
51
+ "@better-t-stack/types": "^3.18.0",
52
+ "better-result": "^2.3.0",
52
53
  "handlebars": "^4.7.8",
53
54
  "memfs": "^4.51.1",
54
55
  "pathe": "^2.0.3",
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-CSDwmt8U.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;UAEiB,WAAA;;EAAA,IAAA,EAAA,MAAA;EASA,IAAA,EAAA,MAAA;EAOL,OAAA,EAAA,MAAW;EAEN,SAAA,EAAA,MAAA;EAOA,UAAA,CAAA,EAAA,MAAgB;AAMjC;UAtBiB,gBAAA;;;;YAIL;;KAGA,WAAA,GAAc,cAAc;UAEvB,eAAA;QACT;;;UAGE;;UAGO,gBAAA;UACP;;cAEI;;UAGG,eAAA;;SAER"}