Socket
Socket
Sign inDemoInstall

@pnpm/prepare-package

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/prepare-package - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

lib/index.js

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

var _a, _b, _c;
const manifest = await read_package_json_1.fromDir(pkgDir);
if (((_a = manifest.scripts) === null || _a === void 0 ? void 0 : _a.prepare) != null && manifest.scripts.prepare !== '') {
const manifest = await 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';

@@ -17,0 +17,0 @@ await execa_1.default(pm, ['install'], { cwd: pkgDir });

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

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

"@zkochan/rimraf": "^2.1.1",
"execa": "^5.0.0",
"execa": "npm:safe-execa@^0.1.1",
"preferred-pm": "^3.0.3"

@@ -29,0 +29,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc