@thegetty/quire-cli 1.0.0-rc.21 → 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 +13 -7
- package/bin/cli.js +1 -8
- package/package.json +2 -1
- package/src/lib/conf/config.js +1 -8
- package/src/lib/quire/index.js +1 -6
- package/src/main.js +1 -6
- package/src/packageConfig.js +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -12,13 +12,7 @@ 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.
|
|
16
|
-
|
|
17
|
-
### Fixed
|
|
18
|
-
|
|
19
|
-
- Fixed missing import of `node:path`
|
|
20
|
-
|
|
21
|
-
## [1.0.0-rc.20]
|
|
15
|
+
## [1.0.0-rc.23]
|
|
22
16
|
|
|
23
17
|
### Changed
|
|
24
18
|
|
|
@@ -28,6 +22,18 @@ Changelog entries are classified using the following labels:
|
|
|
28
22
|
|
|
29
23
|
- Quire new command fails with newer version of Node #968
|
|
30
24
|
|
|
25
|
+
## [1.0.0-rc.22]
|
|
26
|
+
|
|
27
|
+
:warning: broken release candidate
|
|
28
|
+
|
|
29
|
+
## [1.0.0-rc.21]
|
|
30
|
+
|
|
31
|
+
:warning: broken release candidate
|
|
32
|
+
|
|
33
|
+
## [1.0.0-rc.20]
|
|
34
|
+
|
|
35
|
+
:warning: broken release candidate
|
|
36
|
+
|
|
31
37
|
## [1.0.0-rc.19]
|
|
32
38
|
|
|
33
39
|
### Added
|
package/bin/cli.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --no-warnings
|
|
2
|
-
import { dirname, join } from 'node:path'
|
|
3
|
-
import { fileURLToPath } from 'node:url'
|
|
4
|
-
import fs from 'node:fs'
|
|
5
2
|
import cli from '#src/main.js'
|
|
6
3
|
import config from '#src/lib/conf/config.js'
|
|
4
|
+
import packageConfig from '#src/packageConfig.js'
|
|
7
5
|
import updateNotifier from 'update-notifier'
|
|
8
6
|
|
|
9
|
-
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
10
|
-
|
|
11
|
-
const packagePath = join(__dirname, 'package.json')
|
|
12
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
13
|
-
|
|
14
7
|
process.removeAllListeners('warning')
|
|
15
8
|
|
|
16
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.23",
|
|
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,16 +1,9 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url'
|
|
2
1
|
import Conf from 'conf'
|
|
3
2
|
import defaults from './defaults.js'
|
|
4
|
-
import fs from 'node:fs'
|
|
5
3
|
import migrations from './migrations.js'
|
|
6
|
-
import
|
|
4
|
+
import packageConfig from '#src/packageConfig.js'
|
|
7
5
|
import schema from './schema.js'
|
|
8
6
|
|
|
9
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
10
|
-
|
|
11
|
-
const packagePath = path.join(__dirname, 'package.json')
|
|
12
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
13
|
-
|
|
14
7
|
const { name, version } = packageConfig
|
|
15
8
|
|
|
16
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
|
@@ -1,12 +1,7 @@
|
|
|
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
|
-
|
|
8
|
-
const packagePath = join(fileURLToPath(import.meta.url), 'package.json')
|
|
9
|
-
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
4
|
+
import packageConfig from '#src/packageConfig.js'
|
|
10
5
|
|
|
11
6
|
const { version } = packageConfig
|
|
12
7
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname } from 'node:path'
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
import { readPackageUpSync } from 'read-package-up'
|
|
4
|
+
|
|
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 })
|
|
15
|
+
|
|
16
|
+
export default packageJson
|