isolate-package 1.26.0 → 1.27.0-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 +41 -0
- package/dist/index.mjs +2 -1298
- package/dist/isolate-PuljYLyz.mjs +1176 -0
- package/dist/isolate-PuljYLyz.mjs.map +1 -0
- package/dist/isolate-bin.d.mts +1 -0
- package/dist/isolate-bin.mjs +11 -1307
- package/dist/isolate-bin.mjs.map +1 -1
- package/package.json +36 -29
- package/src/index.ts +7 -0
- package/src/isolate-bin.ts +19 -0
- package/src/isolate.ts +315 -0
- package/src/lib/config.ts +90 -0
- package/src/lib/lockfile/helpers/generate-npm-lockfile.ts +51 -0
- package/src/lib/lockfile/helpers/generate-pnpm-lockfile.ts +272 -0
- package/src/lib/lockfile/helpers/generate-yarn-lockfile.ts +50 -0
- package/src/lib/lockfile/helpers/index.ts +4 -0
- package/src/lib/lockfile/helpers/load-npm-config.ts +15 -0
- package/src/lib/lockfile/helpers/pnpm-map-importer.ts +62 -0
- package/src/lib/lockfile/index.ts +1 -0
- package/src/lib/lockfile/process-lockfile.ts +121 -0
- package/src/lib/logger.ts +59 -0
- package/src/lib/manifest/adapt-target-package-manifest.ts +74 -0
- package/src/lib/manifest/helpers/adapt-internal-package-manifests.ts +54 -0
- package/src/lib/manifest/helpers/adapt-manifest-internal-deps.ts +37 -0
- package/src/lib/manifest/helpers/adopt-pnpm-fields-from-root.test.ts +212 -0
- package/src/lib/manifest/helpers/adopt-pnpm-fields-from-root.ts +49 -0
- package/src/lib/manifest/helpers/index.ts +4 -0
- package/src/lib/manifest/helpers/patch-internal-entries.ts +42 -0
- package/src/lib/manifest/index.ts +4 -0
- package/src/lib/manifest/io.ts +18 -0
- package/src/lib/manifest/validate-manifest.test.ts +118 -0
- package/src/lib/manifest/validate-manifest.ts +48 -0
- package/src/lib/output/get-build-output-dir.ts +45 -0
- package/src/lib/output/index.ts +4 -0
- package/src/lib/output/pack-dependencies.ts +54 -0
- package/src/lib/output/process-build-output-files.ts +35 -0
- package/src/lib/output/unpack-dependencies.ts +41 -0
- package/src/lib/package-manager/helpers/index.ts +2 -0
- package/src/lib/package-manager/helpers/infer-from-files.ts +39 -0
- package/src/lib/package-manager/helpers/infer-from-manifest.ts +47 -0
- package/src/lib/package-manager/index.ts +46 -0
- package/src/lib/package-manager/names.ts +28 -0
- package/src/lib/patches/copy-patches.ts +126 -0
- package/src/lib/registry/create-packages-registry.ts +96 -0
- package/src/lib/registry/helpers/find-packages-globs.ts +80 -0
- package/src/lib/registry/helpers/index.ts +1 -0
- package/src/lib/registry/index.ts +2 -0
- package/src/lib/registry/list-internal-packages.ts +40 -0
- package/src/lib/types.ts +29 -0
- package/src/lib/utils/filter-object-undefined.test.ts +17 -0
- package/src/lib/utils/filter-object-undefined.ts +5 -0
- package/src/lib/utils/get-dirname.ts +9 -0
- package/src/lib/utils/get-error-message.ts +25 -0
- package/src/lib/utils/get-major-version.ts +3 -0
- package/src/lib/utils/index.ts +11 -0
- package/src/lib/utils/inspect-value.ts +5 -0
- package/src/lib/utils/is-present.ts +12 -0
- package/src/lib/utils/is-rush-workspace.ts +10 -0
- package/src/lib/utils/json.ts +32 -0
- package/src/lib/utils/log-paths.ts +13 -0
- package/src/lib/utils/pack.ts +78 -0
- package/src/lib/utils/unpack.ts +13 -0
- package/src/lib/utils/yaml.ts +21 -0
- package/src/vendor.d.ts +3 -0
- package/dist/index.d.ts +0 -37
- package/dist/index.mjs.map +0 -1
- package/dist/isolate-bin.d.ts +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/lib/logger.d.ts
|
|
2
|
+
type LogLevel = "info" | "debug" | "warn" | "error";
|
|
3
|
+
/**
|
|
4
|
+
* The Logger defines an interface that can be used to pass in a different
|
|
5
|
+
* logger object in order to intercept all the logging output.
|
|
6
|
+
*/
|
|
7
|
+
type Logger = {
|
|
8
|
+
debug(message: unknown, ...args: unknown[]): void;
|
|
9
|
+
info(message: unknown, ...args: unknown[]): void;
|
|
10
|
+
warn(message: unknown, ...args: unknown[]): void;
|
|
11
|
+
error(message: unknown, ...args: unknown[]): void;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/lib/config.d.ts
|
|
15
|
+
type IsolateConfigResolved = {
|
|
16
|
+
buildDirName?: string;
|
|
17
|
+
includeDevDependencies: boolean;
|
|
18
|
+
includePatchedDependencies: boolean;
|
|
19
|
+
isolateDirName: string;
|
|
20
|
+
logLevel: LogLevel;
|
|
21
|
+
targetPackagePath?: string;
|
|
22
|
+
tsconfigPath: string;
|
|
23
|
+
workspacePackages?: string[];
|
|
24
|
+
workspaceRoot: string;
|
|
25
|
+
forceNpm: boolean;
|
|
26
|
+
pickFromScripts?: string[];
|
|
27
|
+
omitFromScripts?: string[];
|
|
28
|
+
omitPackageManager?: boolean;
|
|
29
|
+
};
|
|
30
|
+
type IsolateConfig = Partial<IsolateConfigResolved>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/isolate.d.ts
|
|
33
|
+
declare function isolate(config?: IsolateConfig): Promise<string>;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/index.d.ts
|
|
36
|
+
type IsolateExports = {
|
|
37
|
+
isolate: typeof isolate;
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { IsolateExports, type Logger, isolate };
|
|
41
|
+
//# sourceMappingURL=index.d.mts.map
|