@pnpm/patching.commands 1000.3.21 → 1100.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/lib/patch.d.ts +3 -2
- package/lib/patch.js +1 -0
- package/lib/patchCommit.d.ts +3 -2
- package/lib/patchCommit.js +2 -4
- package/lib/patchRemove.d.ts +3 -2
- package/lib/patchRemove.js +1 -0
- package/package.json +34 -33
package/lib/patch.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Config } from '@pnpm/config.reader';
|
|
1
|
+
import { type Config, type ConfigContext } from '@pnpm/config.reader';
|
|
2
2
|
import type { LogBase } from '@pnpm/logger';
|
|
3
3
|
import type { CreateStoreControllerOptions } from '@pnpm/store.connection-manager';
|
|
4
4
|
export declare function rcOptionsTypes(): Record<string, unknown>;
|
|
@@ -7,8 +7,9 @@ export declare const shorthands: {
|
|
|
7
7
|
d: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const commandNames: string[];
|
|
10
|
+
export declare const recursiveByDefault = true;
|
|
10
11
|
export declare function help(): string;
|
|
11
|
-
export type PatchCommandOptions = Pick<Config, 'dir' | 'patchedDependencies' | 'registries' | 'tag' | 'storeDir' | '
|
|
12
|
+
export type PatchCommandOptions = Pick<Config, 'dir' | 'patchedDependencies' | 'registries' | 'tag' | 'storeDir' | 'lockfileDir' | 'modulesDir' | 'virtualStoreDir' | 'sharedWorkspaceLockfile'> & Pick<ConfigContext, 'rootProjectManifest'> & CreateStoreControllerOptions & {
|
|
12
13
|
editDir?: string;
|
|
13
14
|
reporter?: (logObj: LogBase) => void;
|
|
14
15
|
ignoreExisting?: boolean;
|
package/lib/patch.js
CHANGED
package/lib/patchCommit.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type Config } from '@pnpm/config.reader';
|
|
1
|
+
import { type Config, type ConfigContext } from '@pnpm/config.reader';
|
|
2
2
|
import { install } from '@pnpm/installing.commands';
|
|
3
3
|
export declare const rcOptionsTypes: typeof cliOptionsTypes;
|
|
4
4
|
export declare function cliOptionsTypes(): Record<string, unknown>;
|
|
5
5
|
export declare const commandNames: string[];
|
|
6
|
+
export declare const recursiveByDefault = true;
|
|
6
7
|
export declare function help(): string;
|
|
7
|
-
type PatchCommitCommandOptions = install.InstallCommandOptions & Pick<Config, 'patchesDir' | '
|
|
8
|
+
type PatchCommitCommandOptions = install.InstallCommandOptions & Pick<Config, 'patchesDir' | 'patchedDependencies'> & Pick<ConfigContext, 'rootProjectManifest' | 'rootProjectManifestDir'>;
|
|
8
9
|
export declare function handler(opts: PatchCommitCommandOptions, params: string[]): Promise<string | undefined>;
|
|
9
10
|
export {};
|
package/lib/patchCommit.js
CHANGED
|
@@ -26,6 +26,7 @@ export function cliOptionsTypes() {
|
|
|
26
26
|
return pick(['patches-dir'], allTypes);
|
|
27
27
|
}
|
|
28
28
|
export const commandNames = ['patch-commit'];
|
|
29
|
+
export const recursiveByDefault = true;
|
|
29
30
|
export function help() {
|
|
30
31
|
return renderHelp({
|
|
31
32
|
description: 'Generate a patch out of a directory',
|
|
@@ -99,10 +100,7 @@ export async function handler(opts, params) {
|
|
|
99
100
|
return install.handler({
|
|
100
101
|
...opts,
|
|
101
102
|
patchedDependencies,
|
|
102
|
-
|
|
103
|
-
...opts.rawLocalConfig,
|
|
104
|
-
'frozen-lockfile': false,
|
|
105
|
-
},
|
|
103
|
+
frozenLockfile: false,
|
|
106
104
|
});
|
|
107
105
|
}
|
|
108
106
|
async function getPatchContent(ctx, opts) {
|
package/lib/patchRemove.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type Config } from '@pnpm/config.reader';
|
|
1
|
+
import { type Config, type ConfigContext } from '@pnpm/config.reader';
|
|
2
2
|
import { install } from '@pnpm/installing.commands';
|
|
3
3
|
export declare function rcOptionsTypes(): Record<string, unknown>;
|
|
4
4
|
export declare function cliOptionsTypes(): Record<string, unknown>;
|
|
5
5
|
export declare const commandNames: string[];
|
|
6
|
+
export declare const recursiveByDefault = true;
|
|
6
7
|
export declare function help(): string;
|
|
7
|
-
export type PatchRemoveCommandOptions = install.InstallCommandOptions & Pick<Config, 'dir' | 'lockfileDir' | 'patchesDir' | '
|
|
8
|
+
export type PatchRemoveCommandOptions = install.InstallCommandOptions & Pick<Config, 'dir' | 'lockfileDir' | 'patchesDir' | 'patchedDependencies'> & Pick<ConfigContext, 'rootProjectManifest'>;
|
|
8
9
|
export declare function handler(opts: PatchRemoveCommandOptions, params: string[]): Promise<void>;
|
package/lib/patchRemove.js
CHANGED
|
@@ -15,6 +15,7 @@ export function cliOptionsTypes() {
|
|
|
15
15
|
return { ...rcOptionsTypes() };
|
|
16
16
|
}
|
|
17
17
|
export const commandNames = ['patch-remove'];
|
|
18
|
+
export const recursiveByDefault = true;
|
|
18
19
|
export function help() {
|
|
19
20
|
return renderHelp({
|
|
20
21
|
description: 'Remove existing patch files',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/patching.commands",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1100.0.0",
|
|
4
4
|
"description": "Commands for creating patches",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -36,46 +36,47 @@
|
|
|
36
36
|
"render-help": "^2.0.0",
|
|
37
37
|
"safe-execa": "^0.3.0",
|
|
38
38
|
"semver": "^7.7.2",
|
|
39
|
-
"terminal-link": "^
|
|
39
|
+
"terminal-link": "^5.0.0",
|
|
40
40
|
"tinyglobby": "^0.2.14",
|
|
41
|
-
"@pnpm/
|
|
42
|
-
"@pnpm/config.writer": "
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/
|
|
46
|
-
"@pnpm/
|
|
47
|
-
"@pnpm/fetching.pick-fetcher": "
|
|
48
|
-
"@pnpm/fs.packlist": "
|
|
49
|
-
"@pnpm/installing.
|
|
50
|
-
"@pnpm/lockfile.fs": "
|
|
51
|
-
"@pnpm/installing.
|
|
52
|
-
"@pnpm/lockfile.utils": "
|
|
53
|
-
"@pnpm/
|
|
54
|
-
"@pnpm/
|
|
55
|
-
"@pnpm/
|
|
56
|
-
"@pnpm/store.
|
|
57
|
-
"@pnpm/
|
|
58
|
-
"@pnpm/
|
|
59
|
-
"@pnpm/
|
|
60
|
-
"@pnpm/workspace.workspace-manifest-reader": "
|
|
41
|
+
"@pnpm/cli.utils": "1100.0.0",
|
|
42
|
+
"@pnpm/config.writer": "1100.0.0",
|
|
43
|
+
"@pnpm/config.reader": "1100.0.0",
|
|
44
|
+
"@pnpm/constants": "1100.0.0",
|
|
45
|
+
"@pnpm/crypto.hash": "1100.0.0",
|
|
46
|
+
"@pnpm/error": "1100.0.0",
|
|
47
|
+
"@pnpm/fetching.pick-fetcher": "1100.0.0",
|
|
48
|
+
"@pnpm/fs.packlist": "1100.0.0",
|
|
49
|
+
"@pnpm/installing.commands": "1100.0.0",
|
|
50
|
+
"@pnpm/lockfile.fs": "1100.0.0",
|
|
51
|
+
"@pnpm/installing.modules-yaml": "1100.0.0",
|
|
52
|
+
"@pnpm/lockfile.utils": "1100.0.0",
|
|
53
|
+
"@pnpm/pkg-manifest.reader": "1100.0.0",
|
|
54
|
+
"@pnpm/store.connection-manager": "1100.0.0",
|
|
55
|
+
"@pnpm/patching.apply-patch": "1100.0.0",
|
|
56
|
+
"@pnpm/store.path": "1100.0.0",
|
|
57
|
+
"@pnpm/types": "1100.0.0",
|
|
58
|
+
"@pnpm/workspace.project-manifest-reader": "1100.0.0",
|
|
59
|
+
"@pnpm/resolving.parse-wanted-dependency": "1100.0.0",
|
|
60
|
+
"@pnpm/workspace.workspace-manifest-reader": "1100.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@jest/globals": "30.0
|
|
67
|
-
"@pnpm/registry-mock": "
|
|
66
|
+
"@jest/globals": "30.3.0",
|
|
67
|
+
"@pnpm/registry-mock": "6.0.0",
|
|
68
68
|
"@types/is-windows": "^1.0.2",
|
|
69
69
|
"@types/normalize-path": "^3.0.2",
|
|
70
|
-
"@types/ramda": "0.
|
|
70
|
+
"@types/ramda": "0.31.1",
|
|
71
71
|
"@types/semver": "7.7.1",
|
|
72
72
|
"tempy": "3.0.0",
|
|
73
73
|
"write-yaml-file": "^6.0.0",
|
|
74
|
-
"@pnpm/logger": "
|
|
75
|
-
"@pnpm/patching.commands": "
|
|
76
|
-
"@pnpm/
|
|
77
|
-
"@pnpm/workspace.projects-filter": "
|
|
78
|
-
"@pnpm/
|
|
74
|
+
"@pnpm/logger": "1100.0.0",
|
|
75
|
+
"@pnpm/patching.commands": "1100.0.0",
|
|
76
|
+
"@pnpm/test-fixtures": "1100.0.0",
|
|
77
|
+
"@pnpm/workspace.projects-filter": "1100.0.0",
|
|
78
|
+
"@pnpm/prepare": "1100.0.0",
|
|
79
|
+
"@pnpm/testing.command-defaults": "1100.0.0"
|
|
79
80
|
},
|
|
80
81
|
"engines": {
|
|
81
82
|
"node": ">=22.13"
|
|
@@ -86,8 +87,8 @@
|
|
|
86
87
|
"scripts": {
|
|
87
88
|
"start": "tsgo --watch",
|
|
88
89
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
90
|
+
"test": "pn compile && pn .test",
|
|
91
|
+
"compile": "tsgo --build && pn lint --fix",
|
|
92
|
+
".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
|
|
92
93
|
}
|
|
93
94
|
}
|