@sandstone-mc/mcdoc-ts-generator 0.1.7 → 0.1.9

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/dist/cli.js CHANGED
@@ -2691,11 +2691,13 @@ class TypesGenerator {
2691
2691
  if (_path.endsWith(">")) {
2692
2692
  continue;
2693
2693
  }
2694
- const matches = mcdoc_raw.matchAll(new RegExp(_path, "g"));
2695
- const first_match = matches.next();
2696
- const second_match = matches.next();
2697
- if (!first_match.done && second_match.done) {
2698
- continue;
2694
+ if (!_path.endsWith("::StructureNBT")) {
2695
+ const matches = mcdoc_raw.matchAll(new RegExp(_path, "g"));
2696
+ const first_match = matches.next();
2697
+ const second_match = matches.next();
2698
+ if (!first_match.done && second_match.done) {
2699
+ continue;
2700
+ }
2699
2701
  }
2700
2702
  if (data !== null && typeof data === "object" && "typeDef" in data) {
2701
2703
  const type = data.typeDef;
@@ -2819,7 +2821,7 @@ var eslint = new ESLint({
2819
2821
  "@stylistic": stylistic
2820
2822
  },
2821
2823
  rules: {
2822
- "@stylistic/indent": ["error", 4],
2824
+ "@stylistic/indent": ["error", 2],
2823
2825
  "@stylistic/quotes": ["error", "single"],
2824
2826
  "@stylistic/semi": ["error", "never"],
2825
2827
  "@stylistic/member-delimiter-style": ["error", {
package/dist/index.js CHANGED
@@ -2689,11 +2689,13 @@ class TypesGenerator {
2689
2689
  if (_path.endsWith(">")) {
2690
2690
  continue;
2691
2691
  }
2692
- const matches = mcdoc_raw.matchAll(new RegExp(_path, "g"));
2693
- const first_match = matches.next();
2694
- const second_match = matches.next();
2695
- if (!first_match.done && second_match.done) {
2696
- continue;
2692
+ if (!_path.endsWith("::StructureNBT")) {
2693
+ const matches = mcdoc_raw.matchAll(new RegExp(_path, "g"));
2694
+ const first_match = matches.next();
2695
+ const second_match = matches.next();
2696
+ if (!first_match.done && second_match.done) {
2697
+ continue;
2698
+ }
2697
2699
  }
2698
2700
  if (data !== null && typeof data === "object" && "typeDef" in data) {
2699
2701
  const type = data.typeDef;
@@ -2817,7 +2819,7 @@ var eslint = new ESLint({
2817
2819
  "@stylistic": stylistic
2818
2820
  },
2819
2821
  rules: {
2820
- "@stylistic/indent": ["error", 4],
2822
+ "@stylistic/indent": ["error", 2],
2821
2823
  "@stylistic/quotes": ["error", "single"],
2822
2824
  "@stylistic/semi": ["error", "never"],
2823
2825
  "@stylistic/member-delimiter-style": ["error", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sandstone-mc/mcdoc-ts-generator",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Generate TypeScript types from Minecraft mcdoc definitions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",