Skip to content

Conversation

@sosoba
Copy link

@sosoba sosoba commented Sep 24, 2025

Currently we nedd to explicitly refer to the xml-core module to get a reference to the setNodeDependencies function.

npm i xadesjs
import { setNodeDependencies } from 'xml-core';
import { Application, Parse, SignedXml } from 'xadesjs';

This works "by mistake" because the default, not recommended strategy for npm to build dependencies is a "flat tree".

With .npmrc:

install-strategy=shallow

npm (like pnpm) install only direct deps at top-level.

This p.r. solved this and allow to configure xml-core:

import { Application, Parse, SignedXml, setNodeDependencies } from 'xadesjs';

I kindly ask you to approve this improvement. Best regards.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant