Skip to content

Commit ecbfe7d

Browse files
committed
fix json schema
1 parent 8e8132c commit ecbfe7d

File tree

8 files changed

+15
-6
lines changed

8 files changed

+15
-6
lines changed

devops/json-schema-generator/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { writeFileSync } from 'fs';
2-
import { format, resolveConfig } from 'prettier';
32
import { createImportMap } from '../importmap/index.js';
43

5-
const tsPath = './src/all-packages.ts';
4+
const tsPath = './src/json-schema/all-packages.ts';
65

76
const importmap = createImportMap({
87
rootDir: './src',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@
161161
"generate:icons": "node ./devops/icons/index.js",
162162
"generate:overrides": "node ./devops/tsc/index.js",
163163
"generate:jsonschema:imports": "node ./devops/json-schema-generator/index.js",
164-
"generate:jsonschema:dist": "typescript-json-schema --required --include \"./src/umbraco-package-schema.ts\" --out dist-cms/umbraco-package-schema.json tsconfig.json UmbracoPackage",
165-
"generate:jsonschema": "typescript-json-schema --required --include \"./src/umbraco-package-schema.ts\"",
164+
"generate:jsonschema:dist": "typescript-json-schema --required --include \"./src/json-schema/umbraco-package-schema.ts\" --out dist-cms/umbraco-package-schema.json tsconfig.json UmbracoPackage",
165+
"generate:jsonschema": "typescript-json-schema --required --include \"./src/json-schema/umbraco-package-schema.ts\"",
166166
"lint:errors": "npm run lint -- --quiet",
167167
"lint:fix": "npm run lint -- --fix",
168168
"lint": "eslint src",

src/all-packages.ts renamed to src/json-schema/all-packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
21
import '@umbraco-cms/backoffice/app';
32
import '@umbraco-cms/backoffice/class-api';
43
import '@umbraco-cms/backoffice/context-api';
54
import '@umbraco-cms/backoffice/controller-api';
65
import '@umbraco-cms/backoffice/element-api';
6+
77
import '@umbraco-cms/backoffice/extension-api';
88
import '@umbraco-cms/backoffice/formatting-api';
99
import '@umbraco-cms/backoffice/localization-api';

src/json-schema/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["./*.ts", "./**/*.ts", "./**/*.json", "./**/*.js"],
4+
"exclude": ["./**/*.test.ts", "./**/*.stories.ts", "tsconfig.json", "rollup.config.js"]
5+
6+
}

src/packages/core/collection/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type { ManifestCollection } from './extensions/index.js';
22
import type { Observable } from '@umbraco-cms/backoffice/external/rxjs';
33
import type { UmbPaginationManager } from '@umbraco-cms/backoffice/utils';
44

5+
export type * from './extensions/index.js';
6+
57
export interface UmbCollectionBulkActionPermissions {
68
allowBulkCopy: boolean;
79
allowBulkDelete: boolean;

src/packages/core/tree/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { UmbEntityModel } from '@umbraco-cms/backoffice/entity';
2+
export type * from './extensions/index.js';
23

34
export interface UmbTreeItemModelBase extends UmbEntityModel {
45
name: string;

src/packages/core/workspace/extensions/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ import type {
1414
} from './workspace-view.model.js';
1515
import type { ManifestWorkspace, ManifestWorkspaceRoutableKind } from './workspace.model.js';
1616

17+
export type * from './workspace-action-menu-item.model.js';
1718
export type * from './workspace-action.model.js';
19+
export type * from './workspace-context.model.js';
1820
export type * from './workspace-footer-app.model.js';
1921
export type * from './workspace-view.model.js';
2022
export type * from './workspace.model.js';
21-
export type * from './workspace-action-menu-item.model.js';
2223

2324
export type ManifestWorkspaceFooterApps =
2425
| ManifestWorkspaceFooterApp

0 commit comments

Comments
 (0)