Skip to content

Commit 63bc1df

Browse files
committed
fix(post-build): readPackageJson moved to packages/read in 6.0.7
The post-build script imports readPackageJson from the -stable surface. 6.0.7 split packages/operations by concern, moving readPackageJson to packages/read; -stable now pins 6.0.7, so the old packages/operations subpath no longer resolves (ERR_PACKAGE_PATH_NOT_EXPORTED). Repoint the import.
1 parent 4dc6672 commit 63bc1df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/post-build/make-package-exports.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import fastGlob from 'fast-glob'
1313

1414
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
1515
import { toSortedObject } from '@socketsecurity/lib-stable/objects/sort'
16-
// Scripts run against the RELEASED `-stable` surface (never src/). readPackageJson
17-
// lives at `packages/operations` in the released version; the WIP src/ rename to
18-
// `packages/read` only applies after 6.0.7 ships, at which point this bumps too.
19-
import { readPackageJson } from '@socketsecurity/lib-stable/packages/operations'
16+
// Scripts run against the RELEASED `-stable` surface (never src/).
17+
// readPackageJson moved from `packages/operations` to `packages/read` in the
18+
// 6.0.7 reorg (operations split by concern); -stable now pins 6.0.7.
19+
import { readPackageJson } from '@socketsecurity/lib-stable/packages/read'
2020

2121
const logger = getDefaultLogger()
2222

0 commit comments

Comments
 (0)