@better-t-stack/template-generator 3.13.2-dev.6a9e17a

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.
@@ -0,0 +1,36 @@
1
+ import { ProjectConfig } from "@better-t-stack/types";
2
+
3
+ //#region src/types.d.ts
4
+ interface VirtualFile {
5
+ type: "file";
6
+ path: string;
7
+ name: string;
8
+ content: string;
9
+ extension: string;
10
+ }
11
+ interface VirtualDirectory {
12
+ type: "directory";
13
+ path: string;
14
+ name: string;
15
+ children: VirtualNode[];
16
+ }
17
+ type VirtualNode = VirtualFile | VirtualDirectory;
18
+ interface VirtualFileTree {
19
+ root: VirtualDirectory;
20
+ fileCount: number;
21
+ directoryCount: number;
22
+ config: ProjectConfig;
23
+ }
24
+ interface GeneratorOptions {
25
+ config: ProjectConfig;
26
+ templateBasePath?: string;
27
+ templates?: Map<string, string>;
28
+ }
29
+ interface GeneratorResult {
30
+ success: boolean;
31
+ tree?: VirtualFileTree;
32
+ error?: string;
33
+ }
34
+ //#endregion
35
+ export { VirtualFileTree as a, VirtualFile as i, GeneratorResult as n, VirtualNode as o, VirtualDirectory as r, GeneratorOptions as t };
36
+ //# sourceMappingURL=types-BubFnV2d.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BubFnV2d.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;UAEiB,WAAA;;EAAA,IAAA,EAAA,MAAA;EAQA,IAAA,EAAA,MAAA;EAOL,OAAA,EAAA,MAAW;EAEN,SAAA,EAAA,MAAA;AAOjB;AAMiB,UAtBA,gBAAA,CAwBR;;;;YApBG;;KAGA,WAAA,GAAc,cAAc;UAEvB,eAAA;QACT;;;UAGE;;UAGO,gBAAA;UACP;;cAEI;;UAGG,eAAA;;SAER"}
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@better-t-stack/template-generator",
3
+ "version": "3.13.2-dev.6a9e17a",
4
+ "description": "Virtual file system generator for Better-T-Stack templates - works in browsers and Node.js",
5
+ "keywords": [
6
+ "better-t-stack",
7
+ "cli",
8
+ "template-generator",
9
+ "typescript",
10
+ "virtual-fs"
11
+ ],
12
+ "homepage": "https://better-t-stack.dev/",
13
+ "license": "MIT",
14
+ "author": "Aman Varshney",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/AmanVarshney01/create-better-t-stack.git",
18
+ "directory": "packages/template-generator"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "type": "module",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.mts",
27
+ "default": "./dist/index.mjs"
28
+ },
29
+ "./fs-writer": {
30
+ "types": "./dist/fs-writer.d.mts",
31
+ "default": "./dist/fs-writer.mjs"
32
+ },
33
+ "./template-reader": {
34
+ "types": "./dist/template-reader.d.mts",
35
+ "default": "./dist/template-reader.mjs"
36
+ }
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "generate-templates": "bun scripts/generate-templates.ts",
43
+ "prebuild": "bun run generate-templates",
44
+ "build": "tsdown",
45
+ "prepublishOnly": "bun run build",
46
+ "dev": "tsdown --watch",
47
+ "typecheck": "tsc --noEmit"
48
+ },
49
+ "dependencies": {
50
+ "@better-t-stack/types": "3.13.2-dev.6a9e17a",
51
+ "handlebars": "^4.7.8",
52
+ "memfs": "^4.51.1",
53
+ "pathe": "^2.0.3",
54
+ "yaml": "^2.8.2"
55
+ },
56
+ "devDependencies": {
57
+ "@types/fs-extra": "^11.0.4",
58
+ "@types/node": "^22.10.2",
59
+ "fs-extra": "^11.3.3",
60
+ "is-binary-path": "^3.0.0",
61
+ "tinyglobby": "^0.2.15",
62
+ "tsdown": "^0.17.2",
63
+ "typescript": "^5.7.2"
64
+ }
65
+ }