Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"workbench.colorCustomizations": {
"statusBar.background": "#d21919",
"statusBar.foreground": "#ffffff"
},
"zig.path": "zig",
"zig.zls.path": "zls",
"editor.formatOnSave": true,
Expand Down
9 changes: 9 additions & 0 deletions generated/version.ts
Original file line number Diff line number Diff line change
@@ -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"
};
2 changes: 1 addition & 1 deletion scripts/package-github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
Expand Down
6 changes: 6 additions & 0 deletions src/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down