@thegetty/quire-cli 1.0.0-rc.20 → 1.0.0-rc.21
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 +6 -0
- package/bin/cli.js +3 -2
- package/package.json +1 -1
- package/src/lib/conf/config.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,12 @@ 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.21]
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fixed missing import of `node:path`
|
|
20
|
+
|
|
15
21
|
## [1.0.0-rc.20]
|
|
16
22
|
|
|
17
23
|
### Changed
|
package/bin/cli.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --no-warnings
|
|
2
|
+
import { dirname, join } from 'node:path'
|
|
2
3
|
import { fileURLToPath } from 'node:url'
|
|
3
4
|
import fs from 'node:fs'
|
|
4
5
|
import cli from '#src/main.js'
|
|
5
6
|
import config from '#src/lib/conf/config.js'
|
|
6
7
|
import updateNotifier from 'update-notifier'
|
|
7
8
|
|
|
8
|
-
const __dirname =
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
9
10
|
|
|
10
|
-
const packagePath =
|
|
11
|
+
const packagePath = join(__dirname, 'package.json')
|
|
11
12
|
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
12
13
|
|
|
13
14
|
process.removeAllListeners('warning')
|
package/package.json
CHANGED
package/src/lib/conf/config.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url'
|
|
2
|
-
import fs from 'node:fs'
|
|
3
2
|
import Conf from 'conf'
|
|
4
3
|
import defaults from './defaults.js'
|
|
4
|
+
import fs from 'node:fs'
|
|
5
5
|
import migrations from './migrations.js'
|
|
6
|
+
import path from 'node:path'
|
|
6
7
|
import schema from './schema.js'
|
|
7
8
|
|
|
8
9
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|