@yannosay/sinth 0.0.15 → 0.0.16

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/sinth.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yannosay/sinth",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "A declarative language that compiles to pure HTML, CSS, and JavaScript.",
5
5
  "author": "Yannosay Productions",
6
6
  "license": "AGPL-3.0",
package/src/sinth.ts CHANGED
@@ -1915,7 +1915,8 @@ async function main(): Promise<void> {
1915
1915
  case "version":
1916
1916
  case "--version":
1917
1917
  case "-v": {
1918
- process.stdout.write("Sinth Compiler v0.0.15\n");
1918
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf-8"));
1919
+ process.stdout.write(`Sinth Compiler v${pkg.version}\n`);
1919
1920
  break;
1920
1921
  }
1921
1922