@thegetty/quire-cli 1.0.0-rc.22 → 1.0.0-rc.23

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
@@ -12,32 +12,27 @@ Changelog entries are classified using the following labels:
12
12
  - `Fixed`: for any bug fixes
13
13
  - `Removed`: for deprecated features removed in this release
14
14
 
15
- ## [1.0.0-rc.22]
16
-
17
- ### Added
18
-
19
- - `read-package-up` to dependencies
20
- - `packageConfig` module, exports parsed `package.json` configuration file
15
+ ## [1.0.0-rc.23]
21
16
 
22
17
  ### Changed
23
18
 
24
- - Read package configuration using `read-package-up` and export the configuration object from the `packageConfig` module
25
-
26
- ## [1.0.0-rc.21]
19
+ - Replace Node `import` assertions (deprecated) with file operations
27
20
 
28
21
  ### Fixed
29
22
 
30
- - Fixed missing import of `node:path`
23
+ - Quire new command fails with newer version of Node #968
31
24
 
32
- ## [1.0.0-rc.20]
25
+ ## [1.0.0-rc.22]
33
26
 
34
- ### Changed
27
+ :warning: broken release candidate
35
28
 
36
- - Replace Node `import` assertions (deprecated) with file operations
29
+ ## [1.0.0-rc.21]
37
30
 
38
- ### Fixed
31
+ :warning: broken release candidate
39
32
 
40
- - Quire new command fails with newer version of Node #968
33
+ ## [1.0.0-rc.20]
34
+
35
+ :warning: broken release candidate
41
36
 
42
37
  ## [1.0.0-rc.19]
43
38
 
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.22",
4
+ "version": "1.0.0-rc.23",
5
5
  "author": "Getty Digital",
6
6
  "license": "SEE LICENSE IN https://github.com/thegetty/quire/blob/main/LICENSE",
7
7
  "bugs": {
package/src/main.js CHANGED
@@ -1,7 +1,4 @@
1
1
  import { Argument, Command, Option } from 'commander'
2
- import { dirname, join } from 'node:path'
3
- import { fileURLToPath } from 'node:url'
4
- import fs from 'node:fs'
5
2
  import commands from '#src/commands/index.js'
6
3
  import config from '#lib/conf/config.js'
7
4
  import packageConfig from '#src/packageConfig.js'
@@ -1,5 +1,16 @@
1
+ import { dirname } from 'node:path'
2
+ import { fileURLToPath } from 'node:url'
1
3
  import { readPackageUpSync } from 'read-package-up'
2
4
 
3
- const { packageJson } = readPackageUpSync()
5
+ const __filename = fileURLToPath(import.meta.url)
6
+ const __dirname = dirname(__filename)
7
+
8
+ /**
9
+ * Nota bene:
10
+ * working directory will be the path from which quire-cli commands are run;
11
+ * readPackageUpSync must be called with the change working directory option
12
+ * set to the path of this module to find the quire-cli package config file.
13
+ */
14
+ const { packageJson } = readPackageUpSync({ cwd: __dirname, normalize: true })
4
15
 
5
16
  export default packageJson