fix(subsUnion): drop duplicated programs/server prefix in npm path
All checks were successful
build-image / build (push) Successful in 11m53s
All checks were successful
build-image / build (push) Successful in 11m53s
process.cwd() for this process is already /app/programs/server (same basis WORKER_PATH already relied on), so prefixing 'programs/server/' again produced .../programs/server/programs/server/npm/node_modules — still Cannot find module '@turf/circle', just with a longer wrong path.
This commit is contained in:
parent
324936242b
commit
570cb49764
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ const WORKER_PATH = path.resolve(process.cwd(), 'assets/app/workers/unionWorker.
|
||||||
// and fails with "Cannot find module '@turf/circle'". Resolving the absolute
|
// and fails with "Cannot find module '@turf/circle'". Resolving the absolute
|
||||||
// path here, where Meteor's own module system already knows how to find it,
|
// path here, where Meteor's own module system already knows how to find it,
|
||||||
// and handing it to the worker sidesteps that entirely.
|
// and handing it to the worker sidesteps that entirely.
|
||||||
const NPM_MODULES = path.resolve(process.cwd(), 'programs/server/npm/node_modules');
|
const NPM_MODULES = path.resolve(process.cwd(), 'npm/node_modules');
|
||||||
const turfPaths = {
|
const turfPaths = {
|
||||||
circle: path.join(NPM_MODULES, '@turf/circle'),
|
circle: path.join(NPM_MODULES, '@turf/circle'),
|
||||||
union: path.join(NPM_MODULES, '@turf/union'),
|
union: path.join(NPM_MODULES, '@turf/union'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue