pob 26.11.0 → 27.0.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
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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
|
+
## [27.0.0](https://github.com/christophehurpeau/pob/compare/pob@26.11.0...pob@27.0.0) (2025-04-27)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* remove postinstallDev plugin
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* remove postinstallDev plugin ([a0ddde0](https://github.com/christophehurpeau/pob/commit/a0ddde0cbd970bf7e4b698f735b849ca5440607e))
|
|
15
|
+
|
|
16
|
+
Version bump for dependency: @pob/root
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [26.11.0](https://github.com/christophehurpeau/pob/compare/pob@26.10.0...pob@26.11.0) (2025-03-15)
|
|
7
20
|
|
|
8
21
|
### Features
|
|
@@ -368,8 +368,8 @@ export default class CorePackageGenerator extends Generator {
|
|
|
368
368
|
uninstallPostinstallScript("postinstall");
|
|
369
369
|
}
|
|
370
370
|
} else if (this.options.packageManager === "yarn") {
|
|
371
|
-
uninstallPostinstallScript("
|
|
372
|
-
installPostinstallScript("
|
|
371
|
+
uninstallPostinstallScript("postinstallDev");
|
|
372
|
+
installPostinstallScript("postinstall");
|
|
373
373
|
} else {
|
|
374
374
|
uninstallPostinstallScript("postinstallDev");
|
|
375
375
|
installPostinstallScript("postinstall");
|
|
@@ -80,24 +80,24 @@ export default class CoreYarnGenerator extends Generator {
|
|
|
80
80
|
const isPluginInstalled = (name) =>
|
|
81
81
|
installedPlugins.some((plugin) => plugin.name === name);
|
|
82
82
|
|
|
83
|
-
const installPlugin = (nameOrUrl) => {
|
|
84
|
-
|
|
85
|
-
};
|
|
83
|
+
// const installPlugin = (nameOrUrl) => {
|
|
84
|
+
// this.spawnSync("yarn", ["plugin", "import", nameOrUrl]);
|
|
85
|
+
// };
|
|
86
86
|
const removePlugin = (name) => {
|
|
87
87
|
this.spawnSync("yarn", ["plugin", "remove", name]);
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
const installPluginIfNotInstalled = (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
) => {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
};
|
|
90
|
+
// const installPluginIfNotInstalled = (
|
|
91
|
+
// name,
|
|
92
|
+
// nameOrUrl = name,
|
|
93
|
+
// forceInstallIfInstalled = () => false,
|
|
94
|
+
// ) => {
|
|
95
|
+
// if (!isPluginInstalled(name)) {
|
|
96
|
+
// installPlugin(nameOrUrl);
|
|
97
|
+
// } else if (forceInstallIfInstalled()) {
|
|
98
|
+
// installPlugin(nameOrUrl);
|
|
99
|
+
// }
|
|
100
|
+
// };
|
|
101
101
|
|
|
102
102
|
const removePluginIfInstalled = (name) => {
|
|
103
103
|
if (isPluginInstalled(name)) {
|
|
@@ -108,13 +108,20 @@ export default class CoreYarnGenerator extends Generator {
|
|
|
108
108
|
const postinstallDevPluginName = "@yarnpkg/plugin-postinstall-dev";
|
|
109
109
|
const legacyVersionPluginName = "@yarnpkg/plugin-conventional-version";
|
|
110
110
|
|
|
111
|
+
removePluginIfInstalled(postinstallDevPluginName);
|
|
111
112
|
if (!inMonorepo && !pkg.private) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
113
|
+
packageUtils.addDevDependencies(pkg, ["pinst"]);
|
|
114
|
+
packageUtils.addScripts(pkg, {
|
|
115
|
+
prepack: "pinst --disable",
|
|
116
|
+
postpack: "pinst --enable",
|
|
117
|
+
});
|
|
116
118
|
} else {
|
|
117
|
-
|
|
119
|
+
if (pkg.scripts.prepack === "pinst --disable") {
|
|
120
|
+
delete pkg.scripts.prepack;
|
|
121
|
+
}
|
|
122
|
+
if (pkg.scripts.postpack === "pinst --enable") {
|
|
123
|
+
delete pkg.scripts.postpack;
|
|
124
|
+
}
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
if (pkg.name !== "yarn-plugin-conventional-version") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"mem-fs-editor": "11.1.4",
|
|
65
65
|
"minimist": "1.2.8",
|
|
66
66
|
"parse-author": "2.0.0",
|
|
67
|
-
"pob-dependencies": "
|
|
67
|
+
"pob-dependencies": "18.0.0",
|
|
68
68
|
"prettier": "3.5.3",
|
|
69
69
|
"semver": "7.7.1",
|
|
70
70
|
"typescript": "5.8.2",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"yeoman-generator": "7.5.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@pob/root": "
|
|
77
|
+
"@pob/root": "17.0.0",
|
|
78
78
|
"@types/node": "22.13.10"
|
|
79
79
|
}
|
|
80
80
|
}
|