@procedures/pnpm 0.2.3 → 0.4.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/CHANGELOG.md +64 -0
- package/README.md +40 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +111 -0
- package/dist/module.js.map +1 -1
- package/dist/procedures/pnpm/add.js +2 -2
- package/dist/procedures/pnpm/add.js.map +1 -1
- package/dist/procedures/pnpm/exec.d.ts +17 -0
- package/dist/procedures/pnpm/exec.d.ts.map +1 -0
- package/dist/procedures/pnpm/exec.js +19 -0
- package/dist/procedures/pnpm/exec.js.map +1 -0
- package/dist/procedures/pnpm/index.d.ts +6 -0
- package/dist/procedures/pnpm/index.d.ts.map +1 -1
- package/dist/procedures/pnpm/index.js +6 -0
- package/dist/procedures/pnpm/index.js.map +1 -1
- package/dist/procedures/pnpm/install.js +2 -2
- package/dist/procedures/pnpm/install.js.map +1 -1
- package/dist/procedures/pnpm/list.d.ts +22 -0
- package/dist/procedures/pnpm/list.d.ts.map +1 -0
- package/dist/procedures/pnpm/list.js +30 -0
- package/dist/procedures/pnpm/list.js.map +1 -0
- package/dist/procedures/pnpm/outdated.d.ts +19 -0
- package/dist/procedures/pnpm/outdated.d.ts.map +1 -0
- package/dist/procedures/pnpm/outdated.js +29 -0
- package/dist/procedures/pnpm/outdated.js.map +1 -0
- package/dist/procedures/pnpm/pack.d.ts +17 -0
- package/dist/procedures/pnpm/pack.d.ts.map +1 -0
- package/dist/procedures/pnpm/pack.js +24 -0
- package/dist/procedures/pnpm/pack.js.map +1 -0
- package/dist/procedures/pnpm/remove.js +2 -2
- package/dist/procedures/pnpm/remove.js.map +1 -1
- package/dist/procedures/pnpm/run.js +2 -2
- package/dist/procedures/pnpm/run.js.map +1 -1
- package/dist/procedures/pnpm/shared.d.ts +20 -1
- package/dist/procedures/pnpm/shared.d.ts.map +1 -1
- package/dist/procedures/pnpm/shared.js +33 -2
- package/dist/procedures/pnpm/shared.js.map +1 -1
- package/dist/procedures/pnpm/update.d.ts +16 -0
- package/dist/procedures/pnpm/update.d.ts.map +1 -0
- package/dist/procedures/pnpm/update.js +25 -0
- package/dist/procedures/pnpm/update.js.map +1 -0
- package/dist/procedures/pnpm/why.d.ts +16 -0
- package/dist/procedures/pnpm/why.d.ts.map +1 -0
- package/dist/procedures/pnpm/why.js +20 -0
- package/dist/procedures/pnpm/why.js.map +1 -0
- package/dist/types.d.ts +86 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +104 -0
- package/dist/types.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +19 -0
- package/src/module.ts +143 -0
- package/src/procedures/pnpm/add.ts +2 -2
- package/src/procedures/pnpm/exec.ts +22 -0
- package/src/procedures/pnpm/index.ts +6 -0
- package/src/procedures/pnpm/install.ts +2 -2
- package/src/procedures/pnpm/list.ts +31 -0
- package/src/procedures/pnpm/outdated.ts +29 -0
- package/src/procedures/pnpm/pack.ts +25 -0
- package/src/procedures/pnpm/remove.ts +2 -2
- package/src/procedures/pnpm/run.ts +2 -2
- package/src/procedures/pnpm/shared.ts +44 -3
- package/src/procedures/pnpm/update.ts +25 -0
- package/src/procedures/pnpm/why.ts +23 -0
- package/src/types.ts +211 -0
package/dist/index.d.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export type { PnpmInstallInput, PnpmAddInput, PnpmRemoveInput, PnpmLinkInput, PnpmRunInput, PnpmCommandOutput, } from "./types.js";
|
|
26
|
-
export { PnpmInstallInputSchema, PnpmAddInputSchema, PnpmRemoveInputSchema, PnpmLinkInputSchema, PnpmRunInputSchema, } from "./types.js";
|
|
27
|
-
export { pnpmInstall, pnpmAdd, pnpmRemove, pnpmLink, pnpmRun, } from "./procedures/pnpm/index.js";
|
|
25
|
+
export type { PnpmInstallInput, PnpmAddInput, PnpmRemoveInput, PnpmLinkInput, PnpmRunInput, PnpmCommandOutput, PnpmJsonOutput, PnpmExecInput, PnpmListInput, PnpmWhyInput, PnpmOutdatedInput, PnpmUpdateInput, PnpmPackInput, } from "./types.js";
|
|
26
|
+
export { PnpmInstallInputSchema, PnpmAddInputSchema, PnpmRemoveInputSchema, PnpmLinkInputSchema, PnpmRunInputSchema, PnpmExecInputSchema, PnpmListInputSchema, PnpmWhyInputSchema, PnpmOutdatedInputSchema, PnpmUpdateInputSchema, PnpmPackInputSchema, } from "./types.js";
|
|
27
|
+
export { pnpmInstall, pnpmAdd, pnpmRemove, pnpmLink, pnpmRun, pnpmExec, pnpmList, pnpmWhy, pnpmOutdated, pnpmUpdate, pnpmPack, } from "./procedures/pnpm/index.js";
|
|
28
28
|
export { resolvePnpm } from "./procedures/pnpm/shared.js";
|
|
29
29
|
export { registerPnpmProcedures } from "./module.js";
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export { PnpmInstallInputSchema, PnpmAddInputSchema, PnpmRemoveInputSchema, PnpmLinkInputSchema, PnpmRunInputSchema, } from "./types.js";
|
|
25
|
+
export { PnpmInstallInputSchema, PnpmAddInputSchema, PnpmRemoveInputSchema, PnpmLinkInputSchema, PnpmRunInputSchema, PnpmExecInputSchema, PnpmListInputSchema, PnpmWhyInputSchema, PnpmOutdatedInputSchema, PnpmUpdateInputSchema, PnpmPackInputSchema, } from "./types.js";
|
|
26
26
|
// Procedures
|
|
27
|
-
export { pnpmInstall, pnpmAdd, pnpmRemove, pnpmLink, pnpmRun, } from "./procedures/pnpm/index.js";
|
|
27
|
+
export { pnpmInstall, pnpmAdd, pnpmRemove, pnpmLink, pnpmRun, pnpmExec, pnpmList, pnpmWhy, pnpmOutdated, pnpmUpdate, pnpmPack, } from "./procedures/pnpm/index.js";
|
|
28
28
|
// How the procedures find pnpm (no shell): other packages that run pnpm use it too
|
|
29
29
|
export { resolvePnpm } from "./procedures/pnpm/shared.js";
|
|
30
30
|
// Registration
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAmBH,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,aAAa;AACb,OAAO,EACL,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,MAAM,4BAA4B,CAAC;AAEpC,mFAAmF;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,eAAe;AACf,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAA6C,KAAK,eAAe,EAAuC,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAA6C,KAAK,eAAe,EAAuC,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA2QlK;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,eAaN,CAAC;eAEL,UAAU;AAEzB;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,GAAE,iBAAsC,GAAG,IAAI,CAE7F"}
|
package/dist/module.js
CHANGED
|
@@ -9,6 +9,13 @@ import { createProcedure, zodAdapter, defineModule, PROCEDURE_REGISTRY, register
|
|
|
9
9
|
import shellModule from "@procedures/shell/module";
|
|
10
10
|
import { pnpmInstall, pnpmAdd, pnpmRemove, pnpmLink, pnpmRun, pnpmStorePath } from "./procedures/pnpm/index.js";
|
|
11
11
|
import { PnpmInstallInputSchema, PnpmAddInputSchema, PnpmRemoveInputSchema, PnpmLinkInputSchema, PnpmRunInputSchema, PnpmStorePathInputSchema, PnpmCommandOutputSchema, PnpmStorePathOutputSchema, } from "./types.js";
|
|
12
|
+
import { pnpmExec } from "./procedures/pnpm/exec.js";
|
|
13
|
+
import { pnpmList } from "./procedures/pnpm/list.js";
|
|
14
|
+
import { pnpmWhy } from "./procedures/pnpm/why.js";
|
|
15
|
+
import { pnpmOutdated } from "./procedures/pnpm/outdated.js";
|
|
16
|
+
import { pnpmUpdate } from "./procedures/pnpm/update.js";
|
|
17
|
+
import { pnpmPack } from "./procedures/pnpm/pack.js";
|
|
18
|
+
import { PnpmExecInputSchema, PnpmExecOutputSchema, PnpmListInputSchema, PnpmListOutputSchema, PnpmWhyInputSchema, PnpmWhyOutputSchema, PnpmOutdatedInputSchema, PnpmOutdatedOutputSchema, PnpmUpdateInputSchema, PnpmUpdateOutputSchema, PnpmPackInputSchema, PnpmPackOutputSchema, } from "./types.js";
|
|
12
19
|
// =============================================================================
|
|
13
20
|
// Procedures
|
|
14
21
|
// =============================================================================
|
|
@@ -18,6 +25,7 @@ const pnpmInstallProcedure = createProcedure()
|
|
|
18
25
|
.output(zodAdapter(PnpmCommandOutputSchema))
|
|
19
26
|
.meta({
|
|
20
27
|
description: "Install packages using pnpm",
|
|
28
|
+
calls: ["shell.run"],
|
|
21
29
|
// pnpm reads the npm registry, rewrites node_modules and the lockfile, and runs the
|
|
22
30
|
// lifecycle scripts and the pnpmfile of the project
|
|
23
31
|
effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
|
|
@@ -34,6 +42,7 @@ const pnpmAddProcedure = createProcedure()
|
|
|
34
42
|
.output(zodAdapter(PnpmCommandOutputSchema))
|
|
35
43
|
.meta({
|
|
36
44
|
description: "Add packages using pnpm",
|
|
45
|
+
calls: ["shell.run"],
|
|
37
46
|
effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
|
|
38
47
|
args: ["packages"],
|
|
39
48
|
shorts: { cwd: "C", dev: "D", global: "g" },
|
|
@@ -49,6 +58,7 @@ const pnpmRemoveProcedure = createProcedure()
|
|
|
49
58
|
.output(zodAdapter(PnpmCommandOutputSchema))
|
|
50
59
|
.meta({
|
|
51
60
|
description: "Remove packages using pnpm",
|
|
61
|
+
calls: ["shell.run"],
|
|
52
62
|
// pnpm resolves the remaining dependencies again, so it can read the npm registry
|
|
53
63
|
effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
|
|
54
64
|
args: ["packages"],
|
|
@@ -65,6 +75,7 @@ const pnpmLinkProcedure = createProcedure()
|
|
|
65
75
|
.output(zodAdapter(PnpmCommandOutputSchema))
|
|
66
76
|
.meta({
|
|
67
77
|
description: "Link packages using pnpm",
|
|
78
|
+
calls: ["shell.run"],
|
|
68
79
|
effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
|
|
69
80
|
shorts: { cwd: "C", global: "g" },
|
|
70
81
|
output: "json",
|
|
@@ -79,6 +90,7 @@ const pnpmRunProcedure = createProcedure()
|
|
|
79
90
|
.output(zodAdapter(PnpmCommandOutputSchema))
|
|
80
91
|
.meta({
|
|
81
92
|
description: "Run package scripts using pnpm",
|
|
93
|
+
calls: ["shell.run"],
|
|
82
94
|
// A package script is code of the project: it can do anything
|
|
83
95
|
effects: { reads: ["fs"], writes: ["process"] },
|
|
84
96
|
args: ["script"],
|
|
@@ -106,6 +118,99 @@ const pnpmStorePathProcedure = createProcedure()
|
|
|
106
118
|
})
|
|
107
119
|
.build();
|
|
108
120
|
// =============================================================================
|
|
121
|
+
// Roadmap R41: exec, list, why, outdated, update, pack
|
|
122
|
+
// =============================================================================
|
|
123
|
+
const pnpmExecProcedure = createProcedure()
|
|
124
|
+
.path(["pnpm", "exec"])
|
|
125
|
+
.input(zodAdapter(PnpmExecInputSchema))
|
|
126
|
+
.output(zodAdapter(PnpmExecOutputSchema))
|
|
127
|
+
.meta({
|
|
128
|
+
description: "Run a program of the dependencies (node_modules/.bin) with pnpm exec",
|
|
129
|
+
calls: ["shell.run"],
|
|
130
|
+
// The program is any program of the dependencies: it can do anything, as pnpm.run
|
|
131
|
+
effects: { reads: ["fs"], writes: ["process"] },
|
|
132
|
+
args: ["command", "args"],
|
|
133
|
+
shorts: { cwd: "C", recursive: "r" },
|
|
134
|
+
output: "json",
|
|
135
|
+
})
|
|
136
|
+
.handler(async (input, ctx) => pnpmExec(input, ctx))
|
|
137
|
+
.build();
|
|
138
|
+
const pnpmListProcedure = createProcedure()
|
|
139
|
+
.path(["pnpm", "list"])
|
|
140
|
+
.input(zodAdapter(PnpmListInputSchema))
|
|
141
|
+
.output(zodAdapter(PnpmListOutputSchema))
|
|
142
|
+
.meta({
|
|
143
|
+
description: "List the installed packages: data is the JSON of pnpm list --json",
|
|
144
|
+
calls: ["shell.run"],
|
|
145
|
+
// It reads package.json, the lockfile and node_modules
|
|
146
|
+
effects: { reads: ["fs"], writes: [] },
|
|
147
|
+
args: ["packages"],
|
|
148
|
+
shorts: { cwd: "C", depth: "d", recursive: "r" },
|
|
149
|
+
output: "json",
|
|
150
|
+
})
|
|
151
|
+
.handler(async (input, ctx) => pnpmList(input, ctx))
|
|
152
|
+
.build();
|
|
153
|
+
const pnpmWhyProcedure = createProcedure()
|
|
154
|
+
.path(["pnpm", "why"])
|
|
155
|
+
.input(zodAdapter(PnpmWhyInputSchema))
|
|
156
|
+
.output(zodAdapter(PnpmWhyOutputSchema))
|
|
157
|
+
.meta({
|
|
158
|
+
description: "Show the packages that depend on a package: data is the JSON of pnpm why --json",
|
|
159
|
+
calls: ["shell.run"],
|
|
160
|
+
effects: { reads: ["fs"], writes: [] },
|
|
161
|
+
args: ["packages"],
|
|
162
|
+
shorts: { cwd: "C", depth: "d", recursive: "r" },
|
|
163
|
+
output: "json",
|
|
164
|
+
})
|
|
165
|
+
.handler(async (input, ctx) => pnpmWhy(input, ctx))
|
|
166
|
+
.build();
|
|
167
|
+
const pnpmOutdatedProcedure = createProcedure()
|
|
168
|
+
.path(["pnpm", "outdated"])
|
|
169
|
+
.input(zodAdapter(PnpmOutdatedInputSchema))
|
|
170
|
+
.output(zodAdapter(PnpmOutdatedOutputSchema))
|
|
171
|
+
.meta({
|
|
172
|
+
description: "List the outdated packages: data is the JSON of pnpm outdated",
|
|
173
|
+
calls: ["shell.run"],
|
|
174
|
+
// pnpm reads the versions of the npm registry
|
|
175
|
+
effects: { reads: ["fs", "network"], writes: [] },
|
|
176
|
+
args: ["packages"],
|
|
177
|
+
shorts: { cwd: "C", recursive: "r" },
|
|
178
|
+
output: "json",
|
|
179
|
+
})
|
|
180
|
+
.handler(async (input, ctx) => pnpmOutdated(input, ctx))
|
|
181
|
+
.build();
|
|
182
|
+
const pnpmUpdateProcedure = createProcedure()
|
|
183
|
+
.path(["pnpm", "update"])
|
|
184
|
+
.input(zodAdapter(PnpmUpdateInputSchema))
|
|
185
|
+
.output(zodAdapter(PnpmUpdateOutputSchema))
|
|
186
|
+
.meta({
|
|
187
|
+
description: "Update packages to their newest versions in the ranges, or with latest to the latest versions",
|
|
188
|
+
calls: ["shell.run"],
|
|
189
|
+
// As pnpm.install: the registry, node_modules, the lockfile and the lifecycle scripts
|
|
190
|
+
effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
|
|
191
|
+
args: ["packages"],
|
|
192
|
+
shorts: { cwd: "C", latest: "L", recursive: "r" },
|
|
193
|
+
output: "json",
|
|
194
|
+
})
|
|
195
|
+
.handler(async (input, ctx) => pnpmUpdate(input, ctx))
|
|
196
|
+
.build();
|
|
197
|
+
const pnpmPackProcedure = createProcedure()
|
|
198
|
+
.path(["pnpm", "pack"])
|
|
199
|
+
.input(zodAdapter(PnpmPackInputSchema))
|
|
200
|
+
.output(zodAdapter(PnpmPackOutputSchema))
|
|
201
|
+
.meta({
|
|
202
|
+
description: "Make a tarball of the package: data gives its file name and files",
|
|
203
|
+
calls: ["shell.run"],
|
|
204
|
+
// It writes the tarball (it replaces a tarball of the same name), and pnpm runs the prepack,
|
|
205
|
+
// prepare and postpack scripts of the package
|
|
206
|
+
effects: { reads: ["fs"], writes: ["fs", "process"] },
|
|
207
|
+
args: [],
|
|
208
|
+
shorts: { cwd: "C", destination: "d", dryRun: "n" },
|
|
209
|
+
output: "json",
|
|
210
|
+
})
|
|
211
|
+
.handler(async (input, ctx) => pnpmPack(input, ctx))
|
|
212
|
+
.build();
|
|
213
|
+
// =============================================================================
|
|
109
214
|
// Registration
|
|
110
215
|
// =============================================================================
|
|
111
216
|
/**
|
|
@@ -119,6 +224,12 @@ export const pnpmModule = defineModule("@procedures/pnpm", [
|
|
|
119
224
|
pnpmLinkProcedure,
|
|
120
225
|
pnpmRunProcedure,
|
|
121
226
|
pnpmStorePathProcedure,
|
|
227
|
+
pnpmExecProcedure,
|
|
228
|
+
pnpmListProcedure,
|
|
229
|
+
pnpmWhyProcedure,
|
|
230
|
+
pnpmOutdatedProcedure,
|
|
231
|
+
pnpmUpdateProcedure,
|
|
232
|
+
pnpmPackProcedure,
|
|
122
233
|
], [shellModule]);
|
|
123
234
|
export default pnpmModule;
|
|
124
235
|
/**
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAwB,kBAAkB,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAClK,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,Q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AC,CAAC;AAEpB,eAAe,UAAU,CAAC;AAE1B;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAQ,GAAsB,kBAAkB;IACrF,eAAe,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Add packages using pnpm.
|
|
5
5
|
*/
|
|
6
|
-
import { pnpmArg, runPnpm } from "./shared.js";
|
|
6
|
+
import { pnpmArg, runPnpm, selectionArgs } from "./shared.js";
|
|
7
7
|
/**
|
|
8
8
|
* Add packages using pnpm
|
|
9
9
|
*
|
|
@@ -22,7 +22,7 @@ import { pnpmArg, runPnpm } from "./shared.js";
|
|
|
22
22
|
*/
|
|
23
23
|
export async function pnpmAdd(input, ctx) {
|
|
24
24
|
{
|
|
25
|
-
const args = ["add", ...input.packages.map((p) => pnpmArg("package", p))];
|
|
25
|
+
const args = [...selectionArgs(input), "add", ...input.packages.map((p) => pnpmArg("package", p))];
|
|
26
26
|
// Add flags
|
|
27
27
|
if (input.dev)
|
|
28
28
|
args.push("--save-dev");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/add.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/add.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAmB,EACnB,GAAqB;IAErB,CAAC;QACC,MAAM,IAAI,GAAa,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAE7G,YAAY;QACZ,IAAI,KAAK,CAAC,GAAG;YAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,KAAK,CAAC,MAAM;YAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.exec procedure
|
|
3
|
+
*
|
|
4
|
+
* Run a program of the dependencies with `pnpm exec` (roadmap R41). pnpm finds the program in
|
|
5
|
+
* `node_modules/.bin`. No shell runs it: "--" ends the options of pnpm, and each argument goes
|
|
6
|
+
* to the program as it is.
|
|
7
|
+
*/
|
|
8
|
+
import type { ProcedureContext } from "@procedures/client";
|
|
9
|
+
import type { PnpmExecInput, PnpmExecOutput } from "../../types.js";
|
|
10
|
+
/**
|
|
11
|
+
* Run a program of the dependencies with pnpm exec
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* await client.call(["pnpm", "exec"], { command: "tsc", args: ["--noEmit"], filter: ["@scope/app"] });
|
|
15
|
+
*/
|
|
16
|
+
export declare function pnpmExec(input: PnpmExecInput, ctx: ProcedureContext): Promise<PnpmExecOutput>;
|
|
17
|
+
//# sourceMappingURL=exec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../src/procedures/pnpm/exec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpE;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CAGnG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.exec procedure
|
|
3
|
+
*
|
|
4
|
+
* Run a program of the dependencies with `pnpm exec` (roadmap R41). pnpm finds the program in
|
|
5
|
+
* `node_modules/.bin`. No shell runs it: "--" ends the options of pnpm, and each argument goes
|
|
6
|
+
* to the program as it is.
|
|
7
|
+
*/
|
|
8
|
+
import { pnpmArg, runPnpm, selectionArgs } from "./shared.js";
|
|
9
|
+
/**
|
|
10
|
+
* Run a program of the dependencies with pnpm exec
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* await client.call(["pnpm", "exec"], { command: "tsc", args: ["--noEmit"], filter: ["@scope/app"] });
|
|
14
|
+
*/
|
|
15
|
+
export async function pnpmExec(input, ctx) {
|
|
16
|
+
const args = [...selectionArgs(input), "exec", "--", pnpmArg("command", input.command), ...(input.args ?? [])];
|
|
17
|
+
return runPnpm(args, input, ctx);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=exec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/exec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,KAAoB,EAAE,GAAqB;IACxE,MAAM,IAAI,GAAG,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/G,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -7,4 +7,10 @@ export { pnpmRemove } from "./remove.js";
|
|
|
7
7
|
export { pnpmLink } from "./link.js";
|
|
8
8
|
export { pnpmRun } from "./run.js";
|
|
9
9
|
export { pnpmStorePath } from "./store.js";
|
|
10
|
+
export { pnpmExec } from "./exec.js";
|
|
11
|
+
export { pnpmList } from "./list.js";
|
|
12
|
+
export { pnpmWhy } from "./why.js";
|
|
13
|
+
export { pnpmOutdated } from "./outdated.js";
|
|
14
|
+
export { pnpmUpdate } from "./update.js";
|
|
15
|
+
export { pnpmPack } from "./pack.js";
|
|
10
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/procedures/pnpm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/procedures/pnpm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -7,4 +7,10 @@ export { pnpmRemove } from "./remove.js";
|
|
|
7
7
|
export { pnpmLink } from "./link.js";
|
|
8
8
|
export { pnpmRun } from "./run.js";
|
|
9
9
|
export { pnpmStorePath } from "./store.js";
|
|
10
|
+
export { pnpmExec } from "./exec.js";
|
|
11
|
+
export { pnpmList } from "./list.js";
|
|
12
|
+
export { pnpmWhy } from "./why.js";
|
|
13
|
+
export { pnpmOutdated } from "./outdated.js";
|
|
14
|
+
export { pnpmUpdate } from "./update.js";
|
|
15
|
+
export { pnpmPack } from "./pack.js";
|
|
10
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Install packages using pnpm.
|
|
5
5
|
*/
|
|
6
|
-
import { pnpmArg, runPnpm } from "./shared.js";
|
|
6
|
+
import { pnpmArg, runPnpm, selectionArgs } from "./shared.js";
|
|
7
7
|
/**
|
|
8
8
|
* Install packages using pnpm
|
|
9
9
|
*
|
|
@@ -20,7 +20,7 @@ import { pnpmArg, runPnpm } from "./shared.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export async function pnpmInstall(input, ctx) {
|
|
22
22
|
{
|
|
23
|
-
const args = ["install"];
|
|
23
|
+
const args = [...selectionArgs(input), "install"];
|
|
24
24
|
// Add packages if specified
|
|
25
25
|
if (input.packages && input.packages.length > 0) {
|
|
26
26
|
args.push(...input.packages.map((p) => pnpmArg("package", p)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,KAAuB,EACvB,GAAqB;IAErB,CAAC;QACC,MAAM,IAAI,GAAa,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;QAE5D,4BAA4B;QAC5B,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChD,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC;QAED,YAAY;QACZ,IAAI,KAAK,CAAC,GAAG;YAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,KAAK,CAAC,MAAM;YAAE,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAEjD,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.list procedure
|
|
3
|
+
*
|
|
4
|
+
* List the installed packages as JSON (roadmap R41). `data` is the parsed output of
|
|
5
|
+
* `pnpm list --json`: one entry for each project.
|
|
6
|
+
*/
|
|
7
|
+
import type { ProcedureContext } from "@procedures/client";
|
|
8
|
+
import type { PnpmListInput, PnpmListOutput } from "../../types.js";
|
|
9
|
+
/** The options of list and why: the depth and the kinds of dependencies. */
|
|
10
|
+
export declare function treeOptions(input: {
|
|
11
|
+
depth?: number | undefined;
|
|
12
|
+
prod?: boolean | undefined;
|
|
13
|
+
dev?: boolean | undefined;
|
|
14
|
+
}): string[];
|
|
15
|
+
/**
|
|
16
|
+
* List the installed packages as JSON
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* const { data } = await client.call(["pnpm", "list"], { depth: 0, recursive: true });
|
|
20
|
+
*/
|
|
21
|
+
export declare function pnpmList(input: PnpmListInput, ctx: ProcedureContext): Promise<PnpmListOutput>;
|
|
22
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/procedures/pnpm/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpE,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GAAG,MAAM,EAAE,CAMlI;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CAInG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.list procedure
|
|
3
|
+
*
|
|
4
|
+
* List the installed packages as JSON (roadmap R41). `data` is the parsed output of
|
|
5
|
+
* `pnpm list --json`: one entry for each project.
|
|
6
|
+
*/
|
|
7
|
+
import { pnpmArg, runPnpmJson, selectionArgs } from "./shared.js";
|
|
8
|
+
/** The options of list and why: the depth and the kinds of dependencies. */
|
|
9
|
+
export function treeOptions(input) {
|
|
10
|
+
const args = [];
|
|
11
|
+
if (input.depth !== undefined)
|
|
12
|
+
args.push("--depth", String(input.depth));
|
|
13
|
+
if (input.prod)
|
|
14
|
+
args.push("--prod");
|
|
15
|
+
if (input.dev)
|
|
16
|
+
args.push("--dev");
|
|
17
|
+
return args;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List the installed packages as JSON
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const { data } = await client.call(["pnpm", "list"], { depth: 0, recursive: true });
|
|
24
|
+
*/
|
|
25
|
+
export async function pnpmList(input, ctx) {
|
|
26
|
+
const args = [...selectionArgs(input), "list", "--json", ...treeOptions(input)];
|
|
27
|
+
args.push(...(input.packages ?? []).map((name) => pnpmArg("package", name)));
|
|
28
|
+
return runPnpmJson(args, input, ctx);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGlE,4EAA4E;AAC5E,MAAM,UAAU,WAAW,CAAC,KAA4F;IACtH,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;QAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,IAAI,KAAK,CAAC,IAAI;QAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAI,KAAK,CAAC,GAAG;QAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,KAAoB,EAAE,GAAqB;IACxE,MAAM,IAAI,GAAG,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,OAAO,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.outdated procedure
|
|
3
|
+
*
|
|
4
|
+
* List the outdated packages as JSON (roadmap R41). pnpm reads the npm registry. `data` is the
|
|
5
|
+
* parsed output of `pnpm outdated --format json`.
|
|
6
|
+
*
|
|
7
|
+
* pnpm exits with 1 when a package is outdated. That is an answer, not a failure: when the output
|
|
8
|
+
* is JSON, the result has `success: true`.
|
|
9
|
+
*/
|
|
10
|
+
import type { ProcedureContext } from "@procedures/client";
|
|
11
|
+
import type { PnpmOutdatedInput, PnpmOutdatedOutput } from "../../types.js";
|
|
12
|
+
/**
|
|
13
|
+
* List the outdated packages as JSON
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { data } = await client.call(["pnpm", "outdated"], { recursive: true });
|
|
17
|
+
*/
|
|
18
|
+
export declare function pnpmOutdated(input: PnpmOutdatedInput, ctx: ProcedureContext): Promise<PnpmOutdatedOutput>;
|
|
19
|
+
//# sourceMappingURL=outdated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outdated.d.ts","sourceRoot":"","sources":["../../../src/procedures/pnpm/outdated.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE5E;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAQ/G"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.outdated procedure
|
|
3
|
+
*
|
|
4
|
+
* List the outdated packages as JSON (roadmap R41). pnpm reads the npm registry. `data` is the
|
|
5
|
+
* parsed output of `pnpm outdated --format json`.
|
|
6
|
+
*
|
|
7
|
+
* pnpm exits with 1 when a package is outdated. That is an answer, not a failure: when the output
|
|
8
|
+
* is JSON, the result has `success: true`.
|
|
9
|
+
*/
|
|
10
|
+
import { pnpmArg, runPnpmJson, selectionArgs } from "./shared.js";
|
|
11
|
+
/**
|
|
12
|
+
* List the outdated packages as JSON
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const { data } = await client.call(["pnpm", "outdated"], { recursive: true });
|
|
16
|
+
*/
|
|
17
|
+
export async function pnpmOutdated(input, ctx) {
|
|
18
|
+
const args = [...selectionArgs(input), "outdated", "--format", "json"];
|
|
19
|
+
if (input.prod)
|
|
20
|
+
args.push("--prod");
|
|
21
|
+
if (input.dev)
|
|
22
|
+
args.push("--dev");
|
|
23
|
+
args.push(...(input.packages ?? []).map((name) => pnpmArg("package", name)));
|
|
24
|
+
const result = await runPnpmJson(args, input, ctx);
|
|
25
|
+
if (result.exitCode === 1 && result.data !== undefined)
|
|
26
|
+
result.success = true;
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=outdated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outdated.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/outdated.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGlE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,KAAwB,EAAE,GAAqB;IAChF,MAAM,IAAI,GAAG,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACvE,IAAI,KAAK,CAAC,IAAI;QAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAI,KAAK,CAAC,GAAG;QAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACnD,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAC9E,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.pack procedure
|
|
3
|
+
*
|
|
4
|
+
* Make a tarball of the package (roadmap R41). `data` is the parsed output of
|
|
5
|
+
* `pnpm pack --json`: the name, the version, the file name and the files of the tarball. With
|
|
6
|
+
* `dryRun`, pnpm writes no tarball.
|
|
7
|
+
*/
|
|
8
|
+
import type { ProcedureContext } from "@procedures/client";
|
|
9
|
+
import type { PnpmPackInput, PnpmPackOutput } from "../../types.js";
|
|
10
|
+
/**
|
|
11
|
+
* Make a tarball of the package
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const { data } = await client.call(["pnpm", "pack"], { cwd: "packages/app", dryRun: true });
|
|
15
|
+
*/
|
|
16
|
+
export declare function pnpmPack(input: PnpmPackInput, ctx: ProcedureContext): Promise<PnpmPackOutput>;
|
|
17
|
+
//# sourceMappingURL=pack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../../src/procedures/pnpm/pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpE;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CAMnG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm.pack procedure
|
|
3
|
+
*
|
|
4
|
+
* Make a tarball of the package (roadmap R41). `data` is the parsed output of
|
|
5
|
+
* `pnpm pack --json`: the name, the version, the file name and the files of the tarball. With
|
|
6
|
+
* `dryRun`, pnpm writes no tarball.
|
|
7
|
+
*/
|
|
8
|
+
import { runPnpmJson } from "./shared.js";
|
|
9
|
+
/**
|
|
10
|
+
* Make a tarball of the package
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const { data } = await client.call(["pnpm", "pack"], { cwd: "packages/app", dryRun: true });
|
|
14
|
+
*/
|
|
15
|
+
export async function pnpmPack(input, ctx) {
|
|
16
|
+
const args = ["pack", "--json"];
|
|
17
|
+
if (input.dryRun)
|
|
18
|
+
args.push("--dry-run");
|
|
19
|
+
// With "=", a folder that starts with "-" stays the value of the option
|
|
20
|
+
if (input.destination !== undefined)
|
|
21
|
+
args.push(`--pack-destination=${input.destination}`);
|
|
22
|
+
return runPnpmJson(args, input, ctx);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=pack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pack.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,KAAoB,EAAE,GAAqB;IACxE,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAChC,IAAI,KAAK,CAAC,MAAM;QAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzC,wEAAwE;IACxE,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS;QAAE,IAAI,CAAC,IAAI,CAAC,sBAAsB,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1F,OAAO,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Remove packages using pnpm.
|
|
5
5
|
*/
|
|
6
|
-
import { pnpmArg, runPnpm } from "./shared.js";
|
|
6
|
+
import { pnpmArg, runPnpm, selectionArgs } from "./shared.js";
|
|
7
7
|
/**
|
|
8
8
|
* Remove packages using pnpm
|
|
9
9
|
*
|
|
@@ -15,7 +15,7 @@ import { pnpmArg, runPnpm } from "./shared.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export async function pnpmRemove(input, ctx) {
|
|
17
17
|
{
|
|
18
|
-
const args = ["remove", ...input.packages.map((p) => pnpmArg("package", p))];
|
|
18
|
+
const args = [...selectionArgs(input), "remove", ...input.packages.map((p) => pnpmArg("package", p))];
|
|
19
19
|
// Add flags
|
|
20
20
|
if (input.global)
|
|
21
21
|
args.push("--global");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/remove.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/remove.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,KAAsB,EACtB,GAAqB;IAErB,CAAC;QACC,MAAM,IAAI,GAAa,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAEhH,YAAY;QACZ,IAAI,KAAK,CAAC,MAAM;YAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;AACH,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Run package scripts using pnpm.
|
|
5
5
|
*/
|
|
6
|
-
import { pnpmArg, runPnpm } from "./shared.js";
|
|
6
|
+
import { pnpmArg, runPnpm, selectionArgs } from "./shared.js";
|
|
7
7
|
/**
|
|
8
8
|
* Run a package script using pnpm
|
|
9
9
|
*
|
|
@@ -22,7 +22,7 @@ import { pnpmArg, runPnpm } from "./shared.js";
|
|
|
22
22
|
*/
|
|
23
23
|
export async function pnpmRun(input, ctx) {
|
|
24
24
|
{
|
|
25
|
-
const args = ["run", pnpmArg("script", input.script)];
|
|
25
|
+
const args = [...selectionArgs(input), "run", pnpmArg("script", input.script)];
|
|
26
26
|
// Add additional arguments
|
|
27
27
|
if (input.args && input.args.length > 0) {
|
|
28
28
|
args.push("--", ...input.args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/procedures/pnpm/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAmB,EACnB,GAAqB;IAErB,CAAC;QACC,MAAM,IAAI,GAAa,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAEzF,2BAA2B;QAC3B,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;QAED,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;AACH,CAAC"}
|