@trebired/code-discipline 7.0.1 → 7.0.2
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
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.0.2
|
|
4
|
+
|
|
5
|
+
- Removed dead `config.creator` from `package.json`.
|
|
6
|
+
- Updated shared utilities to `@trebired/utils@^0.6.0` and replaced the removed `readPackageIdentity()` with `readPackageJsonUrl()` + `readOrganizationIdentity()` + `packageSlug()`/`joinLogGroup()`. No change to exported metadata values.
|
|
7
|
+
|
|
3
8
|
## 7.0.0
|
|
4
9
|
|
|
5
10
|
- Added `maxDeclarationName` / `max-declaration-name`, defaulting to `max: 50`, to report overly long declaration names through the native declaration scanner.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
declare const PACKAGE_ORGANIZATION_NAME: string;
|
|
1
2
|
declare const PACKAGE_NAME: string;
|
|
2
3
|
declare const PACKAGE_VERSION: string;
|
|
3
|
-
declare const PACKAGE_ORGANIZATION_NAME: string;
|
|
4
4
|
declare const PACKAGE_SLUG: string;
|
|
5
5
|
declare const buildPackageLogGroup: (...parts: unknown[]) => string;
|
|
6
6
|
export { buildPackageLogGroup, PACKAGE_NAME, PACKAGE_ORGANIZATION_NAME, PACKAGE_SLUG, PACKAGE_VERSION, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-metadata.d.ts","sourceRoot":"","sources":["../../src/shared/package-metadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package-metadata.d.ts","sourceRoot":"","sources":["../../src/shared/package-metadata.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,yBAAyB,QAAoB,CAAC;AACpD,QAAA,MAAM,YAAY,QAAwF,CAAC;AAC3G,QAAA,MAAM,eAAe,QAAiD,CAAC;AACvE,QAAA,MAAM,YAAY,QAAiD,CAAC;AACpE,QAAA,MAAM,oBAAoB,GAAI,GAAG,OAAO,OAAO,EAAE,WAAoE,CAAC;AAEtH,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,eAAe,GAChB,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const PACKAGE_ORGANIZATION_NAME = packageIdentity.organizationName;
|
|
10
|
-
const PACKAGE_SLUG = packageIdentity.slug;
|
|
11
|
-
const buildPackageLogGroup = packageIdentity.buildLogGroup;
|
|
1
|
+
import { joinLogGroup, packageSlug, readOrganizationIdentity, readPackageJsonUrl, toTrimmedString, } from "@trebired/utils";
|
|
2
|
+
const packageJson = readPackageJsonUrl(new URL("../../package.json", import.meta.url));
|
|
3
|
+
const organization = readOrganizationIdentity({ packageJson });
|
|
4
|
+
const PACKAGE_ORGANIZATION_NAME = organization.name;
|
|
5
|
+
const PACKAGE_NAME = toTrimmedString(packageJson?.name) || `@${PACKAGE_ORGANIZATION_NAME}/code-discipline`;
|
|
6
|
+
const PACKAGE_VERSION = toTrimmedString(packageJson?.version, "6.1.1");
|
|
7
|
+
const PACKAGE_SLUG = packageSlug(PACKAGE_NAME) || "code-discipline";
|
|
8
|
+
const buildPackageLogGroup = (...parts) => joinLogGroup(PACKAGE_ORGANIZATION_NAME, PACKAGE_SLUG, ...parts);
|
|
12
9
|
export { buildPackageLogGroup, PACKAGE_NAME, PACKAGE_ORGANIZATION_NAME, PACKAGE_SLUG, PACKAGE_VERSION, };
|
|
13
10
|
//# sourceMappingURL=package-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-metadata.js","sourceRoot":"","sources":["../../src/shared/package-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"package-metadata.js","sourceRoot":"","sources":["../../src/shared/package-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACvF,MAAM,YAAY,GAAG,wBAAwB,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;AAE/D,MAAM,yBAAyB,GAAG,YAAY,CAAC,IAAI,CAAC;AACpD,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,IAAI,yBAAyB,kBAAkB,CAAC;AAC3G,MAAM,eAAe,GAAG,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACvE,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,iBAAiB,CAAC;AACpE,MAAM,oBAAoB,GAAG,CAAC,GAAG,KAAgB,EAAE,EAAE,CAAC,YAAY,CAAC,yBAAyB,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,CAAC;AAEtH,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,eAAe,GAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,13 +5,10 @@
|
|
|
5
5
|
"displayName": "Trebired",
|
|
6
6
|
"name": "trebired",
|
|
7
7
|
"website": "https://trebired.com"
|
|
8
|
-
},
|
|
9
|
-
"creator": {
|
|
10
|
-
"name": "Miroslav Machynka"
|
|
11
8
|
}
|
|
12
9
|
},
|
|
13
10
|
"name": "@trebired/code-discipline",
|
|
14
|
-
"version": "7.0.
|
|
11
|
+
"version": "7.0.2",
|
|
15
12
|
"description": "Configurable codebase discipline checks and rule-driven fixes for Bun projects.",
|
|
16
13
|
"type": "module",
|
|
17
14
|
"private": false,
|
|
@@ -63,7 +60,7 @@
|
|
|
63
60
|
"dependencies": {
|
|
64
61
|
"@package/logger": "npm:@trebired/logger@^2.5.28",
|
|
65
62
|
"@package/result": "npm:@trebired/result@^1.1.6",
|
|
66
|
-
"@trebired/utils": "^0.
|
|
63
|
+
"@trebired/utils": "^0.6.0",
|
|
67
64
|
"typescript": "^6.0.3"
|
|
68
65
|
},
|
|
69
66
|
"devDependencies": {
|