v8r 0.8.0 → 0.8.1
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.
- package/CHANGELOG.md +5 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/cli.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 📦 [0.8.
|
|
3
|
+
## 📦 [0.8.1](https://www.npmjs.com/package/v8r/v/0.8.1) - 2021-12-25
|
|
4
|
+
|
|
5
|
+
* Fix `--version` flag when installed globally
|
|
6
|
+
|
|
7
|
+
## 📦 [0.8.0](https://www.npmjs.com/package/v8r/v/0.8.0) - 2021-12-25
|
|
4
8
|
|
|
5
9
|
* Switch from CommonJS to ESModules internally
|
|
6
10
|
* Requires node `^12.20.0 || ^14.13.1 || >=15.0.0`
|
package/README.md
CHANGED
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -170,6 +170,13 @@ function parseArgs(argv) {
|
|
|
170
170
|
yargs.positional("filename", { describe: "Local file to validate" });
|
|
171
171
|
}
|
|
172
172
|
)
|
|
173
|
+
.version(
|
|
174
|
+
// Workaround for https://github.com/yargs/yargs/issues/1934
|
|
175
|
+
// TODO: remove once fixed
|
|
176
|
+
JSON.parse(
|
|
177
|
+
fs.readFileSync(new URL("../package.json", import.meta.url).pathname)
|
|
178
|
+
).version
|
|
179
|
+
)
|
|
173
180
|
.option("verbose", {
|
|
174
181
|
alias: "v",
|
|
175
182
|
type: "boolean",
|