@open-xchange/app-suite-ui-sdk 0.1.0 → 0.1.1
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 +1 -1
- package/lib/doctor.js +3 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ extends:
|
|
|
79
79
|
- `packageManager` and `engines.node` match the SDK.
|
|
80
80
|
- `package.json` lists no tooling that the SDK or `@open-xchange/lint` provides, and none of the tools the SDK replaced (release-it, lint-staged, simple-git-hooks, husky, eslint-config-standard).
|
|
81
81
|
- Scripts call `ui-sdk` instead of the tools. `--fix` rewrites simple cases like `vite build` or `eslint src` and keeps their arguments. Chained scripts get a warning and need a manual change.
|
|
82
|
-
- `pnpm-workspace.yaml` has `publicHoistPattern` (so editors and test files find eslint, stylelint, typescript, vite and vitest), `allowBuilds`, and the SDK security overrides.
|
|
82
|
+
- `pnpm-workspace.yaml` has `publicHoistPattern` (so editors and test files find eslint, stylelint, typescript, vite and vitest), `allowBuilds`, `minimumReleaseAgeExclude` for `@open-xchange/*` (pnpm otherwise refuses a freshly released SDK version, which blocks the renovate bump), and the SDK security overrides.
|
|
83
83
|
- `lefthook.yml` extends the SDK config.
|
|
84
84
|
- rlsy is installed globally, and `renovate.json` exists. Both are warnings only.
|
|
85
85
|
|
package/lib/doctor.js
CHANGED
|
@@ -13,6 +13,8 @@ export const PUBLIC_HOIST_PATTERN = ['*eslint*', '*stylelint*', 'typescript', 'v
|
|
|
13
13
|
|
|
14
14
|
export const ALLOW_BUILDS = ['@parcel/watcher', 'lefthook']
|
|
15
15
|
|
|
16
|
+
export const RELEASE_AGE_EXCLUDE = ['@open-xchange/*']
|
|
17
|
+
|
|
16
18
|
const REPLACED_PACKAGES = [
|
|
17
19
|
'release-it',
|
|
18
20
|
'@j-ulrich/release-it-regex-bumper',
|
|
@@ -164,6 +166,7 @@ export function checkWorkspace (source, { overrides = securityOverrides() } = {}
|
|
|
164
166
|
const doc = parseDocument(source || '')
|
|
165
167
|
if (doc.contents === null) doc.contents = doc.createNode({})
|
|
166
168
|
ensureList(doc, 'publicHoistPattern', PUBLIC_HOIST_PATTERN, findings)
|
|
169
|
+
ensureList(doc, 'minimumReleaseAgeExclude', RELEASE_AGE_EXCLUDE, findings)
|
|
167
170
|
ensureAllowBuilds(doc, findings)
|
|
168
171
|
syncOverrides(doc, overrides, findings)
|
|
169
172
|
return { findings, fixed: doc.toString({ singleQuote: true }) }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/app-suite-ui-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shared build, lint and test tooling for OX App Suite UI projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
"vitest": "5.0.5",
|
|
56
56
|
"yaml": "2.9.1"
|
|
57
57
|
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"rlsy": "0.4.1"
|
|
60
|
+
},
|
|
58
61
|
"scripts": {
|
|
59
62
|
"lint": "node bin/ui-sdk.js lint",
|
|
60
63
|
"test": "vitest --run"
|