@pob/pretty-pkg 4.0.1 → 4.1.0
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 +11 -0
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.1.0](https://github.com/christophehurpeau/pob/compare/@pob/pretty-pkg@4.0.1...@pob/pretty-pkg@4.1.0) (2022-04-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **deps:** update @pob/eslint-config ([#1236](https://github.com/christophehurpeau/pob/issues/1236)) ([e3cc1ad](https://github.com/christophehurpeau/pob/commit/e3cc1ad732f162391cdf4df87bc5f65e9c61e347))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.0.1](https://github.com/christophehurpeau/pob/compare/@pob/pretty-pkg@4.0.0...@pob/pretty-pkg@4.0.1) (2021-12-12)
|
|
7
18
|
|
|
8
19
|
|
package/lib/index.js
CHANGED
|
@@ -30,10 +30,10 @@ export default function prettyPkg(pkg, prettierOptions = pkg.prettier) {
|
|
|
30
30
|
|
|
31
31
|
export function writeSync(pkg, path, prettierOptions) {
|
|
32
32
|
const string = prettyPkg(pkg, prettierOptions);
|
|
33
|
-
fs.writeFileSync(path, string, '
|
|
33
|
+
fs.writeFileSync(path, string, 'utf8');
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function overrideSync(path, prettierOptions) {
|
|
37
|
-
const pkg = fs.readFileSync(path, '
|
|
37
|
+
const pkg = fs.readFileSync(path, 'utf8');
|
|
38
38
|
return writeSync(pkg, path, prettierOptions);
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/pretty-pkg",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "prettier and sort package.json",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@pob/sort-pkg": "^4.0.1",
|
|
41
41
|
"prettier": "^2.1.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ef8bddd03fe7543d9dac575a3450549c874f7f9d"
|
|
44
44
|
}
|