|
All checks were successful
build-image / build (push) Successful in 12m9s
The previous side-effect-import fix didn't work: the app's own npm deps
(installed by `meteor build`) live in programs/server/npm/node_modules,
a SIBLING of programs/server/assets, not an ancestor of it. Node's
require() only walks up parent directories looking for node_modules,
so require('@turf/circle') from the worker asset script could never
find it regardless of what gets imported elsewhere in the app — it
kept failing with "Cannot find module '@turf/circle'" even after that
fix was deployed.
calcUnionAsync.js (Meteor-compiled code, which already knows how to
locate the app's npm deps) now resolves the three turf package paths
itself and hands them to the worker via workerData; the worker
requires them by absolute path instead of bare specifier.
|
||
|---|---|---|
| .. | ||
| accounts | ||
| api.js | ||
| calcUnionAsync.js | ||
| catchExceptions.js | ||
| cron.js | ||
| email.js | ||
| facts.js | ||
| feedback.js | ||
| fixtures.js | ||
| i18n.js | ||
| index.js | ||
| IPGeocoder.js | ||
| isMaster.js | ||
| leaflet-workaround.js | ||
| migrations.js | ||
| prerender.js | ||
| ravenLogger.js | ||
| rest.js | ||
| sentryTunnel.js | ||
| sitemaps.js | ||
| subsUnion.js | ||