You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
requires node_modules to be a symlink to opening-hours/opening_hours.js node_modules #83
node_modules is in .gitignore. But in my git working copy, it was a symlink like this:
node_modules -> opening_hours.js/node_modules
This broke now that the map needs its own NPM dependencies.
@KristjanESPERANTO Do you have a better idea how to integrate the two repos? I am open to anything. We could even setup continues deployment. Do you have ideas/preferences? But the MVP is to get both repos deployable again.
When create two independent node_modules, the evaluation tool fails because it tries to import /node_modules/i18next/dist/esm/i18next.js.
Oh, I didn't see that coming. An import map seems like a practical approach: opening_hours.js#674. Once it is merged, I can prepare the follow-up PR here.
That should get the map deployable again without the shared symlink. There may be a better solution, but I think this is a good step forward for now.
Activity
KristjanESPERANTO commentedon Sep 15, 2026
Oh, I didn't see that coming. An import map seems like a practical approach: opening_hours.js#674. Once it is merged, I can prepare the follow-up PR here.
That should get the map deployable again without the shared symlink. There may be a better solution, but I think this is a good step forward for now.
HolgerJeromin commentedon Sep 15, 2026
Perhaps https://docs.npmjs.com/cli/v12/using-npm/workspaces is a solution here. Perhaps not :)
KristjanESPERANTO commentedon Sep 15, 2026
Ah, interesting. I have never worked with npm workspaces, but it sounds worth exploring. Would that essentially mean turning this into a monorepo?
For now, I would like to pursue the import map approach: #84
HolgerJeromin commentedon Sep 16, 2026
For me the workspace is a thing to have multiple
packages.jsonbut only onenode_modulesfolder.That is essentially my knowledge of this feature :-)
KristjanESPERANTO commentedon Sep 17, 2026
@ypid Since #84 and #85 are now merged, the immediate problem should be solved :)
We could explore workspaces separately as a cleanup of the overall integration.
ypid commentedon Sep 20, 2026
Thanks! It needed a bit more tweaking: opening-hours/opening_hours.js#675 Once reviewed and merged, I can deploy to ypid.de and make the release.
Deployed to https://openingh.openstreetmap.de/
KristjanESPERANTO commentedon Sep 20, 2026
@ypid Thanks for figuring this out! I merged the PR 🙂
ypid commentedon Sep 21, 2026
Thanks to you! I am closing this as solved then. I have opened #86 for the continues deployment.