@dk/hipp 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -3
  2. package/hipp.js +16 -6
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -211,12 +211,20 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
211
211
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
212
212
  PERFORMANCE OF THIS SOFTWARE.
213
213
 
214
+ ## Verify
215
+
216
+ Verify this package with [@dk/hipp](https://www.npmjs.com/package/@dk/hipp):
217
+
218
+ ```bash
219
+ npx @dk/hipp verify @dk/hipp@0.1.19
220
+ ```
221
+
214
222
  ```json
215
223
  {
216
224
  "origin": "git@github.com:dmytri/hipp.git",
217
- "tag": "v0.1.17",
218
- "hash": "7a9817b5d57a5c5c43cac3d608d4a0e907dcbdf8031252a62b29195391b38b26",
219
- "signature": "/o75TYcgRUS0pVQEmJeCamZ5z6wTDQtawuaKYd4lbZCBWuqEeuaPECRefTgzC7tDr6bCyFd6p4biPGWIroBlCA==",
225
+ "tag": "v0.1.19",
226
+ "hash": "adcdd07b563c5667d405b36ee1e391710e1baf4ee9434b1fd2f5a11c2acdecf0",
227
+ "signature": "MdkA4AbDX4ofShqXKJxwWX+x+RWQJU16WpSkFvHU8LihgdIBJbsyNvzIfrjm+3cll2FdR5u3+/dwv+a0rHbUDw==",
220
228
  "name": "Dmytri Kleiner",
221
229
  "email": "dev@dmytri.to"
222
230
  }
package/hipp.js CHANGED
@@ -508,15 +508,20 @@ async function runVerify(packageSpec) {
508
508
  log.info(`🔍 Check 3: Rebuilding from source...`);
509
509
  const stagedReadmePath = path.join(stageDir, 'README.md');
510
510
  let stagedReadme = fs.readFileSync(stagedReadmePath, 'utf8');
511
- stagedReadme = stagedReadme.trimEnd() + '\n\n```json\n' + JSON.stringify(manifest, null, 2) + '\n```\n';
512
- fs.writeFileSync(stagedReadmePath, stagedReadme);
513
-
514
- const stagedPkgPath = path.join(stageDir, 'package.json');
515
- const stagedPkg = JSON.parse(fs.readFileSync(stagedPkgPath, 'utf8'));
516
511
  const tagVersion = semver.clean(tag);
517
512
  if (!tagVersion) {
518
513
  fail(`❌ Tag ${tag} is not valid semver`);
519
514
  }
515
+ stagedReadme = stagedReadme.trimEnd() + '\n\n## Verify\n\n' +
516
+ 'Verify this package with [@dk/hipp](https://www.npmjs.com/package/@dk/hipp):\n\n' +
517
+ '```bash\n' +
518
+ `npx @dk/hipp verify ${pkgName}@${tagVersion}\n` +
519
+ '```\n\n' +
520
+ '```json\n' + JSON.stringify(manifest, null, 2) + '\n```\n';
521
+ fs.writeFileSync(stagedReadmePath, stagedReadme);
522
+
523
+ const stagedPkgPath = path.join(stageDir, 'package.json');
524
+ const stagedPkg = JSON.parse(fs.readFileSync(stagedPkgPath, 'utf8'));
520
525
  stagedPkg.version = tagVersion;
521
526
  fs.writeFileSync(stagedPkgPath, JSON.stringify(stagedPkg, null, 2) + '\n');
522
527
 
@@ -645,7 +650,12 @@ async function run() {
645
650
  email: email,
646
651
  };
647
652
 
648
- stagedReadme = stagedReadme.trimEnd() + '\n\n```json\n' + JSON.stringify(manifestJson, null, 2) + '\n```\n';
653
+ stagedReadme = stagedReadme.trimEnd() + '\n\n## Verify\n\n' +
654
+ 'Verify this package with [@dk/hipp](https://www.npmjs.com/package/@dk/hipp):\n\n' +
655
+ '```bash\n' +
656
+ `npx @dk/hipp verify ${pkg.name}@${version}\n` +
657
+ '```\n\n' +
658
+ '```json\n' + JSON.stringify(manifestJson, null, 2) + '\n```\n';
649
659
  fs.writeFileSync(stagedReadmePath, stagedReadme);
650
660
 
651
661
  const stagedPkgPath = path.join(stageDir, 'package.json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dk/hipp",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "High Integrity Package Publisher",
5
5
  "main": "hipp.js",
6
6
  "bin": {