Skip to content

requires node_modules to be a symlink to opening-hours/opening_hours.js node_modules #83

Closed

Description

@ypid

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.

Activity

  1. KristjanESPERANTO commented on Sep 15, 2026

    @KristjanESPERANTO
    Member

    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.

  2. HolgerJeromin commented on Sep 15, 2026

    @HolgerJeromin
    Contributor

    Perhaps https://docs.npmjs.com/cli/v12/using-npm/workspaces is a solution here. Perhaps not :)

  3. KristjanESPERANTO commented on Sep 15, 2026

    @KristjanESPERANTO
    Member

    Perhaps docs.npmjs.com/cli/v12/using-npm/workspaces is a solution here. Perhaps not :)

    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

  4. HolgerJeromin commented on Sep 16, 2026

    @HolgerJeromin
    Contributor

    For me the workspace is a thing to have multiple packages.json but only one node_modules folder.
    That is essentially my knowledge of this feature :-)

  5. KristjanESPERANTO commented on Sep 17, 2026

    @KristjanESPERANTO
    Member

    @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.

  6. ypid commented on Sep 20, 2026

    @ypid
    MemberAuthor

    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/

  7. KristjanESPERANTO commented on Sep 20, 2026

    @KristjanESPERANTO
    Member

    @ypid Thanks for figuring this out! I merged the PR 🙂

  8. ypid commented on Sep 21, 2026

    @ypid
    MemberAuthor

    Thanks to you! I am closing this as solved then. I have opened #86 for the continues deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions