@pnpm/plugin-commands-init 0.0.0-20230605-20230605142810
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/index.d.ts +2 -0
- package/lib/index.js +29 -0
- package/lib/index.js.map +1 -0
- package/lib/init.d.ts +6 -0
- package/lib/init.js +63 -0
- package/lib/init.js.map +1 -0
- package/lib/utils.d.ts +13 -0
- package/lib/utils.js +60 -0
- package/lib/utils.js.map +1 -0
- package/package.json +50 -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-2023 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/plugin-commands-init
|
|
2
|
+
|
|
3
|
+
> Create a package.json file
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@pnpm/plugin-commands-init)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @pnpm/plugin-commands-init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## License
|
|
14
|
+
|
|
15
|
+
MIT
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
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.init = void 0;
|
|
27
|
+
const init = __importStar(require("./init"));
|
|
28
|
+
exports.init = init;
|
|
29
|
+
//# 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,6CAA8B;AAErB,oBAAI"}
|
package/lib/init.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type UniversalOptions } from '@pnpm/config';
|
|
2
|
+
export declare const rcOptionsTypes: typeof cliOptionsTypes;
|
|
3
|
+
export declare function cliOptionsTypes(): {};
|
|
4
|
+
export declare const commandNames: string[];
|
|
5
|
+
export declare function help(): string;
|
|
6
|
+
export declare function handler(opts: Pick<UniversalOptions, 'rawConfig'>, params?: string[]): Promise<string>;
|
package/lib/init.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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.handler = exports.help = exports.commandNames = exports.cliOptionsTypes = exports.rcOptionsTypes = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const cli_utils_1 = require("@pnpm/cli-utils");
|
|
10
|
+
const error_1 = require("@pnpm/error");
|
|
11
|
+
const write_project_manifest_1 = require("@pnpm/write-project-manifest");
|
|
12
|
+
const render_help_1 = __importDefault(require("render-help"));
|
|
13
|
+
const utils_1 = require("./utils");
|
|
14
|
+
exports.rcOptionsTypes = cliOptionsTypes;
|
|
15
|
+
function cliOptionsTypes() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.cliOptionsTypes = cliOptionsTypes;
|
|
19
|
+
exports.commandNames = ['init'];
|
|
20
|
+
function help() {
|
|
21
|
+
return (0, render_help_1.default)({
|
|
22
|
+
description: 'Create a package.json file',
|
|
23
|
+
descriptionLists: [],
|
|
24
|
+
url: (0, cli_utils_1.docsUrl)('init'),
|
|
25
|
+
usages: ['pnpm init'],
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.help = help;
|
|
29
|
+
async function handler(opts, params) {
|
|
30
|
+
if (params?.length) {
|
|
31
|
+
throw new error_1.PnpmError('INIT_ARG', 'init command does not accept any arguments', {
|
|
32
|
+
hint: `Maybe you wanted to run "pnpm create ${params.join(' ')}"`,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Using cwd instead of the dir option because the dir option
|
|
36
|
+
// is set to the first parent directory that has a package.json file.
|
|
37
|
+
const manifestPath = path_1.default.join(process.cwd(), 'package.json');
|
|
38
|
+
if (fs_1.default.existsSync(manifestPath)) {
|
|
39
|
+
throw new error_1.PnpmError('PACKAGE_JSON_EXISTS', 'package.json already exists');
|
|
40
|
+
}
|
|
41
|
+
const manifest = {
|
|
42
|
+
name: path_1.default.basename(process.cwd()),
|
|
43
|
+
version: '1.0.0',
|
|
44
|
+
description: '',
|
|
45
|
+
main: 'index.js',
|
|
46
|
+
scripts: {
|
|
47
|
+
test: 'echo "Error: no test specified" && exit 1',
|
|
48
|
+
},
|
|
49
|
+
keywords: [],
|
|
50
|
+
author: '',
|
|
51
|
+
license: 'ISC',
|
|
52
|
+
};
|
|
53
|
+
const config = await (0, utils_1.parseRawConfig)(opts.rawConfig);
|
|
54
|
+
const packageJson = { ...manifest, ...config };
|
|
55
|
+
await (0, write_project_manifest_1.writeProjectManifest)(manifestPath, packageJson, {
|
|
56
|
+
indent: 2,
|
|
57
|
+
});
|
|
58
|
+
return `Wrote to ${manifestPath}
|
|
59
|
+
|
|
60
|
+
${JSON.stringify(packageJson, null, 2)}`;
|
|
61
|
+
}
|
|
62
|
+
exports.handler = handler;
|
|
63
|
+
//# sourceMappingURL=init.js.map
|
package/lib/init.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAmB;AACnB,gDAAuB;AACvB,+CAAyC;AAEzC,uCAAuC;AACvC,yEAAmE;AACnE,8DAAoC;AACpC,mCAAwC;AAE3B,QAAA,cAAc,GAAG,eAAe,CAAA;AAE7C,SAAgB,eAAe;IAC7B,OAAO,EAAE,CAAA;AACX,CAAC;AAFD,0CAEC;AAEY,QAAA,YAAY,GAAG,CAAC,MAAM,CAAC,CAAA;AAEpC,SAAgB,IAAI;IAClB,OAAO,IAAA,qBAAU,EAAC;QAChB,WAAW,EAAE,4BAA4B;QACzC,gBAAgB,EAAE,EAAE;QACpB,GAAG,EAAE,IAAA,mBAAO,EAAC,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,WAAW,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC;AAPD,oBAOC;AAEM,KAAK,UAAU,OAAO,CAC3B,IAAyC,EACzC,MAAiB;IAEjB,IAAI,MAAM,EAAE,MAAM,EAAE;QAClB,MAAM,IAAI,iBAAS,CAAC,UAAU,EAAE,4CAA4C,EAAE;YAC5E,IAAI,EAAE,wCAAwC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;SAClE,CAAC,CAAA;KACH;IACD,6DAA6D;IAC7D,qEAAqE;IACrE,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAA;IAC7D,IAAI,YAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;QAC/B,MAAM,IAAI,iBAAS,CAAC,qBAAqB,EAAE,6BAA6B,CAAC,CAAA;KAC1E;IACD,MAAM,QAAQ,GAAG;QACf,IAAI,EAAE,cAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QAClC,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP,IAAI,EAAE,2CAA2C;SAClD;QACD,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,KAAK;KACf,CAAA;IACD,MAAM,MAAM,GAAG,MAAM,IAAA,sBAAc,EAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACnD,MAAM,WAAW,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAA;IAC9C,MAAM,IAAA,6CAAoB,EAAC,YAAY,EAAE,WAAW,EAAE;QACpD,MAAM,EAAE,CAAC;KACV,CAAC,CAAA;IACF,OAAO,YAAY,YAAY;;EAE/B,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAA;AACxC,CAAC;AAnCD,0BAmCC"}
|
package/lib/utils.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Person {
|
|
2
|
+
name?: string;
|
|
3
|
+
email?: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
web?: string;
|
|
6
|
+
mail?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function personToString(person: Person): string;
|
|
9
|
+
export declare function workWithInitModule(localConfig: Record<string, string>): {
|
|
10
|
+
[x: string]: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function workWithInitConfig(localConfig: Record<string, string>): Record<string, string>;
|
|
13
|
+
export declare function parseRawConfig(rawConfig: Record<string, string>): Promise<Record<string, string>>;
|
package/lib/utils.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
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.parseRawConfig = exports.workWithInitConfig = exports.workWithInitModule = exports.personToString = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const child_process_1 = require("child_process");
|
|
9
|
+
const camelcase_keys_1 = __importDefault(require("camelcase-keys"));
|
|
10
|
+
const fs_1 = __importDefault(require("fs"));
|
|
11
|
+
function personToString(person) {
|
|
12
|
+
const name = person.name ?? '';
|
|
13
|
+
const u = person.url ?? person.web;
|
|
14
|
+
const url = u ? ` (${u})` : '';
|
|
15
|
+
const e = person.email ?? person.mail;
|
|
16
|
+
const email = e ? ` <${e}>` : '';
|
|
17
|
+
return name + email + url;
|
|
18
|
+
}
|
|
19
|
+
exports.personToString = personToString;
|
|
20
|
+
function workWithInitModule(localConfig) {
|
|
21
|
+
const { initModule, ...restConfig } = localConfig;
|
|
22
|
+
if (initModule) {
|
|
23
|
+
const filePath = path_1.default.resolve(localConfig.initModule);
|
|
24
|
+
const isFileExist = fs_1.default.existsSync(filePath);
|
|
25
|
+
if (['.js', '.cjs'].includes(path_1.default.extname(filePath)) && isFileExist) {
|
|
26
|
+
(0, child_process_1.spawnSync)('node', [filePath], {
|
|
27
|
+
stdio: 'inherit',
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return restConfig;
|
|
32
|
+
}
|
|
33
|
+
exports.workWithInitModule = workWithInitModule;
|
|
34
|
+
function workWithInitConfig(localConfig) {
|
|
35
|
+
const packageJson = {};
|
|
36
|
+
const authorInfo = {};
|
|
37
|
+
for (const localConfigKey in localConfig) {
|
|
38
|
+
if (localConfigKey.startsWith('init')) {
|
|
39
|
+
const pureKey = localConfigKey.replace('init', '');
|
|
40
|
+
const value = localConfig[localConfigKey];
|
|
41
|
+
if (pureKey.startsWith('Author')) {
|
|
42
|
+
authorInfo[pureKey.replace('Author', '')] = value;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
packageJson[pureKey] = value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const author = personToString((0, camelcase_keys_1.default)(authorInfo));
|
|
50
|
+
if (author) {
|
|
51
|
+
packageJson.author = author;
|
|
52
|
+
}
|
|
53
|
+
return (0, camelcase_keys_1.default)(packageJson);
|
|
54
|
+
}
|
|
55
|
+
exports.workWithInitConfig = workWithInitConfig;
|
|
56
|
+
async function parseRawConfig(rawConfig) {
|
|
57
|
+
return workWithInitConfig(workWithInitModule((0, camelcase_keys_1.default)(rawConfig)));
|
|
58
|
+
}
|
|
59
|
+
exports.parseRawConfig = parseRawConfig;
|
|
60
|
+
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AACvB,iDAAyC;AACzC,oEAA0C;AAC1C,4CAAmB;AAUnB,SAAgB,cAAc,CAAE,MAAc;IAC5C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,CAAA;IAC9B,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,CAAA;IAClC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAC9B,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,IAAI,CAAA;IACrC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAChC,OAAO,IAAI,GAAG,KAAK,GAAG,GAAG,CAAA;AAC3B,CAAC;AAPD,wCAOC;AAED,SAAgB,kBAAkB,CAAE,WAAmC;IACrE,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,EAAE,GAAG,WAAW,CAAA;IACjD,IAAI,UAAU,EAAE;QACd,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;QACrD,MAAM,WAAW,GAAG,YAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;QAC3C,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,WAAW,EAAE;YACnE,IAAA,yBAAS,EAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE;gBAC5B,KAAK,EAAE,SAAS;aACjB,CAAC,CAAA;SACH;KACF;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AAZD,gDAYC;AAED,SAAgB,kBAAkB,CAAE,WAAmC;IACrE,MAAM,WAAW,GAA2B,EAAE,CAAA;IAC9C,MAAM,UAAU,GAA2B,EAAE,CAAA;IAC7C,KAAK,MAAM,cAAc,IAAI,WAAW,EAAE;QACxC,IAAI,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YACrC,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;YAClD,MAAM,KAAK,GAAG,WAAW,CAAC,cAAc,CAAC,CAAA;YACzC,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;gBAChC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAA;aAClD;iBAAM;gBACL,WAAW,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;aAC7B;SACF;KACF;IAED,MAAM,MAAM,GAAG,cAAc,CAAC,IAAA,wBAAa,EAAC,UAAU,CAAC,CAAC,CAAA;IACxD,IAAI,MAAM,EAAE;QACV,WAAW,CAAC,MAAM,GAAG,MAAM,CAAA;KAC5B;IACD,OAAO,IAAA,wBAAa,EAAC,WAAW,CAAC,CAAA;AACnC,CAAC;AApBD,gDAoBC;AAEM,KAAK,UAAU,cAAc,CAAE,SAAiC;IACrE,OAAO,kBAAkB,CACvB,kBAAkB,CAAC,IAAA,wBAAa,EAAC,SAAS,CAAC,CAAC,CAC7C,CAAA;AACH,CAAC;AAJD,wCAIC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pnpm/plugin-commands-init",
|
|
3
|
+
"version": "0.0.0-20230605-20230605142810",
|
|
4
|
+
"description": "Create a package.json file",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib",
|
|
9
|
+
"!*.map"
|
|
10
|
+
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=16.14"
|
|
13
|
+
},
|
|
14
|
+
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-init",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"pnpm8",
|
|
17
|
+
"pnpm",
|
|
18
|
+
"init"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/pnpm/pnpm/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-init#readme",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"load-json-file": "^6.2.0",
|
|
27
|
+
"@pnpm/prepare": "0.0.0-20230605-20230605142810",
|
|
28
|
+
"@pnpm/test-fixtures": "0.0.0-20230605-20230605142810",
|
|
29
|
+
"@pnpm/plugin-commands-init": "0.0.0-20230605-20230605142810"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"camelcase-keys": "^6.2.2",
|
|
33
|
+
"render-help": "^1.0.3",
|
|
34
|
+
"@pnpm/error": "0.0.0-20230605-20230605142810",
|
|
35
|
+
"@pnpm/cli-utils": "0.0.0-20230605-20230605142810",
|
|
36
|
+
"@pnpm/write-project-manifest": "5.0.1",
|
|
37
|
+
"@pnpm/config": "0.0.0-20230605-20230605142810"
|
|
38
|
+
},
|
|
39
|
+
"funding": "https://opencollective.com/pnpm",
|
|
40
|
+
"exports": {
|
|
41
|
+
".": "./lib/index.js"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
45
|
+
"_test": "jest",
|
|
46
|
+
"test": "pnpm run compile && pnpm run _test",
|
|
47
|
+
"compile": "tsc --build && pnpm run lint --fix",
|
|
48
|
+
"update-responses": "ts-node test/utils/responses/update.ts"
|
|
49
|
+
}
|
|
50
|
+
}
|