gtfs-to-html 2.11.0 → 2.11.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.
@@ -24,6 +24,7 @@ import {
24
24
  rm
25
25
  } from "fs/promises";
26
26
  import { homedir } from "os";
27
+ import { findPackageJSON } from "module";
27
28
  import * as _ from "lodash-es";
28
29
  import { uniqBy as uniqBy2 } from "lodash-es";
29
30
  import archiver from "archiver";
@@ -493,7 +494,7 @@ function formatTripNameForCSV(trip, timetable) {
493
494
  // package.json
494
495
  var package_default = {
495
496
  name: "gtfs-to-html",
496
- version: "2.11.0",
497
+ version: "2.11.1",
497
498
  private: false,
498
499
  description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
499
500
  keywords: [
@@ -583,7 +584,7 @@ var package_default = {
583
584
  typescript: "^5.9.2"
584
585
  },
585
586
  engines: {
586
- node: ">= 20.11.0"
587
+ node: ">= 22"
587
588
  },
588
589
  "release-it": {
589
590
  github: {
@@ -2340,18 +2341,32 @@ async function copyStaticAssets(config, outputPath) {
2340
2341
  }
2341
2342
  if (config.hasGtfsRealtimeVehiclePositions || config.hasGtfsRealtimeTripUpdates || config.hasGtfsRealtimeAlerts) {
2342
2343
  await copyFile(
2343
- "node_modules/pbf/dist/pbf.js",
2344
+ join(
2345
+ dirname(findPackageJSON("pbf", import.meta.url)),
2346
+ "dist/pbf.js"
2347
+ ),
2344
2348
  join(outputPath, "js/pbf.js")
2345
2349
  );
2346
2350
  await copyFile(
2347
- "node_modules/gtfs-realtime-pbf-js-module/gtfs-realtime.browser.proto.js",
2351
+ join(
2352
+ dirname(
2353
+ findPackageJSON(
2354
+ "gtfs-realtime-pbf-js-module",
2355
+ import.meta.url
2356
+ )
2357
+ ),
2358
+ "gtfs-realtime.browser.proto.js"
2359
+ ),
2348
2360
  join(outputPath, "js/gtfs-realtime.browser.proto.js")
2349
2361
  );
2350
2362
  }
2351
2363
  if (config.hasGtfsRealtimeAlerts) {
2352
2364
  await copyFile(
2353
- "node_modules/anchorme/dist/browser/anchorme.min.js",
2354
- join(outputPath, "js//anchorme.min.js")
2365
+ join(
2366
+ dirname(findPackageJSON("anchorme", import.meta.url)),
2367
+ "dist/browser/anchorme.min.js"
2368
+ ),
2369
+ join(outputPath, "js/anchorme.min.js")
2355
2370
  );
2356
2371
  }
2357
2372
  }