Socket
Socket
Sign inDemoInstall

@pnpm/prepare-package

Package Overview
Dependencies
92
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

8

lib/index.js

@@ -13,7 +13,7 @@ "use strict";

var _a, _b, _c;
const manifest = await read_package_json_1.safeReadPackageFromDir(pkgDir);
const manifest = await (0, read_package_json_1.safeReadPackageFromDir)(pkgDir);
if (((_a = manifest === null || manifest === void 0 ? void 0 : manifest.scripts) === null || _a === void 0 ? void 0 : _a.prepare) != null && manifest.scripts.prepare !== '') {
const pm = (_c = (_b = (await preferred_pm_1.default(pkgDir))) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : 'npm';
await execa_1.default(pm, ['install'], { cwd: pkgDir });
await rimraf_1.default(path_1.default.join(pkgDir, 'node_modules'));
const pm = (_c = (_b = (await (0, preferred_pm_1.default)(pkgDir))) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : 'npm';
await (0, execa_1.default)(pm, ['install'], { cwd: pkgDir });
await (0, rimraf_1.default)(path_1.default.join(pkgDir, 'node_modules'));
}

@@ -20,0 +20,0 @@ }

{
"name": "@pnpm/prepare-package",
"version": "1.0.4",
"version": "1.0.5",
"description": "Prepares a Git-hosted package",

@@ -16,2 +16,3 @@ "main": "lib/index.js",

"keywords": [
"pnpm6",
"pnpm"

@@ -25,3 +26,3 @@ ],

"dependencies": {
"@pnpm/read-package-json": "5.0.4",
"@pnpm/read-package-json": "5.0.5",
"@zkochan/rimraf": "^2.1.1",

@@ -33,3 +34,3 @@ "execa": "npm:safe-execa@^0.1.1",

"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts",
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",

@@ -36,0 +37,0 @@ "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc