pob 23.3.0 → 23.4.1
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
|
@@ -3,6 +3,21 @@
|
|
|
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
|
+
## [23.4.1](https://github.com/christophehurpeau/pob/compare/pob@23.4.0...pob@23.4.1) (2024-09-29)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add yarnrc.yml in prettier ignore ([3be4353](https://github.com/christophehurpeau/pob/commit/3be4353b3f5baf06c894e8269aec1d8570b0b429))
|
|
11
|
+
* only try to update yarnrc on changes ([2390c71](https://github.com/christophehurpeau/pob/commit/2390c71bc8363ee48aab0790068265a363714b32))
|
|
12
|
+
|
|
13
|
+
Version bump for dependency: @pob/root
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [23.4.0](https://github.com/christophehurpeau/pob/compare/pob@23.3.0...pob@23.4.0) (2024-09-29)
|
|
17
|
+
|
|
18
|
+
Version bump for dependency: @pob/root
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## [23.3.0](https://github.com/christophehurpeau/pob/compare/pob@23.2.1...pob@23.3.0) (2024-09-29)
|
|
7
22
|
|
|
8
23
|
### Features
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
|
+
import { isDeepStrictEqual } from "node:util";
|
|
2
3
|
import sortObject from "@pob/sort-object";
|
|
3
4
|
import yml from "js-yaml";
|
|
4
5
|
import { lt } from "semver";
|
|
@@ -146,15 +147,16 @@ export default class CoreYarnGenerator extends Generator {
|
|
|
146
147
|
schema: yml.FAILSAFE_SCHEMA,
|
|
147
148
|
json: true,
|
|
148
149
|
}) || {};
|
|
150
|
+
const previousConfig = { ...config };
|
|
149
151
|
if (this.options.disableYarnGitCache) {
|
|
150
152
|
// leave default compressionLevel instead of this next line
|
|
151
153
|
delete config.compressionLevel;
|
|
152
154
|
// config.compressionLevel = "mixed"; // optimized for size
|
|
153
|
-
config.enableGlobalCache = true;
|
|
155
|
+
config.enableGlobalCache = "true";
|
|
154
156
|
delete config.supportedArchitectures;
|
|
155
157
|
} else {
|
|
156
158
|
config.compressionLevel = 0; // optimized for github config
|
|
157
|
-
config.enableGlobalCache = false;
|
|
159
|
+
config.enableGlobalCache = "false";
|
|
158
160
|
// https://yarnpkg.dev/releases/3-1/
|
|
159
161
|
// make sure all supported architectures are in yarn cache
|
|
160
162
|
config.supportedArchitectures = {
|
|
@@ -172,13 +174,15 @@ export default class CoreYarnGenerator extends Generator {
|
|
|
172
174
|
delete config.yarnPath;
|
|
173
175
|
}
|
|
174
176
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
if (!isDeepStrictEqual(config, previousConfig)) {
|
|
178
|
+
writeAndFormat(
|
|
179
|
+
this.fs,
|
|
180
|
+
".yarnrc.yml",
|
|
181
|
+
yml.dump(sortObject(config), {
|
|
182
|
+
lineWidth: 9999,
|
|
183
|
+
}),
|
|
184
|
+
);
|
|
185
|
+
}
|
|
182
186
|
} else {
|
|
183
187
|
this.fs.delete(".yarn");
|
|
184
188
|
this.fs.delete(".yarnrc.yml");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.4.1",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"yeoman-generator": "7.3.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@pob/root": "13.
|
|
77
|
+
"@pob/root": "13.4.1",
|
|
78
78
|
"@types/node": "20.16.10",
|
|
79
79
|
"typescript": "5.6.2"
|
|
80
80
|
}
|