isolate-package 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -1
- package/dist/index.mjs +1 -1
- package/dist/{isolate-CJy3YyKG.mjs → isolate-BRD2AgVJ.mjs} +422 -125
- package/dist/isolate-BRD2AgVJ.mjs.map +1 -0
- package/dist/isolate-bin.mjs +3 -3
- package/dist/isolate-bin.mjs.map +1 -1
- package/package.json +11 -2
- package/src/isolate-bin.ts +2 -2
- package/src/isolate.ts +30 -0
- package/src/lib/config.ts +31 -6
- package/src/lib/lockfile/helpers/__fixtures__/internal-deps/workspace/package-lock.json +82 -0
- package/src/lib/lockfile/helpers/__fixtures__/internal-deps/workspace/package.json +8 -0
- package/src/lib/lockfile/helpers/__fixtures__/internal-deps/workspace/packages/api/package.json +12 -0
- package/src/lib/lockfile/helpers/__fixtures__/internal-deps/workspace/packages/shared/package.json +12 -0
- package/src/lib/lockfile/helpers/__fixtures__/internal-deps/workspace/packages/utils/package.json +11 -0
- package/src/lib/lockfile/helpers/__fixtures__/nested-version-override/workspace/package-lock.json +56 -0
- package/src/lib/lockfile/helpers/__fixtures__/nested-version-override/workspace/package.json +8 -0
- package/src/lib/lockfile/helpers/__fixtures__/nested-version-override/workspace/packages/api/package.json +11 -0
- package/src/lib/lockfile/helpers/__fixtures__/nested-version-override/workspace/packages/other/package.json +11 -0
- package/src/lib/lockfile/helpers/generate-npm-lockfile.integration.test.ts +243 -0
- package/src/lib/lockfile/helpers/generate-npm-lockfile.test.ts +604 -0
- package/src/lib/lockfile/helpers/generate-npm-lockfile.ts +417 -21
- package/src/lib/lockfile/process-lockfile.test.ts +4 -0
- package/src/lib/lockfile/process-lockfile.ts +14 -16
- package/src/lib/patches/copy-patches.test.ts +78 -0
- package/src/lib/patches/copy-patches.ts +22 -1
- package/src/lib/registry/collect-reachable-package-names.test.ts +239 -0
- package/src/lib/registry/collect-reachable-package-names.ts +60 -0
- package/src/lib/registry/index.ts +1 -0
- package/src/lib/utils/filter-patched-dependencies.test.ts +77 -0
- package/src/lib/utils/filter-patched-dependencies.ts +41 -17
- package/src/lib/utils/is-rush-workspace.ts +6 -0
- package/dist/isolate-CJy3YyKG.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -20,7 +20,13 @@ type IsolateConfigResolved = {
|
|
|
20
20
|
targetPackagePath?: string;
|
|
21
21
|
tsconfigPath: string;
|
|
22
22
|
workspacePackages?: string[];
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Path to the workspace root, relative to the target package directory.
|
|
25
|
+
* When omitted, the workspace root is auto-detected by walking upward from
|
|
26
|
+
* the target package directory looking for a pnpm-workspace.yaml, a
|
|
27
|
+
* package.json with a `workspaces` field, or a rush.json.
|
|
28
|
+
*/
|
|
29
|
+
workspaceRoot?: string;
|
|
24
30
|
forceNpm: boolean;
|
|
25
31
|
pickFromScripts?: string[];
|
|
26
32
|
omitFromScripts?: string[];
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as detectPackageManager, i as defineConfig, l as readTypedJson, n as listInternalPackages, o as resolveConfig, r as createPackagesRegistry, s as resolveWorkspacePaths, t as isolate } from "./isolate-
|
|
1
|
+
import { c as detectPackageManager, i as defineConfig, l as readTypedJson, n as listInternalPackages, o as resolveConfig, r as createPackagesRegistry, s as resolveWorkspacePaths, t as isolate } from "./isolate-BRD2AgVJ.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region src/get-internal-package-names.ts
|
|
4
4
|
/**
|