Skip to content

Commit

Permalink
fix: bundle metar-taf-parser types
Browse files Browse the repository at this point in the history
  • Loading branch information
professoralex13 committed Sep 18, 2024
1 parent 8de102f commit 0148a44
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"examples/*"
],
"nohoist": [
"**/@types/geojson"
"**/@types/geojson",
"**/metar-taf-parser"
]
},
"scripts": {
Expand Down
10 changes: 5 additions & 5 deletions packages/weather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
"access": "public"
},
"scripts": {
"build": "tsup src/index.ts --dts",
"build": "tsup src/index.ts --dts-resolve",
"dev": "tsup src/index.ts --watch --sourcemap inline",
"lint": "eslint \"src/**/*.ts\"",
"clean": "rimraf .turbo node_modules dist",
"prepack": "clean-package",
"postpack": "clean-package restore"
"postpack": "clean-package restore",
"postinstall": "patch-package"
},
"dependencies": {
"@navigraph/app": "1.3.6",
"@navigraph/auth": "2.5.2",
"geojson": "^0.5.0",
"metar-taf-parser": "^9.0.1"
"@navigraph/auth": "2.5.2"
},
"devDependencies": {
"metar-taf-parser": "^8.0.5",
"@types/geojson": "^7946.0.14"
}
}
12 changes: 12 additions & 0 deletions packages/weather/patches/metar-taf-parser+8.0.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/metar-taf-parser/package.json b/node_modules/metar-taf-parser/package.json
index 3a6b1a2..ba19382 100644
--- a/node_modules/metar-taf-parser/package.json
+++ b/node_modules/metar-taf-parser/package.json
@@ -13,6 +13,7 @@
"decoder"
],
"type": "module",
+ "typings": "metar-taf-parser.d.ts",
"main": "metar-taf-parser.js",
"author": "Alexander Harding <[email protected]>",
"license": "MIT",
13 changes: 4 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3559,11 +3559,6 @@ gensync@^1.0.0-beta.2:
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==

geojson@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/geojson/-/geojson-0.5.0.tgz#3cd6c96399be65b56ee55596116fe9191ce701c0"
integrity sha512-/Bx5lEn+qRF4TfQ5aLu6NH+UKtvIv7Lhc487y/c8BdludrCTpiWf9wyI0RTyqg49MFefIAvFDuEi5Dfd/zgNxQ==

get-caller-file@^2.0.1, get-caller-file@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
Expand Down Expand Up @@ -4857,10 +4852,10 @@ merge2@^1.3.0, merge2@^1.4.1:
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==

metar-taf-parser@^9.0.1:
version "9.0.1"
resolved "https://registry.yarnpkg.com/metar-taf-parser/-/metar-taf-parser-9.0.1.tgz#ecf1116a0f1cdfdbee9036e491c1f7fb75cf9cf5"
integrity sha512-/r3Gr5cVFEWkcGoA8QKFYqYIiJ2TBvIr2qBoCiNRfx7scmomT1e3HRU8+933MH8eFaqv8pcYrT0aZq0k4UgLSQ==
metar-taf-parser@^8.0.5:
version "8.0.5"
resolved "https://registry.yarnpkg.com/metar-taf-parser/-/metar-taf-parser-8.0.5.tgz#9be8aee8c159b56d6529c22ca1ca261c21114341"
integrity sha512-cNau4OR7ha/DehoXTkeJ0KKjB8Pdgxf/RMo2LcTcQxTFowRVfWssbsyyEP05VE51BwBxsZsdd1/+n01ZQd5G0Q==

micromatch@^4.0.2, micromatch@^4.0.4:
version "4.0.5"
Expand Down

0 comments on commit 0148a44

Please sign in to comment.