@pnpm/prepare-package
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4354
0
+ Added@pnpm/read-package-json@5.0.5(transitive)
+ Added@pnpm/types@7.5.0(transitive)
- Removed@pnpm/read-package-json@5.0.4(transitive)
- Removed@pnpm/types@7.4.0(transitive)