removeScript(name, match) {
			if (!match) {
				if (typeof name === 'string') {
					// Remove a script with a given name
					pkg.unset(['scripts', name]);
				} else {
					// Remove all scripts with names matching a regexp
					const scriptNames = Object.keys(pkg.get('scripts', {}));
					scriptNames.forEach(script => {
						if (script.match(name)) {
							pkg.unset(['scripts', script]);
						}
					});
				}
				return this;
			}

			// No script found with a given name
			const command = pkg.get(['scripts', name]);
			if (!command) {
				return this;
			}

			// Remove a subcommand from a script
			const newCommand = splitSubcommands(command)
				.filter(cmd => !cmd.match(match))
				.join(' && ');
			pkg.set(['scripts', name], newCommand);
			return this;
		}
Removes a script with a given name (or all scripts that match a regexp).
Removes a subcommand (part between &&) from a script that matches a regexp if the match parameter is given.