p3x-tools 2026.4.130 → 2026.4.138
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/README.md +3 -3
- package/bin/p3x +1 -1
- package/bin/p3x.js +1 -1
- package/github.json +2 -1
- package/package.json +8 -8
- package/src/command/each.js +7 -3
- package/src/command/git.js +17 -1
- package/src/npm.js +3 -2
- package/src/old-lib.js +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
# 💣 Tools v2026.4.
|
|
9
|
+
# 💣 Tools v2026.4.138
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
### 🛠️ Built on NodeJs version
|
|
23
23
|
|
|
24
24
|
```txt
|
|
25
|
-
v24.
|
|
25
|
+
v24.16.0
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
|
|
@@ -409,7 +409,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
409
409
|
**🚨 Important Changes:** Any breaking changes are prominently noted in the readme to keep you informed.
|
|
410
410
|
|
|
411
411
|
|
|
412
|
-
[**P3X-TOOLS**](https://corifeus.com/tools) Build v2026.4.
|
|
412
|
+
[**P3X-TOOLS**](https://corifeus.com/tools) Build v2026.4.138
|
|
413
413
|
|
|
414
414
|
[](https://www.npmjs.com/package/p3x-tools) [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [](https://www.patrikx3.com/en/front/contact) [](https://www.facebook.com/corifeus.software)
|
|
415
415
|
|
package/bin/p3x
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
//console.debug(`P3X sets UV_THREADPOOL_SIZE to ${cores} thread pool`)
|
|
7
7
|
|
|
8
8
|
if (!require('fs').existsSync(`${__dirname}/../node_modules`)) {
|
|
9
|
-
require('child_process').execSync(`cd ${__dirname}/.. &&
|
|
9
|
+
require('child_process').execSync(`cd ${__dirname}/.. && yarn install --production --force`, {
|
|
10
10
|
stdio: 'inherit'
|
|
11
11
|
});
|
|
12
12
|
}
|
package/bin/p3x.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
//console.debug(`P3X sets UV_THREADPOOL_SIZE to ${cores} thread pool`)
|
|
7
7
|
|
|
8
8
|
if (!require('fs').existsSync(`${__dirname}/../node_modules`)) {
|
|
9
|
-
require('child_process').execSync(`cd ${__dirname}/.. &&
|
|
9
|
+
require('child_process').execSync(`cd ${__dirname}/.. && yarn install --production --force`, {
|
|
10
10
|
stdio: 'inherit'
|
|
11
11
|
});
|
|
12
12
|
}
|
package/github.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "p3x-tools",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.138",
|
|
4
4
|
"corifeus": {
|
|
5
5
|
"icon": "fas fa-wrench",
|
|
6
6
|
"prefix": "p3x-",
|
|
7
7
|
"publish": true,
|
|
8
8
|
"type": "p3x",
|
|
9
9
|
"code": "Lazy",
|
|
10
|
-
"nodejs": "v24.
|
|
10
|
+
"nodejs": "v24.16.0",
|
|
11
11
|
"opencollective": false,
|
|
12
12
|
"reponame": "tools",
|
|
13
13
|
"build": true
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"grunt": "^1.6.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"commander": "^15.0.0
|
|
46
|
-
"corifeus-builder": "^2026.4.
|
|
47
|
-
"corifeus-utils": "^2026.4.
|
|
48
|
-
"fs-extra": "^11.3.
|
|
45
|
+
"commander": "^15.0.0",
|
|
46
|
+
"corifeus-builder": "^2026.4.161",
|
|
47
|
+
"corifeus-utils": "^2026.4.140",
|
|
48
|
+
"fs-extra": "^11.3.5",
|
|
49
49
|
"github-api": "^3.4.0",
|
|
50
50
|
"globby": "^16.2.0",
|
|
51
|
-
"ini": "^
|
|
51
|
+
"ini": "^7.0.0",
|
|
52
52
|
"mz": "^2.7.0",
|
|
53
|
-
"npm-check-updates": "^22.
|
|
53
|
+
"npm-check-updates": "^22.2.3",
|
|
54
54
|
"progress": "^2.0.3",
|
|
55
55
|
"readline": "^1.3.0",
|
|
56
56
|
"tmp-promise": "^3.0.3",
|
package/src/command/each.js
CHANGED
|
@@ -225,9 +225,13 @@ yarn link
|
|
|
225
225
|
if (pkg.name !== undefined && pkg.name.startsWith('corifeus-builder')) {
|
|
226
226
|
hasBuilder = true;
|
|
227
227
|
} else if (command === 'build' || command === 'publish') {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
// Only build/publish packages that explicitly opt in via corifeus.build or
|
|
229
|
+
// corifeus.publish. Depending on corifeus-builder at runtime (e.g. server-scripts
|
|
230
|
+
// reusing its mirrorExclude config) does NOT make a package buildable.
|
|
231
|
+
if (pkg.corifeus !== undefined && (pkg.corifeus.build === true || pkg.corifeus.publish === true)) {
|
|
232
|
+
hasBuilder = true;
|
|
233
|
+
}
|
|
234
|
+
// else: leave hasBuilder undefined → package is skipped
|
|
231
235
|
} else {
|
|
232
236
|
hasBuilder = true;
|
|
233
237
|
}
|
package/src/command/git.js
CHANGED
|
@@ -118,7 +118,23 @@ ${plusCommands === '' ? 'true' : plusCommands}`,
|
|
|
118
118
|
break;
|
|
119
119
|
|
|
120
120
|
case 'pull':
|
|
121
|
-
internalCommand = `git
|
|
121
|
+
internalCommand = `if [ -n "$(git status --porcelain)" ]; then
|
|
122
|
+
echo "[p3x] SKIPPED (uncommitted changes): $(basename "$(pwd)")" >&2
|
|
123
|
+
else
|
|
124
|
+
if ! git symbolic-ref -q HEAD >/dev/null; then
|
|
125
|
+
if git show-ref --verify --quiet refs/heads/master; then
|
|
126
|
+
git checkout master --quiet 2>/dev/null || true
|
|
127
|
+
elif git show-ref --verify --quiet refs/heads/main; then
|
|
128
|
+
git checkout main --quiet 2>/dev/null || true
|
|
129
|
+
else
|
|
130
|
+
echo "[p3x] NO BRANCH (no master/main): $(basename "$(pwd)")" >&2
|
|
131
|
+
fi
|
|
132
|
+
fi
|
|
133
|
+
if git symbolic-ref -q HEAD >/dev/null; then
|
|
134
|
+
git -c advice.diverging=false pull --ff-only || echo "[p3x] PULL FAILED: $(basename "$(pwd)")" >&2
|
|
135
|
+
fi
|
|
136
|
+
fi
|
|
137
|
+
true`
|
|
122
138
|
break;
|
|
123
139
|
}
|
|
124
140
|
|
package/src/npm.js
CHANGED
|
@@ -2,15 +2,16 @@ module.exports.command = {
|
|
|
2
2
|
|
|
3
3
|
publish: (options = {all: true}) => {
|
|
4
4
|
const otp = process.env.NPM_OTP
|
|
5
|
+
const otpFlag = otp ? ` --otp=${otp}` : ''
|
|
5
6
|
|
|
6
|
-
console.log('OTP: ' + otp)
|
|
7
|
+
console.log('OTP: ' + (otp || '(none — using auth token)'))
|
|
7
8
|
|
|
8
9
|
return `grunt cory-npm cory-replace
|
|
9
10
|
grunt cory-raw-npm-angular || true
|
|
10
11
|
(grunt publish -v && sleep 3)|| true
|
|
11
12
|
__PUBLISH_LOCATION_START__
|
|
12
13
|
#npm publish
|
|
13
|
-
|
|
14
|
+
yarn publish --registry https://registry.npmjs.org${otpFlag}
|
|
14
15
|
__PUBLISH_LOCATION_END__`
|
|
15
16
|
}
|
|
16
17
|
}
|
package/src/old-lib.js
CHANGED
|
@@ -183,7 +183,7 @@ const publish = async () => {
|
|
|
183
183
|
const setting = settings[project];
|
|
184
184
|
if (setting !== undefined && setting.hasOwnProperty('publish') ) {
|
|
185
185
|
await exec(project, `${commander.npm ? '' : 'grunt cory-npm'}
|
|
186
|
-
|
|
186
|
+
yarn publish ${commander.npm ? ' --registry https://registry.npmjs.org' : ''}`, barPublish);
|
|
187
187
|
await upgrade(barPublish)
|
|
188
188
|
} else {
|
|
189
189
|
barPublish.tick({
|