@peerigon/configs 14.0.6 → 14.0.8
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 +14 -0
- package/dist/semantic-release/cross-publish.js +22 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [14.0.8](https://github.com/peerigon/configs/compare/v14.0.7...v14.0.8) (2026-02-12)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- Do not try to publish unscoped packages on Github ([99c5846](https://github.com/peerigon/configs/commit/99c5846a7b130e6e8355781a82bc4f1cc1b4daca))
|
|
6
|
+
- Remove [@ts-self-types](https://github.com/ts-self-types) annotation ([9590c6f](https://github.com/peerigon/configs/commit/9590c6f12a434f17eb9c71d9096a7698e83b0212))
|
|
7
|
+
- Restore original jsr.json config ([7c3e1d5](https://github.com/peerigon/configs/commit/7c3e1d568b8f783ed8afad8d4894a64aa30a9f27))
|
|
8
|
+
|
|
9
|
+
## [14.0.7](https://github.com/peerigon/configs/compare/v14.0.6...v14.0.7) (2026-02-10)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- Test JSR publish ([4883d0f](https://github.com/peerigon/configs/commit/4883d0f2f14dc1728fe3effba96f0bdd290cdffd))
|
|
14
|
+
|
|
1
15
|
## [14.0.6](https://github.com/peerigon/configs/compare/v14.0.5...v14.0.6) (2026-02-10)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// @ts-self-types="./cross-publish.d.ts"
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
2
4
|
import { config as baseConfig } from "./base.js";
|
|
3
5
|
/**
|
|
4
6
|
* Generic semantic-release config shape for portable declaration output.
|
|
@@ -12,7 +14,10 @@ import { config as baseConfig } from "./base.js";
|
|
|
12
14
|
* @param {{ github: boolean; jsr: boolean }} options?
|
|
13
15
|
* @returns {SemanticReleaseConfig}
|
|
14
16
|
*/
|
|
15
|
-
export function config({ github =
|
|
17
|
+
export function config({ github = defaultGithub, jsr = false } = {
|
|
18
|
+
github: defaultGithub,
|
|
19
|
+
jsr: true,
|
|
20
|
+
}) {
|
|
16
21
|
/** @type {unknown[]} */
|
|
17
22
|
const plugins = [];
|
|
18
23
|
if (baseConfig.plugins) {
|
|
@@ -41,4 +46,20 @@ export function config({ github = false, jsr = false } = { github: true, jsr: tr
|
|
|
41
46
|
plugins,
|
|
42
47
|
};
|
|
43
48
|
}
|
|
49
|
+
const defaultGithub = (() => {
|
|
50
|
+
try {
|
|
51
|
+
const packageJsonPath = resolve(process.cwd(), "package.json");
|
|
52
|
+
const packageJsonContent = readFileSync(packageJsonPath, "utf8");
|
|
53
|
+
const packageJson = JSON.parse(packageJsonContent);
|
|
54
|
+
if (typeof packageJson !== "object" || packageJson === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
const typedPackageJson = /** @type {{ name?: unknown }} */ (packageJson);
|
|
58
|
+
const name = typedPackageJson.name;
|
|
59
|
+
return typeof name === "string" && name.startsWith("@");
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
})();
|
|
44
65
|
export default config();
|