Skip to content

AI-native design editor. Open-source Figma alternative.

fix(vue): make package types ATTW-safe

Danila Poyarkovb709af1850cb
diff --git a/packages/vue/package.json b/packages/vue/package.json
index 65e0db887..012461515 100644
--- a/packages/vue/package.json
+++ b/packages/vue/package.json
@@ -3,13 +3,6 @@
"version": "0.13.2",
"license": "MIT",
"type": "module",
- "imports": {
- "#vue/*": {
- "types": "./src/*",
- "bun": "./src/*",
- "default": "./dist/*"
- }
- },
"exports": {
".": {
"types": "./dist/index.d.ts",
diff --git a/packages/vue/tsdown.config.ts b/packages/vue/tsdown.config.ts
index e92a16932..56299f8b2 100644
--- a/packages/vue/tsdown.config.ts
+++ b/packages/vue/tsdown.config.ts
@@ -61,6 +61,8 @@ export default defineConfig({
/^vue\//,
'@open-pencil/core',
/^@open-pencil\/core\//,
+ '@open-pencil/scene-graph',
+ /^@open-pencil\/scene-graph\//,
'canvaskit-wasm',
'opentype.js',
'@vueuse/core',
diff --git a/tools/package-quality/src/check/attw.ts b/tools/package-quality/src/check/attw.ts
index e379c1e86..69dbd8fe7 100644
--- a/tools/package-quality/src/check/attw.ts
+++ b/tools/package-quality/src/check/attw.ts
@@ -1,21 +1,8 @@
import { publicPackageDirs } from '../packages'
-const excludedPackages = new Map([
- [
- 'packages/vue',
- 'tsdown currently emits declaration imports through generated #vue/scene-graph/dist/*2.js names'
- ]
-])
-
let failed = false
for (const packageDir of publicPackageDirs) {
- const exclusionReason = excludedPackages.get(packageDir)
- if (exclusionReason) {
- console.warn(`Skipping ATTW for ${packageDir}: ${exclusionReason}`)
- continue
- }
-
const proc = Bun.spawnSync(
['bun', 'attw', '--pack', packageDir, '--profile', 'esm-only', '--format', 'ascii'],
{