diff --git a/.vscode/settings.json b/.vscode/settings.json index 7ffd3d1..594bda7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,8 @@ { + "workbench.colorCustomizations": { + "statusBar.background": "#d21919", + "statusBar.foreground": "#ffffff" + }, "zig.path": "zig", "zig.zls.path": "zls", "editor.formatOnSave": true, diff --git a/generated/version.ts b/generated/version.ts new file mode 100644 index 0000000..e4afa65 --- /dev/null +++ b/generated/version.ts @@ -0,0 +1,9 @@ +/** + * Generated by script 🍺 + * Do not edit manually. + */ + +export const VERSION_INFO = { + version: "0.0.1", + date: "2025-12-26T15:28:06.087Z" +}; diff --git a/scripts/package-github.ts b/scripts/package-github.ts index f8cdd12..eabac33 100644 --- a/scripts/package-github.ts +++ b/scripts/package-github.ts @@ -12,7 +12,7 @@ pkg.bin = { "package-version-info": "bin/version_info" }; -pkg.name = '@celtian/ngx-fixed-footer'; +pkg.name = '@celtian/package-version-info'; pkg.publishConfig = { registry: 'https://npm.pkg.github.com' }; diff --git a/src/root.zig b/src/root.zig index b789ed0..d471f0f 100644 --- a/src/root.zig +++ b/src/root.zig @@ -123,6 +123,12 @@ pub fn generateVersionInfo(allocator: std.mem.Allocator, package_json_path: []co logNewLine(); log(Color.BRIGHT_GREEN, "✍️ ", "Writing to {s}...", .{output_path}); + + // Ensure parent directory exists + if (std.fs.path.dirname(output_path)) |dir_path| { + try std.fs.cwd().makePath(dir_path); + } + const output_file = try std.fs.cwd().createFile(output_path, .{}); defer output_file.close();