@pnpm/exec.build-commands 1000.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/LICENSE +22 -0
- package/README.md +15 -0
- package/lib/approveBuilds.d.ts +8 -0
- package/lib/approveBuilds.js +113 -0
- package/lib/approveBuilds.js.map +1 -0
- package/lib/getAutomaticallyIgnoredBuilds.d.ts +2 -0
- package/lib/getAutomaticallyIgnoredBuilds.js +16 -0
- package/lib/getAutomaticallyIgnoredBuilds.js.map +1 -0
- package/lib/ignoredBuilds.d.ts +7 -0
- package/lib/ignoredBuilds.js +47 -0
- package/lib/ignoredBuilds.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +31 -0
- package/lib/index.js.map +1 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
|
|
4
|
+
Copyright (c) 2016-2025 Zoltan Kochan and other contributors
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @pnpm/exec.build-commands
|
|
2
|
+
|
|
3
|
+
> Commands for managing dependency builds
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@pnpm/exec.build-commands)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @pnpm/exec.build-commands
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## License
|
|
14
|
+
|
|
15
|
+
MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Config } from '@pnpm/config';
|
|
2
|
+
import { type RebuildCommandOpts } from '@pnpm/plugin-commands-rebuild';
|
|
3
|
+
export type ApproveBuildsCommandOpts = Pick<Config, 'modulesDir' | 'dir' | 'rootProjectManifest' | 'rootProjectManifestDir'>;
|
|
4
|
+
export declare const commandNames: string[];
|
|
5
|
+
export declare function help(): string;
|
|
6
|
+
export declare function cliOptionsTypes(): Record<string, unknown>;
|
|
7
|
+
export declare function rcOptionsTypes(): Record<string, unknown>;
|
|
8
|
+
export declare function handler(opts: ApproveBuildsCommandOpts & RebuildCommandOpts): Promise<void>;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.commandNames = void 0;
|
|
7
|
+
exports.help = help;
|
|
8
|
+
exports.cliOptionsTypes = cliOptionsTypes;
|
|
9
|
+
exports.rcOptionsTypes = rcOptionsTypes;
|
|
10
|
+
exports.handler = handler;
|
|
11
|
+
const read_project_manifest_1 = require("@pnpm/read-project-manifest");
|
|
12
|
+
const render_help_1 = __importDefault(require("render-help"));
|
|
13
|
+
const enquirer_1 = require("enquirer");
|
|
14
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
15
|
+
const plugin_commands_rebuild_1 = require("@pnpm/plugin-commands-rebuild");
|
|
16
|
+
const getAutomaticallyIgnoredBuilds_1 = require("./getAutomaticallyIgnoredBuilds");
|
|
17
|
+
exports.commandNames = ['approve-builds'];
|
|
18
|
+
function help() {
|
|
19
|
+
return (0, render_help_1.default)({
|
|
20
|
+
description: 'Approve dependencies for running scripts during installation',
|
|
21
|
+
usages: [],
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function cliOptionsTypes() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
function rcOptionsTypes() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
async function handler(opts) {
|
|
31
|
+
if (opts.rootProjectManifest == null)
|
|
32
|
+
return;
|
|
33
|
+
const automaticallyIgnoredBuilds = await (0, getAutomaticallyIgnoredBuilds_1.getAutomaticallyIgnoredBuilds)(opts);
|
|
34
|
+
if (automaticallyIgnoredBuilds == null)
|
|
35
|
+
return;
|
|
36
|
+
const { result } = await (0, enquirer_1.prompt)({
|
|
37
|
+
choices: [...automaticallyIgnoredBuilds],
|
|
38
|
+
indicator(state, choice) {
|
|
39
|
+
return ` ${choice.enabled ? '●' : '○'}`;
|
|
40
|
+
},
|
|
41
|
+
message: 'Choose which packages to build ' +
|
|
42
|
+
`(Press ${chalk_1.default.cyan('<space>')} to select, ` +
|
|
43
|
+
`${chalk_1.default.cyan('<a>')} to toggle all, ` +
|
|
44
|
+
`${chalk_1.default.cyan('<i>')} to invert selection)`,
|
|
45
|
+
name: 'result',
|
|
46
|
+
pointer: '❯',
|
|
47
|
+
result() {
|
|
48
|
+
return this.selected;
|
|
49
|
+
},
|
|
50
|
+
styles: {
|
|
51
|
+
dark: chalk_1.default.reset,
|
|
52
|
+
em: chalk_1.default.bgBlack.whiteBright,
|
|
53
|
+
success: chalk_1.default.reset,
|
|
54
|
+
},
|
|
55
|
+
type: 'multiselect',
|
|
56
|
+
// For Vim users (related: https://github.com/enquirer/enquirer/pull/163)
|
|
57
|
+
j() {
|
|
58
|
+
return this.down();
|
|
59
|
+
},
|
|
60
|
+
k() {
|
|
61
|
+
return this.up();
|
|
62
|
+
},
|
|
63
|
+
cancel() {
|
|
64
|
+
// By default, canceling the prompt via Ctrl+c throws an empty string.
|
|
65
|
+
// The custom cancel function prevents that behavior.
|
|
66
|
+
// Otherwise, pnpm CLI would print an error and confuse users.
|
|
67
|
+
// See related issue: https://github.com/enquirer/enquirer/issues/225
|
|
68
|
+
process.exit(0);
|
|
69
|
+
},
|
|
70
|
+
}); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
71
|
+
const buildPackages = result.map(({ value }) => value);
|
|
72
|
+
const ignoredPackages = automaticallyIgnoredBuilds.filter((automaticallyIgnoredBuild) => !buildPackages.includes(automaticallyIgnoredBuild));
|
|
73
|
+
if (ignoredPackages.length) {
|
|
74
|
+
if (opts.rootProjectManifest.pnpm?.ignoredBuiltDependencies == null) {
|
|
75
|
+
opts.rootProjectManifest.pnpm = {
|
|
76
|
+
...opts.rootProjectManifest.pnpm,
|
|
77
|
+
ignoredBuiltDependencies: ignoredPackages,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
opts.rootProjectManifest.pnpm.ignoredBuiltDependencies.push(...ignoredPackages);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (buildPackages.length) {
|
|
85
|
+
if (opts.rootProjectManifest.pnpm?.onlyBuiltDependencies == null) {
|
|
86
|
+
opts.rootProjectManifest.pnpm = {
|
|
87
|
+
...opts.rootProjectManifest.pnpm,
|
|
88
|
+
onlyBuiltDependencies: buildPackages,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
opts.rootProjectManifest.pnpm.onlyBuiltDependencies.push(...buildPackages);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (buildPackages.length) {
|
|
96
|
+
const confirmed = await (0, enquirer_1.prompt)({
|
|
97
|
+
type: 'confirm',
|
|
98
|
+
name: 'build',
|
|
99
|
+
message: `The next packages will now be built: ${buildPackages.join(', ')}.
|
|
100
|
+
Do you approve?`,
|
|
101
|
+
initial: false,
|
|
102
|
+
});
|
|
103
|
+
if (!confirmed.build) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const { writeProjectManifest } = await (0, read_project_manifest_1.readProjectManifest)(opts.rootProjectManifestDir);
|
|
108
|
+
await writeProjectManifest(opts.rootProjectManifest);
|
|
109
|
+
if (buildPackages.length) {
|
|
110
|
+
return plugin_commands_rebuild_1.rebuild.handler(opts, buildPackages);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=approveBuilds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approveBuilds.js","sourceRoot":"","sources":["../src/approveBuilds.ts"],"names":[],"mappings":";;;;;;AAYA,oBAKC;AAED,0CAEC;AAED,wCAEC;AAED,0BA+EC;AAzGD,uEAAiE;AACjE,8DAAoC;AACpC,uCAAiC;AACjC,kDAAyB;AACzB,2EAAgF;AAChF,mFAA+E;AAIlE,QAAA,YAAY,GAAG,CAAC,gBAAgB,CAAC,CAAA;AAE9C,SAAgB,IAAI;IAClB,OAAO,IAAA,qBAAU,EAAC;QAChB,WAAW,EAAE,8DAA8D;QAC3E,MAAM,EAAE,EAAE;KACX,CAAC,CAAA;AACJ,CAAC;AAED,SAAgB,eAAe;IAC7B,OAAO,EAAE,CAAA;AACX,CAAC;AAED,SAAgB,cAAc;IAC5B,OAAO,EA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wCAAwC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/D;YACV,OAAO,EAAE,KAAK;SACf,CAAC,CAAA;QACF,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YACrB,OAAM;QACR,CAAC;IACH,CAAC;IACD,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,IAAA,2CAAmB,EAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;IACvF,MAAM,oBAAoB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IACpD,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACzB,OAAO,iCAAO,CAAC,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getAutomaticallyIgnoredBuilds = getAutomaticallyIgnoredBuilds;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const modules_yaml_1 = require("@pnpm/modules-yaml");
|
|
9
|
+
async function getAutomaticallyIgnoredBuilds(opts) {
|
|
10
|
+
const modulesManifest = await (0, modules_yaml_1.readModulesManifest)(opts.modulesDir ?? path_1.default.join(opts.dir, 'node_modules'));
|
|
11
|
+
if (modulesManifest == null) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return modulesManifest?.ignoredBuilds ?? [];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=getAutomaticallyIgnoredBuilds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAutomaticallyIgnoredBuilds.js","sourceRoot":"","sources":["../src/getAutomaticallyIgnoredBuilds.ts"],"names":[],"mappings":";;;;;AAIA,sEAMC;AAVD,gDAAuB;AACvB,qDAAwD;AAGjD,KAAK,UAAU,6BAA6B,CAAE,IAA8B;IACjF,MAAM,eAAe,GAAG,MAAM,IAAA,kCAAmB,EAAC,IAAI,CAAC,UAAU,IAAI,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAA;IACzG,IAAI,eAAe,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,eAAe,EAAE,aAAa,IAAI,EAAE,CAAA;AAC7C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Config } from '@pnpm/config';
|
|
2
|
+
export type IgnoredBuildsCommandOpts = Pick<Config, 'modulesDir' | 'dir' | 'rootProjectManifest'>;
|
|
3
|
+
export declare const commandNames: string[];
|
|
4
|
+
export declare function help(): string;
|
|
5
|
+
export declare function cliOptionsTypes(): Record<string, unknown>;
|
|
6
|
+
export declare function rcOptionsTypes(): Record<string, unknown>;
|
|
7
|
+
export declare function handler(opts: IgnoredBuildsCommandOpts): Promise<string>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.commandNames = void 0;
|
|
7
|
+
exports.help = help;
|
|
8
|
+
exports.cliOptionsTypes = cliOptionsTypes;
|
|
9
|
+
exports.rcOptionsTypes = rcOptionsTypes;
|
|
10
|
+
exports.handler = handler;
|
|
11
|
+
const render_help_1 = __importDefault(require("render-help"));
|
|
12
|
+
const getAutomaticallyIgnoredBuilds_1 = require("./getAutomaticallyIgnoredBuilds");
|
|
13
|
+
exports.commandNames = ['ignored-builds'];
|
|
14
|
+
function help() {
|
|
15
|
+
return (0, render_help_1.default)({
|
|
16
|
+
description: 'Print the list of packages with blocked build scripts',
|
|
17
|
+
usages: [],
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function cliOptionsTypes() {
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
function rcOptionsTypes() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
async function handler(opts) {
|
|
27
|
+
const ignoredBuiltDependencies = opts.rootProjectManifest?.pnpm?.ignoredBuiltDependencies ?? [];
|
|
28
|
+
const automaticallyIgnoredBuilds = (await (0, getAutomaticallyIgnoredBuilds_1.getAutomaticallyIgnoredBuilds)(opts))?.filter((automaticallyIgnoredBuild) => !ignoredBuiltDependencies.includes(automaticallyIgnoredBuild));
|
|
29
|
+
let output = 'Automatically ignored builds during installation:\n';
|
|
30
|
+
if (automaticallyIgnoredBuilds == null) {
|
|
31
|
+
output += ' Cannot identify as no node_modules found';
|
|
32
|
+
}
|
|
33
|
+
else if (automaticallyIgnoredBuilds.length === 0) {
|
|
34
|
+
output += ' None';
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
output += ` ${automaticallyIgnoredBuilds.join('\n ')}
|
|
38
|
+
hint: To allow the execution of build scripts for a package, add its name to "pnpm.onlyBuiltDependencies" in your "package.json", then run "pnpm rebuild".
|
|
39
|
+
hint: If you don't want to build a package, add it to the "pnpm.ignoredBuiltDependencies" list.`;
|
|
40
|
+
}
|
|
41
|
+
output += '\n';
|
|
42
|
+
if (ignoredBuiltDependencies.length) {
|
|
43
|
+
output += `\nExplicitly ignored package builds (via pnpm.ignoredBuiltDependencies):\n ${ignoredBuiltDependencies.join('\n ')}\n`;
|
|
44
|
+
}
|
|
45
|
+
return output;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ignoredBuilds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignoredBuilds.js","sourceRoot":"","sources":["../src/ignoredBuilds.ts"],"names":[],"mappings":";;;;;;AAQA,oBAKC;AAED,0CAEC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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ignoredBuilds = exports.approveBuilds = void 0;
|
|
27
|
+
const approveBuilds = __importStar(require("./approveBuilds"));
|
|
28
|
+
exports.approveBuilds = approveBuilds;
|
|
29
|
+
const ignoredBuilds = __importStar(require("./ignoredBuilds"));
|
|
30
|
+
exports.ignoredBuilds = ignoredBuilds;
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAgD;AAGvC,sCAAa;AAFtB,+DAAgD;AAExB,sCAAa"}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pnpm/exec.build-commands",
|
|
3
|
+
"version": "1000.0.0",
|
|
4
|
+
"description": "Commands for managing dependency builds",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib",
|
|
9
|
+
"!*.map"
|
|
10
|
+
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=18.12"
|
|
13
|
+
},
|
|
14
|
+
"repository": "https://github.com/pnpm/pnpm/blob/main/exec/build-commands",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"pnpm10",
|
|
17
|
+
"pnpm",
|
|
18
|
+
"rebuild"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/pnpm/pnpm/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/pnpm/pnpm/blob/main/exec/build-commands#readme",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@pnpm/registry-mock": "3.48.0",
|
|
27
|
+
"@types/ramda": "0.29.12",
|
|
28
|
+
"load-json-file": "^6.2.0",
|
|
29
|
+
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
30
|
+
"@pnpm/config": "1002.2.0",
|
|
31
|
+
"@pnpm/exec.build-commands": "1000.0.0",
|
|
32
|
+
"@pnpm/plugin-commands-installation": "1001.3.0",
|
|
33
|
+
"@pnpm/prepare": "0.0.111",
|
|
34
|
+
"@pnpm/types": "1000.1.1"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"chalk": "^4.1.2",
|
|
38
|
+
"enquirer": "^2.4.1",
|
|
39
|
+
"render-help": "^1.0.3",
|
|
40
|
+
"@pnpm/config": "1002.2.0",
|
|
41
|
+
"@pnpm/plugin-commands-rebuild": "1001.1.4",
|
|
42
|
+
"@pnpm/prepare-temp-dir": "0.0.0",
|
|
43
|
+
"@pnpm/modules-yaml": "1000.1.2",
|
|
44
|
+
"@pnpm/read-project-manifest": "1000.0.4"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@pnpm/logger": ">=5.1.0 <1001.0.0"
|
|
48
|
+
},
|
|
49
|
+
"funding": "https://opencollective.com/pnpm",
|
|
50
|
+
"exports": {
|
|
51
|
+
".": "./lib/index.js"
|
|
52
|
+
},
|
|
53
|
+
"jest": {
|
|
54
|
+
"preset": "@pnpm/jest-config"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
58
|
+
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7771 jest",
|
|
59
|
+
"test": "pnpm run compile && pnpm run _test",
|
|
60
|
+
"compile": "tsc --build && pnpm run lint --fix"
|
|
61
|
+
}
|
|
62
|
+
}
|