watchful-cli 1.7.32 → 1.7.34

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.
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
 
3
- const { WATCHFUL_CLI } = require("../constants"),
4
- { getPackageVersion } = require("../utilities/packageJSON");
3
+ const { packageUtilities } = require("necessary");
4
+
5
+ const { WATCHFUL_CLI } = require("../constants");
6
+
7
+ const { getVersion } = packageUtilities;
5
8
 
6
9
  function versionAction() {
7
- const packageVersion = getPackageVersion(),
8
- version = packageVersion; ///
10
+ const version = getVersion(); ///
9
11
 
10
12
  console.log(`${WATCHFUL_CLI} version ${version}`);
11
13
  }
package/bin/constants.js CHANGED
@@ -10,7 +10,7 @@ const S = "s",
10
10
  ESBUILD = "esbuild",
11
11
  BROWSERIFY = "browserify",
12
12
  EMPTY_STRING = "",
13
- WATCHFUL_CLI = "watchful-cli",
13
+ WATCHFUL_CLI = "Watchful-CLI",
14
14
  PACKAGE_JSON = "package.json",
15
15
  SOURCE_MAP_PREAMBLE = "//# sourceMappingURL=data:application/json;base64,",
16
16
  PROCESS_TRANSPILE_FILE = "../process/transpileFile",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "watchful-cli",
3
3
  "author": "James Smith",
4
- "version": "1.7.32",
4
+ "version": "1.7.34",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/watchful-cli",
7
7
  "description": "Incremental transpilation with bundling.",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "argumentative": "^2.0.14",
17
17
  "chokidar": "^3.3.1",
18
- "necessary": "^11.7.6"
18
+ "necessary": "^11.8.4"
19
19
  },
20
20
  "scripts": {}
21
21
  }
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- const { pathUtilities, arrayUtilities } = require("necessary");
4
-
5
- const { readFile } = require("../utilities/fileSystem"),
6
- { PACKAGE_JSON } = require("../constants");
7
-
8
- const { second } = arrayUtilities,
9
- { concatenatePaths } = pathUtilities;
10
-
11
- const utilitiesDirectoryName = __dirname, ///
12
- matches = utilitiesDirectoryName.match(/^(.+)\/bin\/utilities$/),
13
- secondMatch = second(matches),
14
- applicationDirectoryName = secondMatch, ///
15
- packageJSONFilePath = concatenatePaths(applicationDirectoryName, PACKAGE_JSON),
16
- packageJSONFile = readFile(packageJSONFilePath),
17
- packageJSON = JSON.parse(packageJSONFile),
18
- { version } = packageJSON,
19
- packageVersion = version; ///
20
-
21
- function getPackageVersion() {
22
- return packageVersion;
23
- }
24
-
25
- module.exports = {
26
- getPackageVersion
27
- };