zachleat 2.0.2 → 39.0.0

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.
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "zachleat",
3
- "version": "2.0.2",
3
+ "version": "39.0.0",
4
4
  "description": "Meta package for @zachleat the person",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
7
7
  "zachleat": "./src/cmd.js"
8
8
  },
9
9
  "scripts": {
10
+ "default": "node src/cmd.js",
10
11
  "test": "npx ava"
11
12
  },
12
13
  "engines": {
13
- "node": ">=6"
14
+ "node": ">=12"
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",
@@ -23,6 +24,9 @@
23
24
  },
24
25
  "homepage": "https://github.com/zachleat/zachleat#readme",
25
26
  "devDependencies": {
26
- "ava": "^1.0.0"
27
+ "ava": "^4.0.1"
28
+ },
29
+ "dependencies": {
30
+ "update-notifier": "^5.1.0"
27
31
  }
28
32
  }
package/src/index.js CHANGED
@@ -1,3 +1,13 @@
1
+ const updateNotifier = require("update-notifier");
2
+ const pkg = require("../package.json");
3
+
4
+ updateNotifier({ pkg }).notify();
5
+
1
6
  module.exports = function() {
2
- console.log( "Hi, I’m @zachleat." );
7
+ console.log( ` Hi, I’m Zach.
8
+
9
+ Web: https://zachleat.com/
10
+ Twitter: https://twitter.com/zachleat
11
+ GitHub: https://github.com/zachleat
12
+ ` );
3
13
  };
package/test/test.js CHANGED
@@ -1,5 +1,11 @@
1
- import test from "ava";
1
+ const test = require("ava");
2
+ const zachleat = require("../")
2
3
 
3
- test(t => {
4
+ test("Status", t => {
4
5
  t.true(true, "Everything is fine.");
6
+ });
7
+
8
+ test("Output", t => {
9
+ zachleat();
10
+ t.true(true);
5
11
  });