@spyglassmc/mcdoc-cli 0.1.48 → 0.1.49

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.
@@ -78,7 +78,7 @@ export async function localeCommand(args) {
78
78
  const outputFile = pathToFileURL(resolve(process.cwd(), args.output)).toString();
79
79
  if (args.upgrade) {
80
80
  const oldLocale = await readLocale(outputFile);
81
- const outputDir = fileUtil.getParentOfFile(NodeJsExternals, outputFile).toString();
81
+ const outputDir = fileUtil.getParentOfUri(outputFile).toString();
82
82
  const entries = await NodeJsExternals.fs.readdir(outputDir);
83
83
  const others = entries.filter(e => e.isFile() && e.name.endsWith('.json'))
84
84
  .map(e => e.name.slice(0, e.name.length - '.json'.length));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglassmc/mcdoc-cli",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -33,8 +33,8 @@
33
33
  "line-column": "^1.0.2",
34
34
  "ofetch": "^1.3.4",
35
35
  "yargs": "17.6.2",
36
- "@spyglassmc/core": "0.4.43",
37
- "@spyglassmc/mcdoc": "0.3.47"
36
+ "@spyglassmc/core": "0.4.44",
37
+ "@spyglassmc/mcdoc": "0.3.48"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/fs-extra": "^11.0.2",