patch-package
Advanced tools
Comparing version 3.3.2 to 3.3.3
# Changelog | ||
## 3.3.3 | ||
- Fix bug introduced in 3.3.2 | ||
- Add progress reporting during patch making | ||
## 3.3.2 | ||
@@ -10,2 +15,4 @@ | ||
Contribution by [@ashmind](https://github.com/ashmind) | ||
## 3.3.1 | ||
@@ -12,0 +19,0 @@ |
@@ -35,3 +35,3 @@ "use strict"; | ||
fileName.startsWith(packageName + "+")) { | ||
console.log("removing", path.join(patchesDir_1, fileName)); | ||
console.info(chalk_1.green("☑"), "Removing existing", path.relative(process.cwd(), path.join(patchesDir_1, fileName))); | ||
fs.unlinkSync(path.join(patchesDir_1, fileName)); | ||
@@ -41,2 +41,3 @@ } | ||
} | ||
console.info(chalk_1.green("☑"), "Creating temporary folder"); | ||
var tmpExec_1 = function (command, args) { | ||
@@ -51,2 +52,3 @@ return spawnSafe_1.default(command, args, { cwd: tmpRepo.name }); | ||
fsExtra.copySync(path.join(appPath, "yarn.lock"), path.join(tmpRepo.name, "yarn.lock")); | ||
console.info(chalk_1.green("☑"), "Building clean node_modules with yarn"); | ||
tmpExec_1("yarn"); | ||
@@ -56,5 +58,7 @@ } | ||
fsExtra.copySync(path.join(appPath, "package-lock.json"), path.join(tmpRepo.name, "package-lock.json")); | ||
console.info(chalk_1.green("☑"), "Building clean node_modules with npm"); | ||
tmpExec_1("npm", ["i"]); | ||
} | ||
// commit the package | ||
console.info(chalk_1.green("☑"), "Diffing your files with clean files"); | ||
fs.writeFileSync(path.join(tmpRepo.name, ".gitignore"), "!/node_modules\n\n"); | ||
@@ -78,3 +82,3 @@ tmpExec_1("git", ["init"]); | ||
// get diff of changes | ||
var patch = tmpExec_1("git", ["diff", "HEAD"]).output.toString(); | ||
var patch = tmpExec_1("git", ["diff", "HEAD"]).stdout.toString(); | ||
if (patch.trim() === "") { | ||
@@ -92,3 +96,3 @@ console.warn("\u2049\uFE0F Not creating patch file for package '" + packageName + "'"); | ||
fs.writeFileSync(patchPath, patch); | ||
console.log("Created file patches/" + patchFileName + " " + chalk_1.green("✔")); | ||
console.log(chalk_1.green("✔") + " Created file patches/" + patchFileName); | ||
} | ||
@@ -108,2 +112,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFrZVBhdGNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL21ha2VQYXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUE2QjtBQUM3Qix1QkFBd0I7QUFDeEIsMkJBQTRCO0FBQzVCLCtCQUFnQztBQUNoQyx5QkFBMEI7QUFDMUIscUZBQStFO0FBQy9FLHlDQUF1QztBQUN2QyxxQ0FBeUM7QUFDekMsa0NBQW1DO0FBRW5DLG1CQUNFLFdBQW1CLEVBQ25CLE9BQWUsRUFDZixjQUE4QjtJQUU5QixJQUFNLGVBQWUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxjQUFjLENBQUMsQ0FBQTtJQUMxRCxJQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLGVBQWUsRUFBRSxXQUFXLENBQUMsQ0FBQTtJQUMzRCxJQUFNLGVBQWUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxjQUFjLENBQUMsQ0FBQTtJQUM5RCxFQUFFLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ3BDLHdCQUF3QixDQUFDLFdBQVcsRUFBRSxlQUFlLENBQUMsQ0FBQTtRQUN0RCxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ2pCLENBQUM7SUFFRCxJQUFNLGNBQWMsR0FBRyxPQUFPLENBQUMsZUFBZSxDQUFDLENBQUMsT0FBTyxDQUFBO0lBRXZELElBQU0sT0F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YW1lKVxuICAgICAgaWYgKCFmcy5leGlzdHNTeW5jKHBhdGguZGlybmFtZShwYXRjaFBhdGgpKSkge1xuICAgICAgICAvLyBzY29wZWQgcGFja2FnZVxuICAgICAgICBmcy5ta2RpclN5bmMocGF0aC5kaXJuYW1lKHBhdGNoUGF0aCkpXG4gICAgICB9XG4gICAgICBmcy53cml0ZUZpbGVTeW5jKHBhdGNoUGF0aCwgcGF0Y2gpXG4gICAgICBjb25zb2xlLmxvZyhgJHtncmVlbihcIuKclFwiKX0gQ3JlYXRlZCBmaWxlIHBhdGNoZXMvJHtwYXRjaEZpbGVOYW1lfWApXG4gICAgfVxuICB9IGNhdGNoIChlKSB7XG4gICAgY29uc29sZS5lcnJvcihlKVxuICAgIHRocm93IGVcbiAgfSBmaW5hbGx5IHtcbiAgICB0bXBSZXBvLnJlbW92ZUNhbGxiYWNrKClcbiAgfVxufVxuXG5mdW5jdGlvbiBwcmludE5vUGFja2FnZUZvdW5kRXJyb3IoXG4gIHBhY2thZ2VOYW1lOiBzdHJpbmcsXG4gIHBhY2thZ2VKc29uUGF0aDogc3RyaW5nLFxuKSB7XG4gIGNvbnNvbGUuZXJyb3IoXG4gICAgYE5vIHN1Y2ggcGFja2FnZSAke3BhY2thZ2VOYW1lfVxuXG4gIEZpbGUgbm90IGZvdW5kOiAke3BhY2thZ2VKc29uUGF0aH1gLFxuICApXG59XG4iXX0= |
{ | ||
"name": "patch-package", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "When forking just won't work, patch it.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179499
441