Skip to content

Commit 6aa81f5

Browse files
authored
Merge pull request #285 from qualcomm/dev
fix: angular prod builds
2 parents a313e60 + 38bd9df commit 6aa81f5

13 files changed

Lines changed: 71 additions & 24 deletions

File tree

packages/common/mdx-vite/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @qualcomm-ui/mdx-vite Changelog
22

3+
## 3.8.2
4+
5+
Jun 4th, 2026
6+
7+
### Bug Fixes
8+
9+
- [cli]: remove unused banner, fix build error ([e59ad99](https://github.com/qualcomm/qualcomm-ui/commit/e59ad99))
10+
- [generate-page-map]: use typeDocProps in url detection ([2a621a7](https://github.com/qualcomm/qualcomm-ui/commit/2a621a7))
11+
312
## 3.8.1
413

514
Jun 3rd, 2026

packages/common/mdx-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qualcomm-ui/mdx-vite",
3-
"version": "3.8.1",
3+
"version": "3.8.2",
44
"description": "Vite documentation plugin for applications that use MDX",
55
"author": "Ryan Bower",
66
"license": "BSD-3-Clause-Clear",

packages/common/mdx-vite/src/docs-plugin/generate-page-map.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,36 @@
33

44
import {program} from "@commander-js/extra-typings"
55
import {glob} from "glob"
6-
import {writeFile} from "node:fs/promises"
6+
import {readFile, writeFile} from "node:fs/promises"
77
import {resolve} from "node:path"
88
import {cwd} from "node:process"
99

10+
import type {QuiPropTypes} from "@qualcomm-ui/typedoc-common"
11+
1012
import {ConfigLoader} from "./config"
13+
import type {ResolvedQuiDocsConfig} from "./config/types"
1114
import {fixPath} from "./path-utils"
1215
import {SearchIndexer} from "./search-indexer"
1316

17+
async function resolveDocProps(
18+
config: ResolvedQuiDocsConfig,
19+
): Promise<Record<string, QuiPropTypes>> {
20+
if (!config.typeDocProps) {
21+
return {}
22+
}
23+
24+
try {
25+
const docPropsPath = fixPath(resolve(cwd(), config.typeDocProps))
26+
const docProps = JSON.parse(await readFile(docPropsPath, "utf-8"))
27+
return docProps?.props ?? {}
28+
} catch {
29+
console.debug(
30+
"Invalid doc props file. Unable to parse JSON. Please check the file",
31+
)
32+
return {}
33+
}
34+
}
35+
1436
export function addGeneratePageMapCommand() {
1537
program
1638
.command("generate-page-map")
@@ -35,13 +57,14 @@ export function addGeneratePageMapCommand() {
3557
try {
3658
const configLoader = new ConfigLoader({configFile: options.configFile})
3759
const resolvedConfig = configLoader.loadConfig()
60+
const typeDocProps = await resolveDocProps(resolvedConfig)
3861
const routesDir = fixPath(
3962
resolve(resolvedConfig.appDirectory, resolvedConfig.pageDirectory),
4063
)
4164
const indexer = new SearchIndexer({
4265
...resolvedConfig,
4366
srcDir: fixPath(resolve(cwd(), resolvedConfig.appDirectory)),
44-
typeDocProps: {},
67+
typeDocProps,
4568
})
4669
const files = glob.sync(
4770
[`${routesDir}/**/*.mdx`, `${routesDir}/**/*.tsx`],

packages/common/mdx-vite/vite.config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,8 @@ export default defineConfig({
2020
/^node/,
2121
],
2222
output: {
23-
banner: [
24-
`import {createRequire} from "node:module";`,
25-
`const require=createRequire(import.meta.url);`,
26-
].join(""),
2723
entryFileNames: "[name].js",
28-
minify: {
29-
mangle: {
30-
keepNames: true,
31-
},
32-
},
24+
minify: true,
3325
},
3426
platform: "node",
3527
},

packages/common/typedoc/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @qualcomm-ui/typedoc Changelog
22

3+
## 1.1.5
4+
5+
Jun 4th, 2026
6+
7+
### Build System
8+
9+
- adjust minify options ([cc4b73c](https://github.com/qualcomm/qualcomm-ui/commit/cc4b73c))
10+
311
## 1.1.4
412

513
Jun 3rd, 2026

packages/common/typedoc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qualcomm-ui/typedoc",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Documentation generation utilities",
55
"author": "Ryan Bower",
66
"license": "BSD-3-Clause-Clear",

packages/common/typedoc/vite.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ export default defineConfig({
2020
/^node/,
2121
],
2222
output: {
23-
minify: {
24-
mangle: {
25-
keepNames: true,
26-
},
27-
},
23+
minify: true,
2824
},
2925
platform: "node",
3026
},

packages/docs/angular-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"arktype": "^2.1.26",
7474
"compression": "^1.7.4",
7575
"dayjs": "^1.11.19",
76+
"esbuild": "catalog:",
7677
"escape-string-regexp": "^5.0.0",
7778
"express": "^5.1.0",
7879
"fuzzysort": "^3.0.1",

packages/docs/angular-table-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"arktype": "^2.1.26",
7777
"compression": "^1.7.4",
7878
"dayjs": "^1.11.19",
79+
"esbuild": "catalog:",
7980
"escape-string-regexp": "^5.0.0",
8081
"express": "^5.1.0",
8182
"fuzzysort": "^3.0.1",

packages/docs/qui-docs/src/routes/pages.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following guide assumes that you're using the file-based routing configurati
3636
- QUI Docs reads pages from the configured [appDirectory](/api/qui-docs-config#appDirectory) and [pageDirectory](/api/qui-docs-config#pageDirectory). The template uses this configuration: `src/routes`.
3737
- An `.mdx` file under `src/routes` creates a docs page and is included in search by default.
3838
- A page's URL comes from its file path relative to `src/routes`. Folders ending in `+` create nested URL segments.
39-
- By default, plain folders do not create nested URL groups. See [routingStrategy](/configuration#routingStrategy) for the `"react-router-directory-groups"` mode.
39+
- By default, plain folders do not create nested URL groups. See [routingStrategy](/configuration#routingstrategy) for the `"react-router-directory-groups"` mode.
4040
- If you define routes manually with React Router, see [Custom Routing](/custom-routing).
4141

4242
## URL Mapping
@@ -251,7 +251,7 @@ Use `.tsx` routes sparingly. TSX pages can appear in navigation when configured,
251251

252252
## Custom Routes
253253

254-
React Router's [Framework Mode](https://reactrouter.com/home#react-router-as-a-framework) supports manually defined route definitions. When you define routes manually, add a [routingStrategy](/api/qui-docs-config#routingstrategy) so QUI Docs can map each discovered page file to its site URL.
254+
React Router's [Framework Mode](https://reactrouter.com/home#react-router-as-a-framework) supports manually defined route definitions. When you define routes manually, add a [routingStrategy](/api/qui-docs-config#routingStrategy) so QUI Docs can map each discovered page file to its site URL.
255255

256256
See [Custom Routing](/custom-routing) for the full setup.
257257

0 commit comments

Comments
 (0)