Skip to content

Commit ec4cd0f

Browse files
committed
fix(gutenberg-types): types not discoverable
1 parent fd6f123 commit ec4cd0f

17 files changed

Lines changed: 9974 additions & 9 deletions

File tree

.changeset/swift-webs-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@kleinweb/gutenberg-types': patch
3+
---
4+
5+
Use `tsdown` to correctly distribute outputs
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"apiVersion": 3,
4+
"name": "kleinweb/explore-bar",
5+
"version": "1.0.0",
6+
"title": "Explore Bar",
7+
"keywords": [],
8+
"category": "widgets",
9+
"description": "A call-to-action bar for recirculation to the Klein College website",
10+
"supports": {
11+
"html": false
12+
},
13+
"attributes": {},
14+
"textdomain": "kleinweb",
15+
"editorScript": "file:./index.js",
16+
"editorStyle": "file:./editor.css",
17+
"style": "file:./style.css"
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: (C) 2025 Temple University <kleinweb@temple.edu>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
6+
.wp-block-kleinweb-explore-bar {
7+
border: 1px dotted rebeccapurple;
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return ["dependencies" => ["wp-blocks","wp-block-editor","wp-i18n"], "version" => "7b4361316b2e447aacb8d3033a123149"];

packages/explore-bar/dist/explore-bar/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* SPDX-FileCopyrightText: (C) 2025 Temple University <kleinweb@temple.edu>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
6+
.wp-block-kleinweb-explore-bar {
7+
padding: 2px;
8+
border: 1px solid red;
9+
}

packages/gutenberg-types/dist/index.d.ts

Lines changed: 2219 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { };

packages/gutenberg-types/package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@
33
"version": "21.8.0",
44
"license": "GPL-3.0-or-later",
55
"type": "module",
6-
"types": "src/types.d.ts",
7-
"exports": {
8-
".": "./dist/"
9-
},
106
"publishConfig": {
117
"access": "public"
128
},
139
"devDependencies": {
1410
"@kleinweb/tsconfig": "workspace:*",
11+
"tsdown": "^0.15.6",
1512
"typescript": "^5.8.3"
13+
},
14+
"scripts": {
15+
"build": "tsdown"
16+
},
17+
"main": "./dist/index.js",
18+
"module": "./dist/index.js",
19+
"types": "./dist/index.d.ts",
20+
"exports": {
21+
".": "./dist/index.js",
22+
"./package.json": "./package.json"
1623
}
1724
}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export { JSONSchemaForWordPressBlocks as BlockJson } from './types/block.d.ts'
2-
export {
1+
export type { JSONSchemaForWordPressBlocks as BlockJson } from './types/block.d.ts'
2+
export type {
33
JSONSchemaForWordPressFontCollections as FontCollection,
44
FontFace,
55
} from './types/font-collection.d.ts'
6-
export * as ThemeJson from './types/theme.d.ts'
7-
export {
6+
export type * as ThemeJson from './types/theme.d.ts'
7+
export type {
88
JSONSchemaForWordPressWpEnvConfigurationFiles as WpEnvJson,
99
WpEnvProperties,
1010
} from './types/wp-env.d.ts'

0 commit comments

Comments
 (0)