@thegetty/quire-cli 1.0.0-rc.15 → 1.0.0-rc.17

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/CHANGELOG.md CHANGED
@@ -5,19 +5,23 @@ All notable changes to the `quire-cli` will be documented in this file.
5
5
  The log format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  Changelog entries are classified using the following labels:
8
-
9
8
  - `Added`: for new features
10
-
11
9
  - `Bumped`: updated dependencies, only minor or higher will be listed
12
-
13
10
  - `Changed`: for changes in existing functionality
14
-
15
11
  - `Deprecated`: for once-stable features removed in upcoming releases
16
-
17
12
  - `Fixed`: for any bug fixes
18
-
19
13
  - `Removed`: for deprecated features removed in this release
20
14
 
15
+ ## [1.0.0-rc.16]
16
+
17
+ ### Changed
18
+
19
+ - Patch for `install-npm-version@8.0.0`; see https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
20
+
21
+ ### Fixed
22
+
23
+ - Dependency instal error on Windows when running quire new DEV-19124
24
+
21
25
  ## [1.0.0-rc.12]
22
26
 
23
27
  ### Added
package/README.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  The `quire-cli` implements the [command pattern](https://en.wikipedia.org/wiki/Command_pattern) to receive input from a user and delegate command behavoir to modules for the services, such as `git` and `11ty`, involved in working on Quire publications.
4
4
 
5
+ ### Installing the CLI
6
+
7
+ The `quire-cli` can be installed as a global npm module as follows
8
+
9
+ ```sh
10
+ npm install quire-cli --global
11
+ ```
12
+
13
+ Installing the `quire-cli` as a _local package dependency_ requires additional npm command flags to support patching package dependencies as follows,
14
+
15
+ ```sh
16
+ npm install quire-cli --install-strategy=nested
17
+ ```
18
+
5
19
  ### Using the CLI
6
20
 
7
21
  `npx` supports executing npm package binaries even when they are not yet installed and will download the package into a cache if it does not find either a locally or globally installed version. Simply run
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thegetty/quire-cli",
3
3
  "description": "Quire command-line interface",
4
- "version": "1.0.0-rc.15",
4
+ "version": "1.0.0-rc.17",
5
5
  "author": "Getty Digital",
6
6
  "license": "SEE LICENSE IN https://github.com/thegetty/quire/blob/main/LICENSE",
7
7
  "bugs": {
@@ -19,7 +19,8 @@
19
19
  "type": "module",
20
20
  "files": [
21
21
  "bin/",
22
- "scripts",
22
+ "patches/",
23
+ "scripts/",
23
24
  "src/",
24
25
  "CHANGELOG.md",
25
26
  "LICENSE",
@@ -36,6 +37,7 @@
36
37
  "scripts": {
37
38
  "lint": "eslint src --ext .js",
38
39
  "lint:fix": "npm run lint -- --fix",
40
+ "postinstall": "cross-env patch-package --error-on-fail",
39
41
  "test": "echo \"Error: no test specified\" && exit 1"
40
42
  },
41
43
  "imports": {
@@ -58,11 +60,12 @@
58
60
  "hosted-git-info": "^6.1.1",
59
61
  "i18next": "^22.4.9",
60
62
  "inquirer": "^9.1.4",
61
- "install-npm-version": "^1.0.8",
63
+ "install-npm-version": "^1.0.9",
62
64
  "js-yaml": "^4.1.0",
63
65
  "loglevel": "^1.8.1",
64
66
  "open": "^8.4.0",
65
67
  "ora": "^6.1.2",
68
+ "patch-package": "^8.0.0",
66
69
  "pagedjs-cli": "^0.4.3",
67
70
  "semver": "^7.3.8",
68
71
  "simple-git": "^3.16.0",
@@ -0,0 +1,19 @@
1
+ ## Quire CLI Patches
2
+
3
+ Patches in this directory are applied to locally installed `node_modules` by the npm `postinstall` script ([npm scripts docs](https://docs.npmjs.com/cli/v10/using-npm/scripts)).
4
+
5
+ See [`patch-package`](https://github.com/ds300/patch-package) documenation for [making](https://github.com/ds300/patch-package#making-patches), [updating](https://github.com/ds300/patch-package#updating-patches), [applying](https://github.com/ds300/patch-package#applying-patches) and [reversing](https://github.com/ds300/patch-package#applying-patches) patches.
6
+
7
+ *Nota bene*
8
+
9
+ Patching the `quire-cli` package dependencies changes the way in which it must be must be installed. When installing the `quire-cli` as a _local package dependency_ the `--install-strategy=nested` flag must be used as follows
10
+
11
+ ```sh
12
+ npm install quire-cli --install-strategy=nested
13
+ ```
14
+
15
+ Installing the `quire-cli` as a global npm module has not changed,
16
+
17
+ ```sh
18
+ npm install quire-cli --global
19
+ ```