Skip to content

Commit e71501d

Browse files
committed
fix(patchedPryv): move @pryv/cmc import to top of file
The `import * as _cmc from '@pryv/cmc'` was sitting below the namespace pryv declaration-merging block, tripping eslint's import-x/first rule and breaking `npm run lint` since c85e29b (Plan 59 Phase 1 pryv bump). Move it up with the other imports; keep `export const cmc = _cmc;` where it was. Pure reorder — ESM imports are hoisted regardless of declared position, so runtime behaviour is unchanged. Verified locally: tsc clean, webpack clean, 499 tests pass, and the InviteSplash flow in hds-webapp (heaviest cmc consumer in the workspace) renders without console errors.
1 parent 3061fd4 commit e71501d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ts/patchedPryv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import _pryv from 'pryv';
99
import type * as _PryvTypes from 'pryv';
1010
import monitor from '@pryv/monitor';
1111
import socketIo from '@pryv/socket.io';
12+
import * as _cmc from '@pryv/cmc';
1213
// @ts-expect-error CJS plugin pattern: module.exports = function(pryv) { ... }
1314
monitor(_pryv);
1415
// @ts-expect-error CJS plugin pattern: module.exports = function(pryv) { ... }
@@ -40,5 +41,4 @@ export namespace pryv {
4041
export type KeyValue = _PryvTypes.KeyValue;
4142
}
4243

43-
import * as _cmc from '@pryv/cmc';
4444
export const cmc = _cmc;

0 commit comments

Comments
 (0)