tslint-immutable
Advanced tools
Comparing version 0.2.3 to 1.0.0
{ | ||
"name": "tslint-immutable", | ||
"version": "0.2.3", | ||
"version": "1.0.0", | ||
"description": "TSLint rules to disable all mutation in TypeScript.", | ||
@@ -9,5 +9,5 @@ "main": "index.js", | ||
"build": "tsc -p tsconfig.prod.json", | ||
"publish:major": "npm run build && node scripts/publish.js major", | ||
"publish:minor": "npm run build && node scripts/publish.js minor", | ||
"publish:patch": "npm run build && node scripts/publish.js patch" | ||
"publish:major": "rm -rf rules && npm run build && node scripts/publish.js major", | ||
"publish:minor": "rm -rf rules && npm run build && node scripts/publish.js minor", | ||
"publish:patch": "rm -rf rules && npm run build && node scripts/publish.js patch" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -5,3 +5,3 @@ require("shelljs/global"); | ||
console.log(`Incrementing the ${versionPart} part of version in package.json...`); | ||
const newVersion = incrementVersion(versionPart); | ||
const newVersion = "1.0.0"; //incrementVersion(versionPart); | ||
console.log(`New version is ${newVersion}, commiting rules, package.json...`); | ||
@@ -13,4 +13,13 @@ commit(newVersion); | ||
push(); | ||
console.log(`Publishing on npm...`); | ||
publish(); | ||
console.log(`Publish of new ${versionPart} versioned ${newVersion} completed successfully`); | ||
function publish() { | ||
if (exec(`npm publish`).code !== 0) { | ||
echo("Error: Npm publish failed"); | ||
exit(1); | ||
} | ||
} | ||
function push() { | ||
@@ -17,0 +26,0 @@ if (exec(`git push --follow-tags`).code !== 0) { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
23527
240
0