@chuva.io/less-cli
Advanced tools
Comparing version 1.0.0-beta.20 to 1.0.0-beta.21
#!/usr/bin/env node | ||
import path from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import path, { dirname } from 'path'; | ||
import fs from 'fs'; | ||
@@ -27,4 +28,7 @@ import { Command, Option } from 'commander'; | ||
// Get the directory of the current module file | ||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
// Get package.json version | ||
const packagePath = path.join(process.cwd(), 'package.json'); | ||
const packagePath = path.join(__dirname, '..', 'package.json'); | ||
const packageContent = JSON.parse(fs.readFileSync(packagePath).toString()); | ||
@@ -31,0 +35,0 @@ const version = packageContent?.version; |
{ | ||
"name": "@chuva.io/less-cli", | ||
"version": "1.0.0-beta.20", | ||
"version": "1.0.0-beta.21", | ||
"description": "`less-cli` is a CLI tool that allows you to deploy your Less projects to AWS while providing several other tools to facilitate your interaction with Less.", | ||
@@ -5,0 +5,0 @@ "author": "Chuva, LLC", |
70328
1314
28