@thegetty/quire-cli 1.0.0-rc.20 → 1.0.0-rc.22
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 +17 -0
- package/bin/cli.js +1 -7
- package/package.json +2 -1
- package/src/lib/conf/config.js +1 -7
- package/src/lib/quire/index.js +1 -6
- package/src/main.js +1 -3
- package/src/packageConfig.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,23 @@ 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
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Read package configuration using `read-package-up` and export the configuration object from the `packageConfig` module
|
|
25
|
+
|
|
26
|
+
## [1.0.0-rc.21]
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Fixed missing import of `node:path`
|
|
31
|
+
|
|
15
32
|
## [1.0.0-rc.20]
|
|
16
33
|
|
|
17
34
|
### Changed
|
package/bin/cli.js
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --no-warnings
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
|
-
import fs from 'node:fs'
|
|
4
2
|
import cli from '#src/main.js'
|
|
5
3
|
import config from '#src/lib/conf/config.js'
|
|
4
|
+
import packageConfig from '#src/packageConfig.js'
|
|
6
5
|
import updateNotifier from 'update-notifier'
|
|
7
6
|
|
|
8
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
9
|
-
|
|
10
|
-
const packagePath = path.join(__dirname, 'package.json')
|
|
11
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
12
|
-
|
|
13
7
|
process.removeAllListeners('warning')
|
|
14
8
|
|
|
15
9
|
/**
|
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.
|
|
4
|
+
"version": "1.0.0-rc.22",
|
|
5
5
|
"author": "Getty Digital",
|
|
6
6
|
"license": "SEE LICENSE IN https://github.com/thegetty/quire/blob/main/LICENSE",
|
|
7
7
|
"bugs": {
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"ora": "^6.1.2",
|
|
69
69
|
"pagedjs-cli": "^0.4.3",
|
|
70
70
|
"patch-package": "^8.0.0",
|
|
71
|
+
"read-package-up": "^11.0.0",
|
|
71
72
|
"semver": "^7.3.8",
|
|
72
73
|
"simple-git": "^3.16.0",
|
|
73
74
|
"update-notifier": "^7.3.1"
|
package/src/lib/conf/config.js
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url'
|
|
2
|
-
import fs from 'node:fs'
|
|
3
1
|
import Conf from 'conf'
|
|
4
2
|
import defaults from './defaults.js'
|
|
5
3
|
import migrations from './migrations.js'
|
|
4
|
+
import packageConfig from '#src/packageConfig.js'
|
|
6
5
|
import schema from './schema.js'
|
|
7
6
|
|
|
8
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
9
|
-
|
|
10
|
-
const packagePath = path.join(__dirname, 'package.json')
|
|
11
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
12
|
-
|
|
13
7
|
const { name, version } = packageConfig
|
|
14
8
|
|
|
15
9
|
const beforeEachMigration = (store, context) => {
|
package/src/lib/quire/index.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { IS_WINDOWS } from '#helpers/os-utils.js'
|
|
2
2
|
import { chdir, cwd } from 'node:process'
|
|
3
3
|
import { execa, execaCommand } from 'execa'
|
|
4
|
-
import { fileURLToPath } from 'node:url'
|
|
5
4
|
import { isEmpty } from '#helpers/is-empty.js'
|
|
6
5
|
import fetch from 'node-fetch'
|
|
7
6
|
import fs from 'fs-extra'
|
|
8
7
|
import git from '#src/lib/git/index.js'
|
|
9
8
|
import inv from 'install-npm-version'
|
|
9
|
+
import packageConfig from '#src/packageConfig.js'
|
|
10
10
|
import path from 'node:path'
|
|
11
11
|
import semver from 'semver'
|
|
12
12
|
|
|
13
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
14
|
-
|
|
15
|
-
const packagePath = path.join(__dirname, 'package.json')
|
|
16
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
17
|
-
|
|
18
13
|
const { name: PACKAGE_NAME } = packageConfig
|
|
19
14
|
|
|
20
15
|
// Version install path is relative to process working directory
|
package/src/main.js
CHANGED
|
@@ -4,9 +4,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
4
4
|
import fs from 'node:fs'
|
|
5
5
|
import commands from '#src/commands/index.js'
|
|
6
6
|
import config from '#lib/conf/config.js'
|
|
7
|
-
|
|
8
|
-
const packagePath = join(fileURLToPath(import.meta.url), 'package.json')
|
|
9
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
7
|
+
import packageConfig from '#src/packageConfig.js'
|
|
10
8
|
|
|
11
9
|
const { version } = packageConfig
|
|
12
10
|
|