pob 35.2.1 → 35.3.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/lib/generators/common/format-lint/CommonLintGenerator.js +2 -1
- package/lib/generators/common/testing/CommonTestingGenerator.js +2 -3
- package/lib/generators/core/ci/templates/github-action-push-workflow.yml.ejs +2 -0
- package/lib/generators/core/git/CoreGitGenerator.js +5 -0
- package/lib/generators/core/package/CorePackageGenerator.js +3 -0
- package/package.json +8 -7
|
@@ -317,17 +317,17 @@ export default class CommonTestingGenerator extends Generator {
|
|
|
317
317
|
packageUtils.addDevDependencies(pkg, ["vite"]);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
packageUtils.removeScripts(["generate:test-coverage"]);
|
|
321
|
+
|
|
320
322
|
if (!this.options.enable) {
|
|
321
323
|
// if (inMonorepo) {
|
|
322
324
|
// if (pkg.scripts.test === 'echo "No tests"') {
|
|
323
325
|
// delete pkg.scripts.test;
|
|
324
326
|
// }
|
|
325
|
-
// delete pkg.scripts['generate:test-coverage'];
|
|
326
327
|
// }
|
|
327
328
|
packageUtils.removeScripts([
|
|
328
329
|
"test",
|
|
329
330
|
"test:coverage",
|
|
330
|
-
"generate:test-coverage",
|
|
331
331
|
"test:watch",
|
|
332
332
|
"test:coverage",
|
|
333
333
|
"test:coverage:json",
|
|
@@ -395,7 +395,6 @@ export default class CommonTestingGenerator extends Generator {
|
|
|
395
395
|
|
|
396
396
|
if (globalTesting) {
|
|
397
397
|
if (pkg.scripts) {
|
|
398
|
-
delete pkg.scripts["generate:test-coverage"];
|
|
399
398
|
delete pkg.scripts["test:watch"];
|
|
400
399
|
delete pkg.scripts["test:coverage"];
|
|
401
400
|
}
|
|
@@ -99,6 +99,8 @@ jobs:
|
|
|
99
99
|
with:
|
|
100
100
|
fail_ci_if_error: true
|
|
101
101
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
102
|
+
files: ./coverage/coverage-final.json
|
|
103
|
+
disable_search: true
|
|
102
104
|
if: startsWith(matrix.node-version, '<%= nodeLatestMajorVersion %>.') && github.actor != 'dependabot[bot]'
|
|
103
105
|
<% } else if (testing) { -%>
|
|
104
106
|
|
|
@@ -131,6 +131,11 @@ export default class CoreGitGenerator extends Generator {
|
|
|
131
131
|
if (!pkg.homepage && this.gitHostAccount) {
|
|
132
132
|
pkg.homepage = `https://${this.gitHost}.com/${this.gitHostAccount}/${repoName}`;
|
|
133
133
|
}
|
|
134
|
+
if (this.gitHostAccount) {
|
|
135
|
+
pkg.bugs = {
|
|
136
|
+
url: `https://${this.gitHost}.com/${this.gitHostAccount}/${repoName}/issues`,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
134
139
|
|
|
135
140
|
const repository = `https://${this.gitHost}.com/${this.gitHostAccount}/${repoName}.git`;
|
|
136
141
|
|
|
@@ -206,6 +206,8 @@ export default class CorePackageGenerator extends Generator {
|
|
|
206
206
|
directory: process.cwd().slice(inMonorepo.rootPath.length + 1),
|
|
207
207
|
};
|
|
208
208
|
pkg.homepage = rootMonorepoPkg.homepage;
|
|
209
|
+
if (pkg.private) delete pkg.bugs;
|
|
210
|
+
else if (rootMonorepoPkg.bugs) pkg.bugs = rootMonorepoPkg.bugs;
|
|
209
211
|
|
|
210
212
|
if (this.fs.exists(this.destinationPath("yarn.lock"))) {
|
|
211
213
|
fs.unlinkSync(this.destinationPath("yarn.lock"));
|
|
@@ -214,6 +216,7 @@ export default class CorePackageGenerator extends Generator {
|
|
|
214
216
|
fs.unlinkSync(this.destinationPath("pnpm-lock.yaml"));
|
|
215
217
|
}
|
|
216
218
|
}
|
|
219
|
+
|
|
217
220
|
if (this.fs.exists(this.destinationPath("yarn-error.log"))) {
|
|
218
221
|
fs.unlinkSync(this.destinationPath("yarn-error.log"));
|
|
219
222
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.3.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"minimist": "1.2.8",
|
|
47
47
|
"oxfmt": "0.51.0",
|
|
48
48
|
"parse-author": "2.0.0",
|
|
49
|
-
"semver": "7.8.
|
|
49
|
+
"semver": "7.8.1",
|
|
50
50
|
"typescript": "6.0.3",
|
|
51
51
|
"validate-npm-package-name": "^8.0.0",
|
|
52
52
|
"yeoman-environment": "6.1.0",
|
|
53
53
|
"yeoman-generator": "8.2.2",
|
|
54
|
-
"@pob/sort-
|
|
55
|
-
"pob-dependencies": "24.1.
|
|
56
|
-
"@pob/sort-
|
|
54
|
+
"@pob/sort-object": "11.1.1",
|
|
55
|
+
"pob-dependencies": "24.1.1",
|
|
56
|
+
"@pob/sort-pkg": "13.1.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "24.12.4",
|
|
60
|
-
"@pob/root": "24.
|
|
60
|
+
"@pob/root": "24.3.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=22.18.0"
|
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
"build": "pnpm run build:definitions",
|
|
70
70
|
"build:definitions": "tsc -p tsconfig.json",
|
|
71
71
|
"lint": "pnpm run lint:eslint",
|
|
72
|
-
"lint:eslint": "pnpm run --dir '../..' eslint --quiet 'packages/pob'"
|
|
72
|
+
"lint:eslint": "pnpm run --dir '../..' eslint --quiet 'packages/pob'",
|
|
73
|
+
"tsc": "tsc"
|
|
73
74
|
},
|
|
74
75
|
"bin": {
|
|
75
76
|
"pob": "./lib/pob.js"
|