You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Security fixes are applied to the latest published release of `@ioai/rosview` on npm. Older versions may not receive backports; please upgrade when possible.
6
+
7
+
## Reporting a vulnerability
8
+
9
+
Please report security issues responsibly:
10
+
11
+
- Prefer emailing the maintainers at an `@io-ai.tech` address (see `CONTRIBUTING.md` / `LICENSE` for project ownership), **or**
12
+
- Use [GitHub Security Advisories](https://github.com/ioai-tech/rosview/security/advisories/new) for private disclosure when available.
13
+
14
+
Do **not** open a public GitHub issue for vulnerabilities that could be exploited before a fix is released.
15
+
16
+
Include as much detail as you can: affected version, reproduction steps, impact, and any suggested remediation.
17
+
18
+
We aim to acknowledge reports within a few business days and will coordinate a fix and disclosure timeline with you.
19
+
20
+
## Dependency vulnerabilities
21
+
22
+
This repository uses Dependabot for npm and GitHub Actions updates. Runtime impact of `npm audit` findings in **devDependencies** (lint, test, and library packaging tools) is typically limited to maintainer machines and CI; still, high/critical issues in the toolchain are fixed by upgrading or removing the affected packages when practical.
23
+
24
+
We avoid broad `npm overrides` for security patches when a direct dependency upgrade or removing unused tooling is sufficient.
`vite.lib.config.ts` — outputs an ESM library bundle for npm.**Type declarations are emitted in the same `vite build` run** via `vite-plugin-dts`. With `rollupTypes: true`, API Extractor rolls declarations up to a single `dist-lib/rosview.d.ts` (no separate post-build script).
671
+
`vite.lib.config.ts` — outputs an ESM library bundle for npm (JS/CSS/WASM/workers) via Vite [`build.lib`](https://vite.dev/guide/build.html#library-mode).**Type declarations are not emitted by Vite**; `npm run build:lib` runs a separate types step:
667
672
668
-
Important: use an **absolute**`build.lib.entry`; in `dts()`, set `compilerOptions.rootDir` and `entryRoot` to `<package>/src` so emitted `.d.ts` mirror as `dist-lib/entrypoints/...` (not `dist-lib/src/...`) and `insertTypesEntry` stays correct when the monorepo is built from a cwd outside this package. See the checked-in `vite.lib.config.ts` for the full config (including `pathsToAliases: false`, worker plugins, and externals).
673
+
1.`tsc -p tsconfig.lib.json --emitDeclarationOnly` → intermediate `.tmp-dts/` (gitignored, not published)
674
+
2.`@microsoft/api-extractor` (`api-extractor.rosview.json` / `api-extractor.urdf-preview.json`) → single `dist-lib/rosview.d.ts` and `dist-lib/urdf-preview.d.ts`
675
+
676
+
Important: use an **absolute**`build.lib.entry`. The public entry `src/entrypoints/index.ts` re-exports via relative paths so rolled-up types stay free of fragile `@/` paths for consumers. See the checked-in `vite.lib.config.ts` for `rolldownOptions` externals and worker settings.
669
677
670
678
```typescript
671
-
importdtsfrom'vite-plugin-dts';
672
679
// ...path, fileURLToPath, packageDir as in vite.lib.config.ts
`vite.lib.config.ts` — 用 Vite [`build.lib`](https://cn.vite.dev/guide/build.html#library-mode) 产出可发布的 ESM 库(JS/CSS/WASM/workers)。**类型声明不由 Vite 生成**;`npm run build:lib` 另跑类型步骤:
0 commit comments